agentleFS
Hey-DigaHey-Diga/dotclaude/skills/create-skill/SKILL.md

create-skill

Skill17 starsChanged 9 months agoMITView on GitHub

Interactive guide for creating new Claude skills with proper structure, frontmatter, and trigger conditions. Use when building a new skill, scaffolding a SKILL.md, or need guidance on skill best practices.

142 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-bugbot, migrate-to-skills and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • 0mlkrizzz655335vSkill

    review-bugbot

    缺陷导向代码审查。用 Bugbot 子代理找 bug。

    Also in 5 projects that use this

  • 32103210Skill

    migrate-to-skills

    Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.

    Also in 8 projects that use this

  • 32103210Skill

    update-cursor-settings

    Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.

    Also in 8 projects that use this

  • PandelisZSkill

    update-cli-config

    View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.

    Also in 7 projects that use this

  • yawningwhaleAISkill

    build-premium-website

    Build a premium, animated marketing website (React + Vite + Tailwind + GSAP) for any industry. Use when the user asks to "build a website", "make a landing page for [business]", "build a marketing site", or wants a high-end animated company website. Adapts color, copy, services, and signature animation to the industry.

    Also in 6 projects that use this

  • yawningwhaleAISkill

    instantly-campaign

    Create a new Instantly cold-email campaign in the proven 5-email structure of the user's top-performing campaign (~16% reply rate). Use when the user wants to launch a new outbound campaign, write a cold email sequence, create an Instantly campaign, draft outreach for a new service or niche, or set up a sales sequence.

    Also in 5 projects that use this

  • +1 more from 32103210

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 10 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 132 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask the user for:

    line 17
  2. Distinctive:

    If the user is unsure, suggest 2-3 concrete use cases and trigger phrases.

    line 25
  3. Very specific:

    NOT have redundant verb prefixes (add-, new-, get-, run-, do-)

    line 34
  4. Distinctive:

    NOT contain "claude" or "anthropic" (reserved)

    line 35
  5. Distinctive:

    NOT have spaces, underscores, or capitals

    line 36
  6. Distinctive:

    Use this structure adapted to the skill's needs:

    line 103
  7. Distinctive:

    Before creating, scan for overlap with existing skills:

    line 160
  8. Distinctive:

    If there's overlap, suggest extending the existing skill instead.

    line 166
  9. Very specific:

    Create the folder: .claude/skills/{skill-name}/

    line 170
  10. Very specific:

    Write SKILL.md with frontmatter + body

    line 171
  11. Distinctive:

    Do NOT create a README.md inside the skill folder

    line 176
  12. Distinctive:

    Run through this checklist before presenting to the user:

    line 181
  13. Distinctive:

    After creating the skill, update the skills count and list in CLAUDE.md under the "Skills-First Approach" section.

    line 200

“Common” is measured: kept by at least 6 in 10 of the 132 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Create Skill

Interactive guide for creating new Claude skills following Anthropic's official skill specification. Walks you through use case definition, frontmatter generation, instruction writing, and validation.


Workflow

Step 1: Gather Context

Ask the user for:

  1. Skill name — kebab-case, describes the domain/concept (not the action). The description already explains what the skill does, so avoid verb prefixes like add-, new-, get-, run-
  2. What it does — one sentence describing the skill's purpose
  3. When to use it — trigger conditions (what the user says/does that should activate it)
  4. Tools needed — which tools the skill requires (Read, Write, Edit, Glob, Grep, Bash, MCP tools, etc.)
  5. Workflow steps — the sequence of actions the skill should perform

If the user is unsure, suggest 2-3 concrete use cases and trigger phrases.

Step 2: Validate the Name

The skill name MUST:

  • Be kebab-case: my-cool-skill
  • Match the folder name exactly
  • Describe the domain or concept, not the action — the description already explains what the skill does
  • NOT have redundant verb prefixes (add-, new-, get-, run-, do-)
  • NOT contain "claude" or "anthropic" (reserved)
  • NOT have spaces, underscores, or capitals

Good names: background-job, event, gh-issue, commit, testing-guide, ui-patterns Bad names: add-background-job, new-gh-issue, run-tests, get-user-data

Step 3: Write the YAML Frontmatter

Generate the frontmatter with these fields:

---
name: skill-name
description: What it does. Use when [trigger conditions].
allowed-tools: Tool1, Tool2, Tool3
---

Required fields:

FieldRules
namekebab-case, must match folder name
descriptionMUST include WHAT + WHEN (trigger phrases). Under 1024 chars. No XML tags (< or >).

Optional fields:

FieldRules
allowed-toolsComma-separated list of tools the skill can use. Restricts access for security.
licenseFor open-source skills (e.g., MIT, Apache-2.0)
compatibility1-500 chars, environment requirements
metadataCustom key-value pairs (author, version, mcp-server)

Description Formula

[What it does] + Use when [trigger conditions with specific phrases users might say].

Good examples:

# Specific and actionable
description: Scaffold a new background job type with handler, type definition, and registration. Use when adding async processing, scheduled tasks, or retry-based workflows.

