← ROUTE MAP
03 / SKILLS
/

Reusable judgment

Teach the
decision.

A skill changes behavior. Keep the trigger precise, put the workflow in SKILL.md, and move conditional facts, scripts, and examples into focused files.

Film · 24 s · silent, captioned
Transcript
  1. The same request, every week.
  2. Without a skill, you paste the rules every time.
  3. With a skill, only its description waits in context.
  4. A matching request loads the steps.
  5. Details and scripts load only when needed.
  6. Teach the decision once.

Package anatomy

One job.
More than
one file.

Choose a file to see why it belongs in the package.

REVIEW-UI / SKILL PACKAGE

SELECTED / SKILL.md

The operating contract

The one file that should always be loaded. Define the exact trigger, the ordered workflow, safety limits, and the evidence the agent returns.

            ---
name: review-ui
description: Review a changed UI for focus, reflow, and motion.
---

1. Inspect the changed interaction.
2. Run the UI checks.
3. Return findings with evidence.
          
SELECTED / references/

Facts, only when needed

Keep conditional detail out of the main instruction. A dialog pattern, framework caveat, or accessibility checklist belongs here when it is not needed for every review.

            references/
└── accessibility.md
    ├── keyboard interaction patterns
    └── focus and reflow checklist
          
SELECTED / scripts/

Mechanics that should not depend on memory

Turn deterministic checks into runnable tools. The agent still judges the result, but it should not have to recreate a viewport test or filename rule by hand.

            scripts/
└── check-reflow.mjs
    └── checks 320px, 1280px, and 4K widths
          
SELECTED / assets/

Starting material, not hidden instructions

Use assets for templates and examples a person or agent can copy. Keep them clearly named so package readers can choose the right starting point.

            assets/
├── review-report.md
└── focus-test-fixture.html
          

Create a skill

Observe →
trigger →
validate

  1. 01
    Observe friction Find a repeated decision or failure.
  2. 02
    Define the trigger Say when it should load and when it should stay out.
  3. 03
    Choose anatomy Use references for facts and scripts for deterministic mechanics.
  4. 04
    Evaluate behavior Test realistic prompts, edge cases, safety, and evidence.

Check yourself

Recall it before
you ship it.

Answer from memory first — the reveal is the feedback.

The skill never loads. What is the first suspect?

The trigger. A precise description says when to load the skill — and when to leave it out. A vague one never fires.

Where do the workflow, the facts, and the repeated mechanics each go?

The workflow stays in SKILL.md, conditional facts move to references/, and deterministic repeated mechanics become scripts/.

What proves a skill works?

Behavior, not headings: realistic prompts, edge cases, and safety checks with observable evidence — the same bar the review desk applies.