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

bouncer

一个 Claude Code mod,会根据项目判断粘贴的链接,并用带 Use/Later/Skip 判定、effort、费用和单行理由的卡片打开 Claude 的回答,另有 /bouncer list 及开关命令。

hacksurvivor@hacksurvivor

hacksurvivor/claude-mods/tree/main/mods/bouncer

原帖图片1
已翻译

关于这个 mod

Bouncer 是一个 Claude Code 插件,会拦截你粘贴到提示中的链接(最多额外 400 个字符),让 Claude 在回答中打开一个判定卡:Use、Later 或 Skip,说明它服务哪些项目、尝试需要多久、费用是多少以及原因(一行)。Start 会提交后续提示,Later 和 Skip 会记住你的决定。/bouncer 命令按判定列出所有链接;/bouncer off 和 /bouncer on 会暂停和恢复本会话中的功能。它会跳过本机地址、.local 和 .test 主机、Gmail、Google Docs、claude.ai 和 ChatGPT 链接。链接会根据 ~/.claude/bouncer/projects.md 中列出的项目进行判定,如果没有则退回当前对话和文件夹。它读取你的提示和该项目文件,但不会自行发送任何内容,只会把简短说明附加到你的提示中,并在 Claude Code 的本地插件存储中保留最多 200 个已判定链接。需要 Claude Code 2.1.286 或更高版本。安装:/plugin marketplace add hacksurvivor/claude-mods、/plugin install bouncer@hacksurvivor、/reload-plugins。Apache-2.0。

安装

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

claude plugin marketplace add hacksurvivor/claude-mods
claude plugin install bouncer
原文 / README

Bouncer

A Claude Code mod for the links you paste. Every one meets the bouncer: Claude reads it, then its answer opens with a card that says whether it's worth your time.

Bouncer in the Claude desktop app: a pasted link, the verdict card above Claude's answer with Start on it, Later and Skip, and the /bouncer list

  • Use it, Later or Skip, which of your projects it serves, how long it takes to try, what it costs, and one line why.
  • Start on it sends the prompt to begin; Later and Skip remember your call.
  • /bouncer lists every link judged so far, by verdict. /bouncer off pauses it for the session, /bouncer on resumes it.

It only steps in for a link with a short question (up to 400 characters besides the link). It leaves alone local addresses, .local and .test hosts, Gmail and Google Docs links, and claude.ai and ChatGPT chats.

Your projects

Bouncer judges each link against the projects in ~/.claude/bouncer/projects.md, one per line:

- shop-app: an online store for handmade furniture
- the blog: weekly posts about remote work

Without that file it judges against what you're working on in the conversation and folder.

Requirements

Claude Code 2.1.286 or later (mods). The card is drawn in the Claude desktop app and in the terminal.

Install

In Claude Code:

/plugin marketplace add hacksurvivor/claude-mods
/plugin install bouncer@hacksurvivor
/reload-plugins

What it runs, reads and sends

  • Reads your prompt, to spot a pasted link, and ~/.claude/bouncer/projects.md.
  • Sends nothing itself. It adds a short brief to your prompt (the link, your projects, and the shape of the verdict line), which Claude Code sends to Anthropic with your message under your Claude account.
  • Keeps up to 200 judged links in Claude Code's plugin store on your computer.
  • Claude reads the link with its own tools, as it would without Bouncer.

See PRIVACY.md.

License

Apache-2.0

更多类似作品