ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 DansiDanutz

next-steps-anywhere

每次回答后最多建议三个后续提示:在终端和桌面应用的输入框上方显示,也可在任何界面的 /next-steps 面板中显示(包括移动端和 VS Code)。点击一个,或按 1-3,将它作为可编辑草稿放入提示框;按 0 关闭。它永远不会自行发送。

DansiDanutz@DansiDanutz

DansiDanutz/Crime-Doc/tree/main/plugins/next-steps-anywhere

已翻译

关于这个 mod

next-steps-anywhere

每次回答后最多建议三个后续提示。在终端和桌面应用中,它们会自行显示在输入框上方;在任何界面(包括移动端和 VS Code)中输入 /next-steps 即可在面板里打开。

next:
  1: run the tests you just wrote
  2: do the same for the settings page
  3: /code-review high
  dismiss

点击建议(或在空的提示框中按 1、2、3),它就会写入输入框,成为草稿——编辑后再由你自己发送。0 / dismiss 会清除建议。它永远不会自行提交提示。

安装(所有项目)

claude plugin marketplace add DansiDanutz/Crime-Doc
claude plugin install next-steps-anywhere@dansidanutz --scope user

工作方式

函数钩子插件(hooks/register.tsx):

  • turn.complete ——主循环回答达到 minAnswerChars 后,请求 $.model.fork 生成可能的后续提示。fork 会复用工作阶段的提示缓存,因此每轮大约只需一条短回复的成本。
  • $.command.list ——工作阶段的技能和斜杠命令会加入问题,因此建议可以是其中一个;如果建议使用了工作阶段没有的命令,就会被丢弃。
  • ui.render on AbovePrompt ——在提示框上方把建议绘制成按钮。Claude Code 只会在终端和桌面端显示这个位置。
  • /next-steps ——在 Pane 中打开同样的按钮,所有界面(包括移动端和 VS Code)都会绘制它们。
  • 按下按钮会调用 $.prompt.fill。插件把输入框的暗色幽灵文字($.prompt.suggest)留给 Claude Code 自己的建议。
  • turn.start / prompt.submit ——清除过期的建议。

子代理轮次、中断轮次、错误和过短回答之后不会运行。

选项

| 选项 | 默认值 | 作用 | | --- | --- | --- | | minAnswerChars | 80 | 回答短于此长度时跳过建议 | | suggestSkills | true | 告诉建议器工作阶段拥有的技能和斜杠命令 |

检查

claude plugin validate plugins/next-steps-anywhere
claude plugin test plugins/next-steps-anywhere

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add DansiDanutz/Crime-Doc
claude plugin install next-steps-anywhere
原文 / README

next-steps-anywhere

After each answer, suggests up to three next prompts. In the terminal and the desktop app they appear above the input box on their own; on any surface (mobile and VS Code included) type /next-steps to open them in a pane.

next:
  1: run the tests you just wrote
  2: do the same for the settings page
  3: /code-review high
  dismiss

Tap a suggestion (or press 1, 2, 3 from an empty prompt box) and it is written into the box as a draft — edit it, then send it yourself. 0 / dismiss clears them. It never submits a prompt on its own.

Install (all projects)

claude plugin marketplace add DansiDanutz/Crime-Doc
claude plugin install next-steps-anywhere@dansidanutz --scope user

How it works

A function-hooks plugin (hooks/register.tsx):

  • turn.complete — after a main-loop answer of at least minAnswerChars, asks $.model.fork for likely next prompts. The fork reuses the session's prompt cache, so it costs about one short reply per turn.
  • $.command.list — the session's skills and slash commands go into the question, so a suggestion can be one of them; a suggestion naming a command the session lacks is dropped.
  • ui.render on AbovePrompt — draws the suggestions as buttons above the prompt. Claude Code raises that site on the terminal and desktop only.
  • /next-steps — opens the same buttons in a Pane, which every surface (mobile and VS Code included) draws.
  • A press calls $.prompt.fill. The plugin leaves the box's dim ghost text ($.prompt.suggest) to Claude Code's own suggestion.
  • turn.start / prompt.submit — clear stale suggestions.

Skipped after subagent turns, interrupted turns, errors and short answers.

Options

| Option | Default | What it does | | --- | --- | --- | | minAnswerChars | 80 | Skip suggestions after answers shorter than this | | suggestSkills | true | Tell the suggester which skills and slash commands the session has |

Checks

claude plugin validate plugins/next-steps-anywhere
claude plugin test plugins/next-steps-anywhere

更多类似作品