把你每次都要重貼的 checklist 或多步驟流程,設計成一個自訂 slash command(.claude/commands/<name>.md 或現代的 .claude/skills),含正確 frontmatter、$ARGUMENTS 參數、用 !`cmd` 預先注入即時上下文(git diff、PR 內容),並用 allowed-tools 收斂權限。
你是不是每次都把同一段「幫我做 X 的步驟」貼進 Claude Code?這支 meta-prompt 幫你把它設計成 /your-command:含參數佔位符、用 !`git diff` 把即時狀態先塞進去、用 allowed-tools 免去每次按同意,存進 repo 後全隊都能用。
[ 登入後可看完整內容 ]【何時用】當你發現自己第三次把同一段「幫我做 X 的步驟」貼進 Claude Code 時。【為何有效】(1) 它先幫你選對載體——輕量需求用 .claude/commands/<name>.md(檔名即指令名,至今仍可用),需要附帶腳本/子代理/自動觸發才升級成 .claude/skills/<name>/SKILL.md;(2) frontmatter 只留真正有用的欄位:description 讓隊友在 / 選單看得懂、allowed-tools 把權限收到剛好(例如只給 Bash(npm run lint:*) 的 lint 指令就不可能誤改檔案)、有副作用的(deploy/commit)加 disable-model-invocation:true 避免 Claude 自作主張;(3) 教你用 !`git diff` 這種『執行注入』把即時狀態在模型讀到前就塞進去,所以模型拿到的是真 diff 而非一句指令。【技巧】把 command 檔 commit 進 .claude/ 後全隊自動共用;專案層的 allowed-tools 要先接受 workspace-trust 對話框才生效。參數用 $ARGUMENTS 抓全部、$1/$2 抓單一位置,多字參數記得加引號。
Chosen format: .claude/commands/summarize-changes.md (lightweight, no supporting files needed) --- description: Summarize uncommitted changes and flag risks. Use when asked what changed or for a commit message. allowed-tools: Bash(git diff:*) Bash(git status:*) --- ## Current changes !`git diff HEAD` ## Task Summarize the diff above in 2-3 bullets, then list risks (missing error handling, hardcoded values, tests to update). If the diff is empty, say there are no uncommitted changes. How to run: /summarize-changes Teammates get it automatically once .claude/commands/ is committed. Project-level allowed-tools activates after you accept the workspace-trust dialog.
以上為此 Prompt 丟進 Claude Code 後可得到的描述性成果,實際畫面會因填入的變數而有差異。
這組 prompt 專為 Claude Code 設計。把 prompt 內 5 個方括號 [變數] 換成你自己的內容,貼進 Claude Code 執行即可。難度中等,照變數說明填好後即可上手。
完整 prompt 免費。註冊並登入 PromptCraft 帳號即可複製、收藏與留言,不需付費。
prompt 文字本身你可自由使用與修改。但 AI 生成物(圖/音樂/影片/文字)的商用授權,取決於你在 Claude Code 使用的方案與其官方服務條款,請以該工具的授權規範為準。
Studio engineer 視角拆解 Suno 致命弱點(油炸 vocals、高頻 artifact)+ 4 步驟 DAW workflow + Suno Studio 修音 prompt
提案產生器 / 會議處理器 / 內容再利用 / 週五回顧 / 收工 reset — 試了 40 個只有這 5 個沒被丟掉、各省 30+ 分鐘 / 次。
適合:部落格、Medium、Notion 公開頁、Substack — 任何支援 iframe / HTML 嵌入的地方。對方點「看完整」會回到本站、是 prompt 庫的免費 backlink。
<iframe src="https://prompt.luvai.net/embed/claude-code-slash-command-designer" width="100%" height="380" frameborder="0" style="border:1px solid #e0dcd0;border-radius:4px;" loading="lazy" title="PromptCraft Embed"></iframe>