Agent skill
meta__create_skill
Creates or updates agent skills with proper structure, templates, testing, and documentation. Use when creating new skills or editing existing ones to keep them aligned with the Anthropic best practices.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/meta-create-skill
SKILL.md
Use this guide to add a new capability (skill/workflow) that follows Anthropic's "Complete Guide to Building Skills for Claude" playbook. Treat this document as the canonical example—any updates to it must satisfy the same standards described below.
Quality Standards
Structure & Progressive Disclosure
- Keep the three-layer model: concise YAML frontmatter → actionable
SKILL.mdbody → optional linked references. - Maintain composability; every skill must coexist with others without assuming exclusivity.
- Keep the body under ~500 lines. Move deep dives into
references/ortemplates/and link from the main file.
Frontmatter Requirements
- name:
prefix__slugfolder name, lowercase letters/numbers/hyphens, ≤64 characters, noclaude/anthropic. - description: ≤1024 characters describing what the skill does, when to use it (trigger phrases/file types), and key capabilities in third-person voice.
- Optional fields (
license,compatibility,metadata) clarify distribution licensing, runtime expectations, or MCP dependencies. Avoid XML brackets to keep the system prompt safe.
Folder Hygiene
- Directory format from the guide:
.claude/skills/{prefix__slug}/ ├── SKILL.md ├── templates/ # optional code or doc templates ├── references/ # optional deep guidance ├── assets/ # optional fonts/icons/mockups └── scripts/ # optional automation helpers - Never add
README.mdinside the skill directory; human-facing docs live elsewhere. - Reference template files (e.g.,
templates/Command.cs) instead of inlining large artifacts.
Description & Trigger Checklist
- Lists both positive triggers ("Use when the user says…") and negative guards ("Do not use when…") to reduce under/over-triggering.
- Mentions relevant files/APIs (.fig, Linear, etc.) so Claude can match user intent accurately.
- Passes the self-test: Ask Claude "When would you use the {skill}?" and ensure the echoed description matches your intent.
Instruction Crafting
- Begin with an opening statement summarizing the workflow outcome.
- Present numbered steps with validation gates, decision points, and references to reusable templates.
- Highlight error handling, rollbacks, and quality gates (e.g., iterative refinement loops) consistent with the guide's pattern library.
- Use
// turbocallouts for steps that automation can perform without human approval.
Planning Checklist
- Document 2–3 concrete use cases with trigger phrases, tool requirements (built-in or MCP), and the "definition of done" for each.
- Map each use case to one of Anthropic's categories: document creation, workflow automation, or MCP enhancement.
- Establish success criteria before authoring:
- ≥90% trigger rate on relevant prompts vs. manual enabling.
- Clear metrics (tool calls, token budget, error rate) to compare with/without the skill.
- Decide how progressive disclosure will split content between SKILL.md and linked references.
Skill Creation Steps
-
Plan Naming & Scope
- Reserve a unique
prefix__slugand ensure the folder mirrors the name exactly. - Capture user outcome statements ("Help me plan this sprint") and negative cases upfront.
- Reserve a unique
-
Author Frontmatter
- Use templates/SKILL.md as the scaffold.
- Populate
descriptionwith outcome + trigger phrases + relevant assets/APIs. - Add optional metadata such as
compatibility: "Claude Code + MCP-Linear"when the runtime matters.
-
Draft Instructions
- Follow the recommended structure: overview, numbered workflow, examples, troubleshooting.
- Link to reusable templates (e.g.,
templates/Endpoint.cs) instead of pasting long code blocks. - Include decision trees, validation steps, and error handling patterns pulled from the Anthropic guide.
-
Add Supporting Resources
- Create
templates/,references/,assets/, orscripts/as needed; use placeholders ({ResourceName}) for user-supplied values. - Keep references one level deep to respect progressive disclosure.
- Create
-
Register in AGENTS.md
- Document the
/prefix__slugcommand with a concise description and placement inside the Skills table.
- Document the
-
Test & Iterate
- Design trigger tests (should trigger vs. should not trigger lists), functional tests (end-to-end workflow success), and performance comparisons (token/tool-call deltas) per the guide.
- Iterate descriptions when you detect under- or over-triggering; add negative triggers or clarifications as needed.
// turbo 7. Automated Verification
- Lint YAML/Markdown, confirm template placeholders resolve, and ensure linked files exist.
- Validate that SKILL.md stays under size limits and references valid paths.
- Distribute & Document
- Provide installation guidance (zip folder → upload via Claude.ai Settings > Skills or place in Claude Code skills directory).
- Position the skill around outcomes ("set up project workspaces in seconds") and highlight the MCP + skill story when applicable.
Testing Playbook
- Trigger Coverage: Maintain a regression list of prompts that must load the skill and another list that must not.
- Functional Runs: Exercise representative workflows ("Create project with 5 tasks") and log API/tool outcomes and error handling paths.
- Performance Deltas: Compare baseline vs. skill-enabled runs for conversation turns, tool invocations, and token counts.
- Feedback Loop: Capture under/over-triggering and execution issues; feed them back into the description or instruction updates.
Distribution & Positioning
- Host skills in a public repo with a README for humans (outside the skill folder) plus screenshots or GIFs.
- Cross-link from your MCP documentation explaining how the skill and connector combine for faster workflows.
- Provide a short installation checklist so users can enable and test the skill immediately after download.
Pattern Reference
- Sequential Workflow Orchestration: Stepwise actions with validation and rollback guidance.
- Multi-MCP Coordination: Phase-by-phase coordination across multiple services, with explicit data handoffs.
- Iterative Refinement: Draft → validate → refine loops with stopping criteria.
- Context-Aware Tool Selection: Decision trees that choose the right MCP/tool based on file type, size, or risk tier.
- Domain-Specific Intelligence: Embed compliance/intelligence rules that run before calling external tools.
Related Skills
Prerequisites:
- Foundational skills such as /meta__cheat_sheet for quick conventions.
Next Steps:
- After scaffolding, use
/test__verify_featureor relevant automation to validate broader workflows.
See Also:
- /meta__write_agents_md for documentation guidance.
- Other
.claude/skills/examples for reference implementations.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?