# Includes trigger phrases
description: Create git commits from current changes using Conventional Commits format. Use when ready to commit staged or unstaged changes.

# Clear scope
description: Expert agent for UI/UX design decisions, component implementations, and design system compliance. Use when building UI components, choosing layouts, or need design system guidance.

Bad examples:

# Too vague
description: Helps with projects.

# Missing triggers
description: Creates sophisticated multi-page documentation systems.

# Too technical, no user triggers
description: Implements the Project entity model with hierarchical relationships.

Step 4: Write the Body Instructions

Use this structure adapted to the skill's needs:

# Skill Name

Brief description of what the skill does and its value.

---

## Workflow

### Step 1: [First Major Step]

Clear explanation with specific tool calls.

1. `Read("path/to/file")` - Why
2. `Glob("pattern")` - Why

### Step 2: [Next Step]

Continue with clear, actionable instructions.

(Add more steps as needed)

### Step N: Present to User

Show all modified/created files for review before committing.

---

## Key Design Decisions

- **Decision 1**: Explanation
- **Decision 2**: Explanation

---

## File References

| File | Purpose |
|------|---------|
| `path/to/file` | What it contains |

Body Best Practices

  • Be specific and actionable — include exact tool calls, file paths, expected outputs
  • Use progressive disclosure — keep SKILL.md focused on core instructions, move detailed docs to references/
  • Include error handling — document common issues and solutions
  • Add examples — show concrete inputs/outputs for common scenarios
  • Keep it under 5,000 words — move reference material to separate files
  • Put critical instructions at the top — Claude processes top content first
  • Use numbered lists for sequential steps — bullets for non-ordered items
  • Reference bundled resources clearly — link to references/ files when available

Step 5: Review the Existing Skills

Before creating, scan for overlap with existing skills:

Glob(".claude/skills/*/SKILL.md")

If there's overlap, suggest extending the existing skill instead.

Step 6: Create the Skill

  1. Create the folder: .claude/skills/{skill-name}/
  2. Write SKILL.md with frontmatter + body
  3. Optionally create scripts/, references/, or assets/ subdirectories if needed

Critical rules:

  • File MUST be named exactly SKILL.md (case-sensitive)
  • Do NOT create a README.md inside the skill folder
  • Folder name MUST match the name field in frontmatter

Step 7: Validate with Checklist

Run through this checklist before presenting to the user:

  • Folder named in kebab-case
  • SKILL.md file exists (exact casing)
  • YAML frontmatter has --- delimiters
  • name field: kebab-case, no spaces, no capitals
  • name describes domain/concept, no verb prefixes (add-, new-, get-, run-)
  • name matches folder name
  • description includes WHAT and WHEN (has "Use when")
  • description under 1024 characters
  • No XML tags (< >) in frontmatter
  • No "claude" or "anthropic" in the name
  • allowed-tools field present
  • Instructions are clear and actionable
  • Error handling included (if applicable)
  • File references table present

Step 8: Update CLAUDE.md

After creating the skill, update the skills count and list in CLAUDE.md under the "Skills-First Approach" section. Add the new skill name to the list in alphabetical order and increment the count.

Step 9: Present to User

Show the complete skill for review:

  1. Display the full SKILL.md content
  2. Highlight the trigger conditions
  3. Suggest 3 test queries to verify triggering:
    • One obvious trigger
    • One paraphrased trigger
    • One that should NOT trigger

Skill Categories

Most skills fall into one of these categories:

CategoryUse forExample
Document & Asset CreationConsistent, high-quality output (docs, code, designs)ui-patterns, ux-ui-designer
Workflow AutomationMulti-step processes with consistent methodologycommit, create-pr, start-working-on-issue
ScaffoldingCreating new code/config following project patternsbackground-job, event
Reference/GuideDomain knowledge and best practicestesting-guide, better-auth-best-practices
MCP EnhancementWorkflow guidance on top of MCP tool accesslinear-issue-implement, linear-task-create

Progressive Disclosure (3-Level System)

Skills use a three-level loading system to minimize token usage:

LevelWhatWhen Loaded
Level 1YAML frontmatter (name, description)Always in system prompt
Level 2SKILL.md body (full instructions)When Claude thinks the skill is relevant
Level 3Linked files (references/, scripts/, assets/)Only when Claude navigates to them

Design your skill with this in mind — keep the description informative enough for Level 1 decisions, the body complete for Level 2 execution, and move detailed reference material to Level 3.


Common Pitfalls

ProblemCauseSolution
Skill never triggersDescription too vague or missing trigger phrasesAdd specific "Use when" conditions and user phrases
Skill triggers too oftenDescription too broadAdd scope limits, be more specific, add negative triggers
Instructions not followedToo verbose or ambiguousUse numbered steps, specific tool calls, exact file paths
Upload failsWrong file name or YAML formatMust be exactly SKILL.md, check --- delimiters

File References

FilePurpose
.claude/skills/*/SKILL.mdAll existing skills for reference
CLAUDE.mdProject instructions — update skill count after creating

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.