ModsCode / Claude Code Mods / Ranking / next-steps
next-steps
Three next steps after each answer, above your prompt. An optional local voice reads them aloud, and a side assistant helps you decide the next request.
What it does
- Draws a band above the prompt, a pane, toasts
- Hooks prompt.submit, session.end, session.start, turn.complete and 1 more
- Keeps its own state between turns
- Calls the network
- Starts processes
Good points
- Written in TypeScript
- Has a desktop-specific branch
- Handles errors
- Writes no files
Code to start from
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like next-steps by humvnpvrvdox777 (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/humvnpvrvdox777-next-steps/
// Written by ModsCode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Svg, Text, Button, Select, Link } = $.ui.resolve(e)
const source = '…'
const lineFor = '…'
const index = '…'
const step = '…'
const placedLine = '…'
const voiceLabel = '…'
const picked = '…'
const stop = '…'
const talk = '…'
const support = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column" borderStyle="round" borderColor="#155A65" paddingX={1}>
<Box flexDirection="row" gap={2}>
<Svg source={`${source}`} alt="Claude" />
<Box flexDirection="column">
<Text bold>
{lineFor}
</Text>
<Button plain hotkey={`${index}`} label={`✓ ${step}`} />
<Button plain hotkey={`${index}`} label={`✓ ${step}`} />
<Button plain hotkey={`${index}`} label={`✓ ${step}`} />
<Text dimColor>
{placedLine}
</Text>
<Box flexDirection="row" gap={2}>
<Select label={`${voiceLabel}`} value={`${picked}`} />
<Button hotkey="s" label={`${stop}`} />
<Button hotkey="d" label={`${talk}`} />
</Box>
</Box>
</Box>
<Box flexDirection="row" justifyContent="flex-end">
<Box flexDirection="row" gap={1}>
<Text color="#D97757">
{support}
</Text>
<Link href="https://paypal.me/bside777" label="↗" />
</Box>
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "‹title›" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Input, Button } = $.ui.resolve(e)
const you = '…'
const text = '…'
const write = '…'
const placeholder = '…'
const thinking = '…'
const cancel = '…'
const proposal = '…'
const copy = '…'
const send = '…'
const close = '…'
return (
<Box flexDirection="column">
<Text>
{`${you}: ${text}`}
</Text>
<Text>
{`${you}: ${text}`}
</Text>
<Text>
{`${you}: ${text}`}
</Text>
<Input label={`${write}`} placeholder={`${placeholder}`} autoFocus />
<Text dimColor>
{thinking}
</Text>
<Button label={`${cancel}`} />
<Box flexDirection="column">
<Text bold>
{proposal}
</Text>
<Input value={`${proposal}`} />
<Box flexDirection="row" gap={2}>
<Button label={`${copy}`} />
<Button variant="primary" label={`${send}`} />
</Box>
</Box>
<Button label={`${close}`} />
</Box>
)
})
on('session.start', async ($, e, next) => {
const voiceFailed = '…'
const why = '…'
await $.ui.toast(`${voiceFailed}: ${why}`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
hooks/register.tsx lines 1207–1274 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const now = await read($, phase)
const found = await read($, steps)
const isEmpty = now === 'idle' || (now === 'asking' && found.length === 0)
if (isEmpty || e.props.hasSurvey || e.props.isWorking) {
return next(e)
}
const how = await read($, via)
const voiceOn = await read($, voice)
// The dropdown shows the voice in use, or off.
const picked = voiceOn ? voiceFile() : VOICE_OFF
const state = await read($, daemon)
const placedSteps = await read($, placed)
// The band is one slot for every mod: what the others draw (the check-handoff-clean-B7 row)
// stays on top, the mascot goes under it, never over it.
const below = await next(e)
if (e.surface === 'terminal') {
const frame = await read($, tick)
const { Box, Raster } = $.ui.resolve(e)
const sprite = toCells(poseFor(now, frame))
return (
<Box flexDirection="column">
{below}
<Box flexDirection="column" borderStyle="round" borderColor={FRAME_COLOR} paddingX={1}>
<Box flexDirection="row" gap={2}>
<Raster
key="mascot"
columns={sprite.columns}
rows={sprite.rows}
cells={sprite.cells}
/>
{column($, $.ui.resolve(e), now, frame, found, how, placedSteps, voiceOn, state, voiceChoices(), picked, strings)}
</Box>
{supportRow($.ui.resolve(e), strings)}
</Box>
</Box>
)
}
// The tick is not read here: a write to it must not draw this instance again.
const { Box, Svg } = $.ui.resolve(e)
const sprite = toSvg(now)
$.ui.log(`next-steps: drew ${now} on ${e.surface}`, { to: 'debug' })
return (
<Box flexDirection="column">
{below}
<Box flexDirection="column" borderStyle="round" borderColor={FRAME_COLOR} paddingX={1}>
<Box flexDirection="row" gap={2}>
<Svg
key="mascot"
source={sprite.source}
alt="Claude"
width={sprite.width}
height={sprite.height}
/>
{column($, $.ui.resolve(e), now, undefined, found, how, placedSteps, voiceOn, state, e.surface === 'mobile' ? null : voiceChoices(), picked, strings)}
</Box>
{supportRow($.ui.resolve(e), strings)}
</Box>
</Box>
)
})hooks/register.tsx lines 1038–1098 · Band
const column = (
$: EngineInterface,
t: Basic,
now: Phase,
frame: number | undefined,
found: readonly string[],
how: Via,
placedSteps: readonly string[],
voiceOn: boolean,
state: Daemon,
choices: readonly { value: string; label: string }[] | null,
picked: string,
texts: Strings,
) => {
const { Box, Button, Select, Text } = t
const shows = now === 'asking' || now === 'chatting' || now === 'replying'
return (
<Box flexDirection="column">
<Text bold>{lineFor(now, frame, how, texts)}</Text>
{shows &&
found.map((step, index) => {
const isPlaced = placedSteps.includes(step)
// The label is the whole step, never shortened: the band has room for it and the text wraps onto more rows.
return (
<Button
key={`step-${index + 1}`}
plain
hotkey={String(index + 1)}
label={isPlaced ? `✓ ${step}` : step}
dimColor={isPlaced}
onPress={() => choose($, step).catch(() => {})}
/>
)
})}
{shows && placedSteps.length > 0 && (
<Text dimColor>{placedLine(placedSteps.length, found.length, how, texts.placed)}</Text>
)}
{now !== 'chosen' && (
<Box flexDirection="row" gap={2}>
{choices !== null && Select !== undefined && (
<Select
key="voice"
label={voiceLabel(voiceOn, state, texts.voice)}
options={choices}
value={picked}
onSelect={value => {
void chooseVoice($, value).catch(() => {})
}}
/>
)}
{voiceOn && state === 'ready' && (
<Button key="stop" hotkey="s" label={texts.button.stop} onPress={() => stopVoice($).catch(() => {})} />
)}
<Button key="discuss" hotkey="d" label={texts.button.talk} onPress={() => openChat($).catch(() => {})} />
</Box>
)}
</Box>
)
}hooks/register.tsx lines 1025–1036 · Band
const supportRow = (t: Basic, texts: Strings) => {
const { Box, Link, Text } = t
return (
<Box flexDirection="row" justifyContent="flex-end">
<Box flexDirection="row" gap={1}>
<Text color={SUPPORT_PEACH}>{texts.button.support}</Text>
<Link key="support-link" href={SUPPORT_URL} label="↗" />
</Box>
</Box>
)
}hooks/register.tsx lines 1276–1331 · Pane
on('ui.render', { component: 'Pane', requestId: PANE_ID }, async ($, e, next) => {
if (e.surface === 'mobile') {
return next(e)
}
const lines = await read($, chat)
const isBusy = await read($, busy)
const proposal = await read($, draft)
const { Box, Button, Input, Text } = $.ui.resolve(e)
return (
<Box flexDirection="column">
{lines.map((line, index) => (
<Text key={`line-${index}`} bold={line.who === 'assistant' && line.isError !== true} dimColor={line.isError === true}>
{`${line.who === 'user' ? strings.pane.you : strings.pane.assistant}: ${line.text}`}
</Text>
))}
<Input
key={`say-${fieldId}`}
label={strings.pane.write}
placeholder={strings.pane.placeholder}
autoFocus
onSubmit={value => {
void ask($, value).catch(() => {})
}}
/>
{isBusy && <Text dimColor>{strings.pane.thinking}</Text>}
{isBusy && <Button key="cancel" label={strings.pane.cancel} onPress={() => cancelAsk($).catch(() => {})} />}
{proposal !== '' && (
<Box flexDirection="column">
<Text bold>{strings.pane.proposal}</Text>
<Input
key={`draft-${draftId}`}
value={proposal}
onInput={value => {
draftEdit = value
}}
onSubmit={value => {
void keepDraft($, value).catch(() => {})
}}
/>
<Box flexDirection="row" gap={2}>
<Button key="copy" label={strings.pane.copy} onPress={() => copyDraft($).catch(() => {})} />
<Button
key="send"
variant="primary"
label={strings.pane.send}
onPress={() => sendDraft($).catch(() => {})}
/>
</Box>
</Box>
)}
<Button key="close" label={strings.pane.close} onPress={() => $.ui.close({ id: PANE_ID }).catch(() => {})} />
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 humvnpvrvdox777 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
How to build this: Pane (panel), Rewrite the prompt
What its code calls
networkruns programsreads filesenv varsdrives Clauderemembers
What its code shows
Read from the source at commit ee4f5f31a4b1. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.9 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.hooks/register.tsx:216 fetch(`http://127.0.0.1:${request.port}${request.path}`) |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.hooks/register.tsx:182 a program named at run time; hooks/register.tsx:206 a program named at run time |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads environment variables, files, the prompt box, the transcript and reaches the network |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets ModsCode show its code; otherwise the code is linked.MIT |
| Settings hooks | Hooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone |
| Servers it ships | MCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/ |
| Skills, commands, agents | What its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows |
| Tools and MCP | Whether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.model.complete, prompt.submit (as the person), adds command ? |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run, prompt.submit · also: session.start, turn.start, session.end, turn.complete (+1) · timers: clock.after, clock.every |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: USERPROFILE; files: …\\voices; the prompt box; the transcript |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.the prompt box |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and ModsCode does not vouch for what this code does. Read its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
From its marketplace
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add humvnpvrvdox777/NextSteps/plugin install next-steps@next-steps/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (ee4f5f31a4b1). Compare them before you install. /reload-plugins loads it into a session that is already open.
Try the commit ModsCode read
No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:
git clone https://github.com/humvnpvrvdox777/NextStepsgit -C NextSteps checkout ee4f5f31a4b1844e5ff001876efbaca00c0d4926claude plugin validate NextStepsclaude --plugin-dir NextStepsThe validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.
Ask Claude or ChatGPT about it
With ModsCode added as a connector, Claude or ChatGPT can read this mod's code, what it reaches and how its controls are wired, and build on them. Ask it like this:
Read the ModsCode mod "humvnpvrvdox777-next-steps" with its code and make me one like itAdd the ModsCode MCP to Claude or ChatGPT
Similar mods
- mod-storehellosverre★ 4
- cockpitSyed Muhammad Hassaan★ 1
- skinshellosverre★ 1
- dashDevOhMyCode★ 0
- prayer-timesMohamed Ibrahim★ 0
- skinshellosverre★ 0
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/humvnpvrvdox777-next-steps/)