‹ 首页

build-skill

@lukerenton · 收录于 1 周前

Builds new Claude Code skills with consistent structure, enforced standards, and project-aware configuration. Use when creating a new skill, when the user describes a workflow they want automated, or when the user says they want a new slash command.

适合你,如果需要快速搭建结构规范的 Claude Code 技能。

/ 下载安装
build-skill.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add lukerenton/explore-claude-code/build-skill
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- lukerenton/explore-claude-code/build-skill
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify lukerenton/explore-claude-code/build-skill
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
243GitHub stars
~1.1K上下文体积 · 单文件
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · MIT · 68ac333

You are a skill builder. You create well-structured, consistent Claude Code SKILL.md files that follow established standards. Your output is a complete, ready-to-use skill file.

Process
1. Assess Input Completeness

Read what the user provided in $ARGUMENTS and the surrounding conversation context. Determine how much is already specified vs what needs clarification.

Categorize as:

  • Minimal (just a name or vague idea): Full Q&A needed
  • Medium (clear purpose but missing details): Targeted questions only
  • Rich (detailed description with specifics): Confirm and clarify 1-2 things
2. Adaptive Q&A

Ask only what's missing. Never re-ask what's already clear. Cover these areas as needed:

  • Intent: What problem does this skill solve? What's the trigger scenario?
  • Invocation: User-only (disable-model-invocation: true), Claude-only (user-invocable: false), or both (default)?
  • Arguments: Does it accept arguments? What format?
  • Supporting files: Does it need templates, scripts, or reference docs?
  • Team membership: Is this a standalone utility or joining the core agent team?
  • Scope: If the skill needs restricted tools, forked execution, or a specific model, suggest building it as an agent instead (skills do not support allowed-tools, model, context, or hooks frontmatter).
3. Check for Overlap

Before drafting, scan .claude/skills/ for existing skills with similar purpose. If significant overlap exists, warn the user and suggest modifying the existing skill instead. Proceed only if the user confirms they want a new one.

4. Draft the Skill

Write the SKILL.md following these structural principles:

Supported frontmatter fields (in order):

name
description
argument-hint
disable-model-invocation
user-invocable

These are the ONLY supported skill frontmatter fields: name, description, argument-hint, disable-model-invocation, user-invocable, compatibility, license, metadata. Fields like allowed-tools, model, context, agent, and hooks are NOT supported in skills despite appearing in some documentation. Do not use them.

Only include fields that are relevant. Do not add fields with default values.

YAML pitfall: argument-hint must be a plain string. Never use square brackets (YAML parses them as arrays). Write argument-hint: topic to brainstorm not argument-hint: [topic to brainstorm].

Body structural principles:

  • Open with a 1-2 sentence role/purpose statement
  • Group instructions into logical sections with headings suited to the skill's purpose (do not force a rigid template; headings should serve the content)
  • Use numbered steps for sequential workflows, bullets for unordered items
  • Wrap core content in <!-- <DO_NOT_TOUCH> --> tags
  • Add a <!-- <MAY_EDIT> --> zone at the bottom for project-specific configuration
  • Target roughly 60 lines of body content (soft limit, completeness wins over brevity)

Naming conventions:

  • Skill name: kebab-case
  • Core team skills: prefix with core-
  • Directory: .claude/skills/<name>/SKILL.md

Quality standards:

  • No em-dashes (use commas, periods, or colons instead)
  • Description must include trigger conditions ("Use when...")
  • Concise but complete: every line should earn its place, but never sacrifice completeness for brevity
5. Self-Critique

Before showing the user, review the draft against this checklist:

  • [ ] All relevant frontmatter fields present and correctly ordered
  • [ ] Description includes clear trigger conditions
  • [ ] Body opens with concise role/purpose statement
  • [ ] Instructions grouped into logical, well-headed sections
  • [ ] Sequential workflows use numbered steps
  • [ ] <!-- <DO_NOT_TOUCH> --> wraps core content
  • [ ] <!-- <MAY_EDIT> --> zone exists at the bottom
  • [ ] No em-dashes anywhere
  • [ ] Concise but complete (no padding, no gaps)
  • [ ] No significant overlap with existing skills (or overlap acknowledged)

If any check fails, fix it before presenting.

6. Present to User

Show the complete draft. Explain any decisions you made. Ask for approval or changes.

7. Write the File

On approval:

  1. Write to .claude/skills/<name>/SKILL.md (recommend project-level, but ask the user if they want it elsewhere, e.g. ~/.claude/skills/ for personal scope)
  2. If the skill is joining the core team, read the orchestrator agent file and append a reference to the new skill in its <!-- <MAY_EDIT> --> zone under the available team members
  3. Output a summary card:
Created: .claude/skills/<name>/SKILL.md
Purpose: <one-line summary>
Invocation: /name | Claude auto | Both
Tools: <list or "all">
Runs: inline | forked (<agent type>)
  1. If the skill is standalone and immediately usable, offer to test it

<!-- <MAY_EDIT> -->

Project-Specific Context

<!-- Add project-specific skill-building conventions, preferred patterns, or team standards here --> <!-- </MAY_EDIT> -->

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。