Lesson 2 - Designing a Skill Artifact
Translate your charter into a concrete folder structure, master SKILL.md frontmatter, and understand how progressive disclosure keeps skills fast and maintainable.
Duration: 1.5-2 hours
Learning Objectives
By the end of this lesson, you will be able to:
- ✓Create a correctly named skill directory with a valid SKILL.md file.
- ✓Author compliant YAML frontmatter with name and description (required) plus optional governance fields.
- ✓Structure the instruction body with scannable sections that map to the four-part hierarchy.
- ✓Decide when to add scripts/, references/, and assets/ without bloating SKILL.md.
Videos
From Charter to Folder
Live-build the minimum viable skill folder, validate naming conventions, and watch the AI tool recognize it instantly.
Duration: 7 minutes
Video coming soon
SKILL.md Frontmatter Deep Dive
Walk through every field, explain why descriptions must be scenario-specific, and show what makes the AI activate your skill.
Duration: 10 minutes
Video coming soon
Instruction Body and Supporting Directories
Structure the markdown body with placeholder sections and learn when to offload content into supporting directories.
Duration: 8 minutes
Video coming soon
Key Concepts
Canonical Skill Layout
Complete SKILL.md Example: deploy-checklist
Frontmatter Field Reference
Progressive Disclosure: How AI Loads Skills
Supporting Directory Decision Tree
Common Mistakes & Pitfalls
❌ Folder name doesn't match the name field
If your folder is 'code-review/', the name field MUST be 'code-review'. Any mismatch makes the skill invisible to your AI tool.
❌ Writing a vague description
'A helpful deployment skill' tells the AI nothing. Write: 'Run pre-deploy validations before shipping backend services to production.' The AI uses the description to decide WHEN to activate.
❌ Adding directories before you need them
An empty scripts/ folder adds complexity without value. Start with just SKILL.md. Add scripts/ when you actually have a script to put there.
❌ Using uppercase, spaces, or underscores in the skill name
Skill names must be lowercase with hyphens: 'deploy-checklist' not 'Deploy_Checklist' or 'deploy checklist'.
❌ Putting everything in one massive SKILL.md
If SKILL.md exceeds 500 lines, it becomes hard to scan and maintain. Move templates to references/, data to assets/, and automation to scripts/.
Exercises
Exercise 1: Build Your Skill Skeleton
15 minutesCreate the folder for your chartered workflow. Add SKILL.md with valid frontmatter and the four placeholder sections (Trigger, Workflow, Constraints, Output).
Expected Output:
A folder with SKILL.md containing frontmatter + placeholder section headings.
Success Criteria:
- •Folder name is lowercase kebab-case, under 64 characters.
- •SKILL.md frontmatter has name (matching folder) and a scenario-specific description.
- •Four placeholder sections (Trigger, Workflow, Constraints, Output) are present.
- •Committed to git with a descriptive commit message.
Exercise 2: Description Stress Test
20 minutesWrite three different descriptions for your skill. Test each by asking: 'Would the AI activate this skill for the right task and NOT activate it for the wrong task?'
Expected Output:
Three candidate descriptions with notes on which is most precise.
Success Criteria:
- •Three descriptions that differ meaningfully, not just in wording.
- •Evaluated each against a 'should activate' scenario and a 'should NOT activate' scenario.
- •Selected the strongest description and updated SKILL.md.
Exercise 3: Reverse-Engineer an Existing Skill
15 minutesFind a community skill (github.com/anthropics/skills or similar). Map each file to the canonical layout diagram. Note how they use frontmatter and supporting files.
Expected Output:
Annotated breakdown of another team's skill structure.
Success Criteria:
- •Identified every frontmatter field in the reference skill.
- •Documented how the instruction body links to supporting files.
- •Listed one idea to adopt and one thing you'd do differently.
Lesson Reflection
Take a moment to reflect on what you've learned:
- 1. Look at the complete deploy-checklist example. Which section is clearest? Which would you write differently?
- 2. For your chartered workflow, is SKILL.md alone enough, or do you already know you'll need supporting files?
- 3. How would you describe your skill in one sentence so the AI knows EXACTLY when to activate it?
- 4. What's the difference between a description that says what the skill does vs. when to use it?