✳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]

查看原始來源 ↗

更多類似作品