agentleFS
rshankrasrshankras/claude-code-apple-skills/skills/shared/skill-creator/SKILL.md

skill-creator

Skill915 starsChanged 22 days agoMITView on GitHub

Guides you through creating well-structured Claude Code skills with proper modularization, templates, and best practices. Use when creating new skills or improving existing ones.

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use taskflow-inbox-triage, community-led-growth 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.
  • AtomicBot-aiSkill

    taskflow-inbox-triage

    Also in 7 projects that use this

  • nicepkgSkill

    community-led-growth

    Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

    Also in 5 projects that use this

  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • shalombSkill

    mermaid-diagram-generator

    Guide on creating and editing Mermaid charts safely. Use when asked to draw a diagram, flowchart, or architecture chart. Triggers on: 'mermaid', 'diagram', 'flowchart', 'visualize'.

    Also in 5 projects that use this

  • nicepkgSkill

    ph-community-outreach

    Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

    Also in 5 projects that use this

  • +4 more from naman10parikh
  • +1 more from nicepkg

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 15 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 185 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user:

    line 15
  2. Distinctive:

    Activation: When should it activate?

    line 28
  3. Distinctive:

    Use checklists for systematic reviews:

    line 258
  4. Distinctive:

    Update descriptions: if scope changed

    line 335
  5. Distinctive:

    After creating a skill:

    line 355
  6. Distinctive:

    Verify metadata: Check front matter is valid YAML

    line 357
  7. Distinctive:

    Test activation: Ensure description triggers appropriately

    line 358
  8. Distinctive:

    Check references: Verify all referenced files exist

    line 359
  9. Distinctive:

    Run through workflow: Follow the process end-to-end

    line 360
  10. Distinctive:

    Validate output: Ensure output format is clear and useful

    line 361
  11. Distinctive:

    No examples or templates

    line 370
  12. Distinctive:

    Keep skills focused on a single purpose

    line 413
  13. Distinctive:

    Use modularization for maintainability

    line 414
  14. Distinctive:

    Test skills after creation

    line 416
  15. Distinctive:

    Update skills as needs evolve

    line 417

“Common” is measured: kept by at least 6 in 10 of the 185 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

Skill Creator

Helps you create well-structured, modularized Claude Code skills with best practices.

When This Skill Activates

Use this skill when the user:

  • Wants to create a new skill
  • Asks about skill structure or organization
  • Wants to improve or refactor existing skills
  • Needs help with skill modularization
  • Asks about skill best practices

Skill Creation Process

1. Understand Requirements

Ask the user:

  • Purpose: What should this skill do?
  • Activation: When should it activate?
  • Tools: What tools will it need? (Read, Write, Edit, Glob, Grep, Bash, WebFetch, etc.)
  • Scope: Is it project-specific or general-purpose?
  • Complexity: Will it need reference files or can it be self-contained?

2. Plan the Skill Structure

Based on complexity:

Simple Skills (Self-contained):

.claude/skills/skill-name/
└── SKILL.md

Complex Skills (Modularized):

.claude/skills/skill-name/
├── SKILL.md                  # Main skill definition
├── reference-1.md           # Supporting reference
├── reference-2.md           # Additional reference
└── examples.md              # Code examples/templates

3. Create the Main SKILL.md

The main SKILL.md should include:

Front Matter (Required)

---
name: skill-name
description: Brief description of what the skill does and when to use it
allowed-tools: [Read, Write, Edit]
last_verified: 2026-07-16
review_by: 2027-06-22
---

Front Matter Fields:

  • name: kebab-case skill name (e.g., code-reviewer, ui-audit)
  • description: 1-2 sentences describing the skill and when to use it
  • allowed-tools: Array of tools the skill can use
  • last_verified: date (YYYY-MM-DD) the content was last checked against reality — set to today when creating; bump on every material edit
  • review_by: date (YYYY-MM-DD) of the scheduled re-verification — default to ~2 weeks after the next WWDC (the natural decay event). CI requires both dates; a weekly workflow opens rollup issues when skills pass review_by
  • os_version (optional): the OS generation the content was verified against (e.g. iOS 27 / macOS 27) — add only if the skill cites OS/Swift versions

Common Tool Combinations:

  • Read-only analysis: [Read, Glob, Grep]
  • Code modification: [Read, Write, Edit]
  • Full access: [Read, Write, Edit, Glob, Grep, Bash]
  • Web research: [Read, Glob, Grep, WebFetch]

Main Content Structure

# Skill Name

Brief description of what this skill does.

## When This Skill Activates

Use this skill when the user:
- [Specific trigger 1]
- [Specific trigger 2]
- [Specific trigger 3]

## Process/Workflow

### 1. Step One
- Instructions for first step
- What to check or do
- Expected outputs

### 2. Step Two
- Instructions for second step
- References to supporting files if needed

### 3. Output Format

How to present results to the user.

## References

Links to relevant documentation, files, or resources.

4. Create Supporting Reference Files

For complex skills, create modular reference files:

When to Modularize:

  • Main SKILL.md exceeds 300-400 lines
  • Contains extensive checklists or examples
  • Has multiple distinct topics/categories
  • Would benefit from focused reference materials

