ClaudeMods
☰
ZH-CN
● 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 插件 hooks,基于 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

更多类似作品