ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 robfresh2o

needs-you

Claude Code 外掛會偵測回覆中的「**Needs you**」行,用會跳動的 Claude 吉祥物框住下方內容,並把決定變成可點擊按鈕,將選擇送成下一個提示。

robfresh2o@robfresh2o

robfresh2o/fresh2o-plugins/tree/main/plugins/needs-you

已翻譯

關於這個 mod

needs-you 會掃描每則回覆,尋找寫著 Needs you 的一行,接著在旁邊放一隻小型跳動的 Claude 生物,把該行下方的區段畫在框中。生物會持續跳動到你送出下一個提示,讓等待你輸入的回覆更容易找到。當決定以問題搭配編號選項清單呈現時,每個選項都會變成按鈕;按下後會把問題和你的選擇一起送出作為回覆。多個決定會收集選項後一併送出。加上 (recommended) 會標示主要按鈕,超過 40 個字元的選項會改用編號文字,結尾備註會顯示在按鈕下方。

外掛只繪製 Claude 寫出的內容,不會呼叫模型,因此你必須在 ~/.claude/CLAUDE.md 加入指示,告訴 Claude 讓這類回覆以 Needs you 行開頭。它使用 Claude Code 外掛鉤子,以 Claude Code 2.1.288 建置,並在桌面應用程式的 Code 分頁測試過(尚未在終端測試)。外掛和 Claude Code 擁有相同的檔案與程序存取權限,安裝前請先檢查程式碼。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add robfresh2o/fresh2o-plugins
claude plugin install needs-you
原文 / README

fresh2o-plugins

Claude Code plugins I've built for my own work and decided to share. Each one installs on its own.

Install

Add the marketplace once:

claude plugin marketplace add robfresh2o/fresh2o-plugins

Then install the plugins you want:

claude plugin install needs-you@fresh2o-plugins

Plugins

needs-you

https://github.com/user-attachments/assets/dc29b0c6-68a3-48ad-90cb-7b5c6df6fb8b

When Claude needs something from you, such as a decision, an approval or a command only you can run, it opens its reply with a **Needs you** line. This plugin finds that line and draws the section under it in a box, with a small Claude creature hopping beside it. The creature keeps hopping until you send your next prompt, so you can see at a glance that a reply is waiting on you.

A decision written as a question, with its choices as a numbered list under it, gets one button per choice. Pressing a button sends the question and your choice as your reply. If the section holds several decisions, your picks collect and send together. Add (recommended) after a choice to make it the primary button. When a choice is longer than 40 characters, the choices stay listed as text and the buttons show their numbers instead, so no button runs past the box. A note written after the choices, after a blank line and indented no deeper than the choices, shows under the buttons.

The plugin only draws what Claude writes. It makes no model calls. For it to do anything, Claude has to write the section, so add something like this to your ~/.claude/CLAUDE.md:

If anything needs me (a decision, an approval, something only I can do), open the reply
with `**Needs you**` on a line of its own, before anything else. Under it, one bullet per
thing you need. A decision is at most one sentence of context, then the question, ending in
`?`. Under it go its choices as a numbered list, each a short label, with `(recommended)`
after the one you recommend. An action says what to do and includes everything needed to do
it, such as the exact command or the steps. Put the reasoning, and what each choice means,
after the section. Leave the line out when nothing needs me.

needs-you uses Claude Code's plugin hooks to draw inside the session. It was built on Claude Code 2.1.288 and tested in the desktop app's Code tab. It has not been tested in the terminal.

A note on trust

A plugin runs with the same access to your files and processes as Claude Code. Read the code of any plugin before you install it, including these.

License

MIT

更多類似作品