Common Reference File Types:

  • Checklists: checklist.md, review-checklist.md
  • Patterns: patterns.md, anti-patterns.md
  • Examples: examples.md, templates.md
  • Quick References: quick-ref.md, commands.md
  • Guidelines: guidelines.md, standards.md

Reference File Structure:

# Reference Topic

Brief description of this reference.

## Section 1

### Subsection
- Checklist items
- Code examples
- Explanations

## Section 2

[Content organized logically]

## References
[External links if needed]

5. Link References in Main SKILL.md

In the main SKILL.md, reference supporting files:

### 2. Load Reference Materials

Before starting, familiarize yourself with these references:

- **patterns.md** - Common patterns and anti-patterns
- **examples.md** - Code examples and templates
- **checklist.md** - Comprehensive review checklist

Skill Writing Best Practices

Clear Activation Triggers

## When This Skill Activates

Use this skill when the user:
- Asks for code review or quality check
- Mentions "best practices" or "refactoring"
- Wants to improve code quality
- Requests architecture review

Actionable Instructions

// ❌ Vague
- Check the code

// ✅ Specific
- Check for force unwrapping (!)
- Verify all optionals use safe unwrapping patterns
- Flag any instances for review with line numbers

Examples and Templates

Always provide:

  • ✅ Good examples (what to do)
  • ❌ Bad examples (what to avoid)
  • Explanations (why it matters)
### Pattern Example

#### ❌ Anti-pattern
// Bad code example
let value = optional!

#### ✅ Good pattern
// Good code example
guard let value = optional else { return }

#### Why?
Force unwrapping crashes if nil. Guard provides safe unwrapping.

Structured Output Formats

Provide clear output templates:

## Output Format

Present findings in this structure:

### ✅ Strengths
- [List strengths]

### ⚠️ Issues Found
**[Category]**
**[Priority]: [File:Line]** - [Description]
// Current code
// Suggested fix
// Reason

### 📋 Recommendations
1. High priority items
2. Medium priority items
3. Low priority items

Tool Selection

Choose appropriate tools:

TaskTools
Reading codeRead, Glob, Grep
Modifying codeRead, Write, Edit
Running testsRead, Bash
Web researchWebFetch
File operationsRead, Write, Glob

Checklists

Use checklists for systematic reviews:

### Review Checklist

#### Category 1
- [ ] Check item 1
- [ ] Check item 2
- [ ] Check item 3

#### Category 2
- [ ] Check item 4
- [ ] Check item 5

Example Skills

Simple Skill Example

---
name: greeting-responder
description: Responds to user greetings with helpful information about the project
allowed-tools: [Read]
---

# Greeting Responder

Provides helpful project context when users greet Claude.

## When This Skill Activates

Use this skill when the user:
- Says "hello", "hi", or similar greetings
- Asks "what can you help with?"

## Process

1. Greet the user warmly
2. Provide brief overview of the project
3. List 3-5 common tasks you can help with
4. Invite them to ask questions

## Example Output

"Hello! I can help you with this Swift/iOS project. Here are some things I can do:

- Review code for best practices
- Help implement new features
- Debug issues
- Refactor code
- Write tests

What would you like to work on?"

Complex Skill Example

See the existing coding-best-practices or ui-review skills as examples of well-modularized complex skills.

Skill Maintenance

When to Refactor

Refactor a skill when:

  • Main SKILL.md exceeds 400-500 lines
  • Adding new content becomes difficult
  • Multiple distinct topics exist
  • Reference material is repeated
  • Finding information takes too long

How to Refactor

  1. Identify logical sections in the main SKILL.md
  2. Extract sections into focused reference files
  3. Update main SKILL.md to reference new files
  4. Test the skill to ensure references work
  5. Update descriptions if scope changed

File Organization

.claude/skills/skill-name/
├── SKILL.md                      # Main entry point
├── process.md                    # Detailed workflow
├── patterns/
│   ├── good-patterns.md
│   └── anti-patterns.md
├── references/
│   ├── checklist.md
│   └── examples.md
└── templates/
    └── output-template.md

Testing Your Skill

After creating a skill:

  1. Verify metadata: Check front matter is valid YAML
  2. Test activation: Ensure description triggers appropriately
  3. Check references: Verify all referenced files exist
  4. Run through workflow: Follow the process end-to-end
  5. Validate output: Ensure output format is clear and useful

Common Pitfalls

❌ Avoid

  • Vague activation criteria
  • Missing tool permissions
  • Overly complex single-file skills
  • No examples or templates
  • Unclear output formats
  • Broken reference links

✅ Do

  • Clear, specific activation triggers
  • Appropriate tool selection
  • Modularize complex skills
  • Provide examples for everything
  • Define structured output formats
  • Keep references organized

Skill Naming Conventions

Name Format: kebab-case

Good Names:

  • code-reviewer
  • ui-audit
  • test-generator
  • api-analyzer

Bad Names:

  • CodeReviewer (PascalCase)
  • code_reviewer (snake_case)
  • reviewer (too vague)
  • cr (too abbreviated)

Templates

See the following reference files for templates:

  • skill-template.md - Basic skill template
  • complex-skill-template.md - Modularized skill template

References

Notes

  • Keep skills focused on a single purpose
  • Use modularization for maintainability
  • Provide clear examples and templates
  • Test skills after creation
  • Update skills as needs evolve

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.