✳ClaudeModsClaude Code 模组目录
☰
● 0 人在线 · 浏览 0 次
+ 提交作品
← 返回作品集
Reddit 帖子 · 仪表盘与 HUD / 提示词与输入增强 / 其他 / 工具与集成 / 工作流与 CI

agent-quick-menu:Claude Code 插件快捷菜单

基于 2.1.287 版本新增的 mods API 打造的 Claude Code 可点击快捷菜单,把每个已装插件的命令和设置集中到一个折叠面板里,还带可置顶按钮和输入参数提示。

DDasGanni@DasGanni
agent-quick-menu:Claude Code 插件快捷菜单图片1
已翻译

关于这个 mod

作者用 Claude Code 本身开发了一个名为 agent-quick-menu 的插件菜单。它基于 2.1.287 引入的 mods API,把已安装插件的命令和设置汇集到 /menu 面板:每个插件一个可折叠区块,命令显示为带斜杠命令和说明的按钮,设置则渲染为开关、选项按钮或内联编辑器(带保存/取消)。Claude Code 自身的 /config 设置也可在同一面板中过滤查看。提示符上方有一条 bar:≣ 打开面板,用 ☆ 置顶的命令会作为一键按钮排在旁边。需要参数的命令(分支名、工单号)会先弹出输入框。对于非自己添加的插件命令,运行前会要求二次确认。插件作者只需一个 JSON 文件 .claude-plugin/quick-menu.json 声明命令和要展示的 userConfig 设置,附有 JSON schema 和约定,无依赖、无代码。作者负责产品侧(约定、UX、信息架构),Claude Code 编写了几乎全部 TypeScript 和 118 个测试,工作流是写切片规格、实现、跑 claude plugin validate 和 claude plugin test,然后作者重载截图反馈 UI 问题。作者总结的经验:交互式 command.run 无返回值,写设置后必须回读;设置变更会重新加载 mod,$.state 保留但模块变量不保留;字形宽度要选 1

安装

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

/plugin marketplace add agentic-workbench/agent-quick-menu && /plugin install agent-quick-menu@agent-quick-menu && /reload-plugins
原文 / README

What I built agent-quick-menu is a menu for Claude Code, built on the mods API that arrived in 2.1.287. It gathers the commands and settings of every installed plugin in one place, so you stop memorising slash commands and digging through /config. A /menu pane with one foldable section per plugin: commands as buttons with their slash command and a description, settings as toggles, option buttons or an inline editor with save/cancel. Claude Code's own /config settings in the same pane, with a filter. A band above the prompt : ≣ menu opens the pane; commands you pin with ☆ sit next to it as one-click buttons. Commands that need an argument (a branch name, a ticket) open an input first instead of running blind. A confirm-twice before running a command from a plugin you didn't add to the menu yourself. For plugin authors it's one JSON file: .claude-plugin/quick-menu.json lists your commands (label, args, description, optional ask ) and which of your userConfig settings to show. No dependency, no code; there's a JSON schema and a written convention. How I used Claude Code I did the product side: the convention, the UX, and what goes where. Claude Code wrote nearly all of the TypeScript and the 118 tests (the mods testing kit with a mocked clock). The loop was always the same: Claude writes a slice spec, implements it, runs claude plugin validate and claude plugin test , I reload, screenshot the terminal and paste the screenshot back in with "this is ugly / this doesn't fold / the focus is wrong". Most of the UX came out of those screenshot rounds. It also did the boring open-source parts: CI, rulesets, SECURITY/PRIVACY docs, and the release automation (a PR from develop to main bumps the version from the Conventional Commits and publishes the release on merge). What I learned Interactive command.run returns nothing. Running /config key=value from a mod answers {} in an interactive session, so "did the write work?" has to be answered by reading the setting back. Before I changed that, the menu showed "not changed" on every successful write. A settings change reloads your mod. register() runs again with the new options; $.state survives, module variables don't. Glyph width matters. ☰ is two cells wide in many terminals and left a stray character behind; everything in the UI is now a width-1 glyph ( ≣ , ▸ , ● ). The plugin directory's validator is stricter than Claude Code. Don't alias or shadow $ or on , write calls as $.noun.method() , keep userConfig free of options , and declare "types" in plugin.json, or validation rejects every state key. Mods compose. Two plugins drawing into the band must call next(e) , or one silently swallows the other's band. Try it /plugin marketplace add agentic-workbench/agent-quick-menu /plugin install agent-quick-menu@agent-quick-menu then /reload-plugins . MIT, fully local, sends nothing anywhere. Repo: https://github.com/agentic-workbench/agent-quick-menu Feedback welcome, especially from plugin authors: what would you put in your plugin's menu? submitted by /u/DasGanni [link] [comments]

查看原始来源 ↗

更多类似作品