ClaudeMods
☰
ZH-TW
● 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

更多類似作品