/dev-standards:dev-standards-add-skillfrom dev-standards
Create new project-specific skill in `.claude/skills/` to codify recurring pattern. 在項目中新建可複用技能。 Use when: add skill, create skill, new skill, codify pattern, make reusable workflow
Ships in dev-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
在 .claude/skills/ 中創建新的項目專屬技能,將反覆出現的模式固化為可複用的工作流。
詢問用戶此技能應固化何種反覆任務或模式。示例提示:
若用戶不確定,詢問:「What task do you find yourself explaining to Claude repeatedly? That is a good candidate for a skill.」
待答後方繼續。
依次詢問以下問題。收齊所有答案後再生成。
詢問技能名稱(kebab-case)。依描述的模式建議名稱。
詢問應觸發此技能的短語。frontmatter 的 description 必須列出觸發短語,使 Claude 在正確時機啟用技能。依模式建議 3-5 個觸發語。
請用戶描述涉及的步驟。以下問題深入挖掘:
詢問技能是否需要:
references/ 子目錄scripts/ 子目錄若均不需要,跳過子目錄創建。
生成前驗證技能遵循以下慣例:
.claude/skills/<skill-name>/SKILL.mdname: Title Case, concisedescription: Trigger-rich — one clause stating what the skill does, then Use when: followed by a comma-separated cluster of trigger phrases (the verbs + objects that match user intent), plus an optional Skip: excluder. Under 400 chars. Follow dev-standards:skill-description-style. This field is retrieval metadata; non-Claude agents never read it — cross-agent discovery is Step 6.## headings, use -- separator (e.g., ## Step 1 -- Description)### headings (e.g., ### 3a -- Detail)若有慣例違反,寫入前向用戶報告。
在 .claude/skills/<skill-name>/SKILL.md 創建技能文件,結構如下:
---
name: <Skill Name>
description: "<one clause: what the skill does>. Use when: <trigger 1>, <trigger 2>, <trigger 3>. Skip: <wrong-match excluder>."
---
# <Skill Name>
<One-sentence summary of what this skill does.>
## Step 1 -- <First Step>
<Instructions in imperative form.>
## Step 2 -- <Second Step>
<Instructions in imperative form.>
...additional steps...
用戶確認生成內容正確後方寫入文件。若用戶要求修改,修訂後再次呈現,方可寫入。
若技能需要引用文件或腳本(Step 2c 中確認):
.claude/skills/<skill-name>/references/ 並填入引用文件.claude/skills/<skill-name>/scripts/ 並填入腳本文件Claude 自動發現 .claude/skills/ 之項目技能;非-Claude agents(Codex、Gemini 等)不然——彼唯由 repo 根之 AGENTS.md 指引方見之。故此為 create-skill 流之終步,非可選。
尋 repo 根之 AGENTS.md。若無,建之,含 ## Project Skills 節。
於既有技能清單下(或新建之)追加一行 pointer:
- <skill-name>: <one-line summary> — .claude/skills/<skill-name>/SKILL.md
行文從簡,配合檔案既有風格。一技能一行;勿重複既有條目。
寫入後:
## 步驟標題使用 Step N -- Description 格式AGENTS.md 已含此技能之 pointer 行(Step 6)報告結果:
Skill created:
File: .claude/skills/<skill-name>/SKILL.md
Triggers: "<trigger 1>", "<trigger 2>", ...
Steps: N steps
Word count: NNN / 2000
References: [list or "none"]
Scripts: [list or "none"]
AGENTS.md: pointer added
dev-standards:skill-description-style — Step 4 生成 SKILL.md 之 description 欄,必依此風格規則(概念精簡 → caveman/wenyan 壓縮)。What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub standardbeagle/standardbeagle-tools --plugin dev-standardsOther plugins' skills for the same job
25 skills in this plugin
/dev-standards-ce-compound記錄已解決問題以複利機構知識。Document solved problems in docs/solutions/ with structured YAML frontmatter. Use when: non-trivial problem solved + verified, prevent re-discovery, capture institutional learning before context fades, document best practice or workflow pattern. Skip: trivial (typo), solution unverified, problem in progress, project lacks docs/solutions/ convention./dev-standards-ce-setupDiagnose + configure compound-engineering env — CLI deps, plugin version, repo-local config. Guided install for missing tools, gitignore + config bootstrap. Use when: troubleshoot missing tools, verify CE setup, onboard repo, refresh config template, /ce-setup re-check. Skip: unrelated to compound-engineering tooling./dev-standards-