agentleFS
launch52-ailaunch52-ai/flutter-template/.claude/skills/skill-create/SKILL.md

skill-create

Skill2 starsChanged 9 months agoMITView on GitHub

Create and validate Claude Code skills with proper structure, checklists, and validation scripts. Use when creating a new skill, auditing existing skills, or ensuring skills meet quality standards. Generates complete skill scaffolds with SKILL.md, check scripts, guides, and templates.

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 12

    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:

    Create complete, well-structured Claude Code skills.

    line 9
  2. Very specific:

    Use template from templates/SKILL.md.template:

    line 82
  3. Distinctive:

    Write frontmatter (name, description, allowed-tools)

    line 84
  4. Distinctive:

    Add "When to Use" section with clear scenarios

    line 85
  5. Distinctive:

    Add guides table linking to detailed content

    line 87
  6. Distinctive:

    Add "Related Skills" section

    line 89
  7. Distinctive:

    Add to "Complete Skill Reference" table

    line 124
  8. Distinctive:

    Add to skill flow diagrams

    line 125
  9. Distinctive:

    Add to delegation rules if needed

    line 126
  10. Distinctive:

    All skills - This skill helps create and validate them

    line 228
  11. Distinctive:

    After creating a skill:

    line 233
  12. Very specific:

    Run validate.dart --skill {name} to check quality gates

    line 234
  13. Very specific:

    Update SKILL_STRUCTURE.md to register the skill

    line 235
  14. Distinctive:

    Test the skill with representative tasks

    line 236
  15. Distinctive:

    Verify Claude finds reference files correctly

    line 237

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

Create complete, well-structured Claude Code skills. Generates scaffolds, validates skill completeness, and ensures quality standards.

When to Use This Skill

  • Creating a new skill from scratch
  • Auditing existing skills for completeness
  • Validating a skill before deployment
  • Understanding skill best practices
  • User asks "create skill", "new skill", or "validate skill"

Questions to Ask

  1. Skill category: Code-heavy, Auth, Config, Knowledge, or Orchestration?
  2. Core purpose: What problem does this skill solve? (1-2 sentences)
  3. Trigger words: What keywords should invoke this skill?
  4. Reference code: Will it include Dart templates, or just guides?
  5. Validation needs: What should the check script verify?

Quick Reference

Skill Categories

CategoryExamplesFocus
Code-Heavydomain, data, presentationGenerate detailed code from specs
Authauth, phone-auth, social-loginAuthentication with platform setup
Configrelease, ci-cd, analyticsPlatform configs and workflows
Knowledgedesign, i18n, testing, a11yGuidelines and patterns
Orchestrationplan, init, feature-initCoordinate other skills

Directory Structure

.claude/skills/{skill-name}/
├── SKILL.md              # Main entry (<300 lines)
├── {topic}-guide.md      # Detailed guides (reference/ for code)
├── templates/            # Platform configs (XML, YAML)
└── scripts/check.dart    # Validation script

SKILL.md Requirements

SectionRequiredPurpose
YAML frontmatterYESname, description, allowed-tools
When to UseYESClear trigger scenarios
WorkflowYESNumbered implementation steps
Guides tableYESLinks to detailed content
ChecklistYESVerification items
Related SkillsYESCross-references
Quick ReferenceRecommendedDecision tables, key patterns

Workflow

Phase 1: Define Skill

  1. Determine skill category and core purpose
  2. Identify trigger words for description
  3. List what the skill should NOT handle (delegate to other skills)
  4. Define expected outputs (files, code, configs)

Phase 2: Create Structure

# Create skill directory
mkdir -p .claude/skills/{skill-name}/{scripts,templates,reference}

# Validate structure
dart run .claude/skills/skill-create/scripts/validate.dart --skill {skill-name}

Phase 3: Write SKILL.md

Use template from templates/SKILL.md.template:

  1. Write frontmatter (name, description, allowed-tools)
  2. Add "When to Use" section with clear scenarios
  3. Define workflow with numbered steps
  4. Add guides table linking to detailed content
  5. Include checklist for verification
  6. Add "Related Skills" section

Phase 4: Create Supporting Files

Based on category:

Code-Heavy Skills:

  • reference/ - Full Dart implementations
  • scripts/check.dart - Validates generated code

Config Skills:

  • templates/ - Platform config files (XML, YAML, properties)
  • {topic}-guide.md - Setup instructions
  • scripts/check.dart - Validates config presence

Knowledge Skills:

  • {topic}-guide.md - Best practices and patterns
  • examples.md - Code examples
  • scripts/check.dart - Audits code for issues

Phase 5: Validate

# Run full validation
dart run .claude/skills/skill-create/scripts/validate.dart --skill {skill-name}

# Check specific aspects
dart run .claude/skills/skill-create/scripts/validate.dart --skill {skill-name} --check frontmatter
dart run .claude/skills/skill-create/scripts/validate.dart --skill {skill-name} --check structure
dart run .claude/skills/skill-create/scripts/validate.dart --skill {skill-name} --check references

Phase 6: Register

Update SKILL_STRUCTURE.md:

  1. Add to "Complete Skill Reference" table
  2. Add to skill flow diagrams
  3. Add to delegation rules if needed

Commands

dart run .claude/skills/skill-create/scripts/validate.dart --skill {name}  # Validate
dart run .claude/skills/skill-create/scripts/validate.dart --all           # Validate all
dart run .claude/skills/skill-create/scripts/validate.dart --list-checks   # List checks
dart run .claude/skills/skill-create/scripts/validate.dart --skill {name} --report  # Detailed

Quality Gates

A skill must pass these gates before deployment:

Gate 1: Structure (Required)

  • SKILL.md exists
  • SKILL.md < 300 lines
  • Valid YAML frontmatter
  • Required sections present

Gate 2: Content (Required)

  • Description < 1024 chars
  • Description in third person
  • Workflow has numbered steps
  • Checklist has > 3 items
  • All internal links resolve

Gate 3: Quality (Recommended)

  • No code blocks > 10 lines in SKILL.md
  • Reference files have header comments
  • Check script exists and runs
  • Related Skills section accurate

Gate 4: Integration (Recommended)

  • Registered in SKILL_STRUCTURE.md
  • Cross-references to/from other skills accurate
  • No duplicate functionality with existing skills

See: quality-gates.md for detailed criteria.

Guides

FileContent
checklist.mdComprehensive skill creation checklist
quality-gates.mdDetailed quality criteria
examples.mdWell-structured skill examples

Templates

TemplatePurpose
templates/SKILL.md.templateStarting point for SKILL.md
templates/check.dart.templateValidation script scaffold
templates/guide.md.templateGuide file structure

Anti-Patterns

PatternProblemSolution
Long SKILL.md500+ lines with code< 200 lines, move code to reference/
Vague description"Helps with data stuff"Specific: "Generate DTOs, repositories..."
Missing delegationInline i18n, testing, a11yUse "Run /i18n" in Next Steps
No validationNo way to verifyAdd scripts/check.dart

See: examples.md for well-structured skill examples.

Checklist

Structure:

  • Directory follows standard structure
  • SKILL.md exists with valid frontmatter
  • SKILL.md < 300 lines (ideally < 200)
  • All internal links resolve

Content:

  • "When to Use" section with clear scenarios
  • Workflow with numbered steps
  • Guides table with linked files
  • Checklist with verification items
  • Related Skills section

Quality:

  • Description in third person
  • Description includes trigger words
  • No code blocks > 10 lines in SKILL.md
  • Reference files have header comments
  • Check script validates key requirements

Integration:

  • Added to SKILL_STRUCTURE.md skill table
  • Added to skill flow diagrams
  • Cross-references accurate
  • Delegation rules documented

Related Skills

  • All skills - This skill helps create and validate them
  • SKILL_STRUCTURE.md - Central documentation this skill supports

Next Steps

After creating a skill:

  1. Run validate.dart --skill {name} to check quality gates
  2. Update SKILL_STRUCTURE.md to register the skill
  3. Test the skill with representative tasks
  4. Verify Claude finds reference files correctly

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.

Reviews can't be read right now.

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.