
- A prompt that already works.
- The decisions and rules your team needs followed.
- References, templates, and scripts the workflow requires.
- The harness keeps a small catalog consisting of each skill’s name and description (YAML front matter). These fields stay in the routing context to decide matches.
- The full SKILL.md body is not loaded into context until the harness determines a match.
- When a match occurs, the harness loads the skill body and then opens referenced files or executes allowed scripts on demand.
- Name the folder using lowercase, numbers, and hyphens to match discovery rules.
- The required file is
SKILL.md(uppercase). - Optional top-level directories:
references/,scripts/, andassets/.
References can provide one-shot or few-shot examples. Scripts run checks or transformations. Assets supply templates or visual resources. None of these are loaded until the skill requests them.
When to build a skill
Build a skill when you find yourself repeating the same steps or when outputs must follow strict rules:
- Repeating tasks (weekly reports, meeting summaries).
- Tasks with strict formatting or compliance rules.
- Outputs that must match a team voice or brand.
- Processes multiple people should follow consistently.

Always review the source and any executable scripts before running a downloaded skill. Verify that requested permissions and external network access are safe for your environment.
- User: “Reply to this ticket.”
- Harness: matches the request to
helpdesk-replies. - Skill: reads the ticket, checks policy rules, drafts a reply.
- Human: reviews and approves the draft before sending.
name— use the folder name and stick to lowercase, numbers, and hyphens.description— the main routing field; include likely trigger phrases users will use.
license,author,version,compatibilityallowed_toolsor pre-approvals (client support varies)
- When to Use — trigger conditions.
- Inputs — what data is required (ticket text, customer name, priority).
- Workflow — ordered, imperative steps the agent should follow.
- Rules — mandatory formatting and policy constraints.
- Output — what the finished deliverable should look like; include explicit examples.
- Edge Cases — handling missing data, escalation rules, sensitivity checks.

- Level 1 — name and description: kept available for routing.
- Level 2 — SKILL.md body: loaded when the skill is activated.
- Level 3 — supporting materials (
references/,scripts/,assets/): loaded or executed on demand.
SKILL.md focused and compact (recommendation: under ~500 lines) and move heavy content into supporting files to minimize context load.

references/tone-guide.md before drafting the reply.”). Avoid chained references (A -> B -> C); prefer top-level direct references to reduce context consumption and simplify debugging.
Build process in four steps
- Name the job (folder +
SKILL.md). - Write the description (what it does and when it triggers).
- Define the task: inputs, ordered workflow steps, rules, outputs.
- Split heavy or complex parts into
references/,scripts/, andassets/.

- Test with real tickets and edge cases (missing fields, unusual requests, policy conflicts).
- If the skill never triggers: broaden the description with realistic phrases users might use.
- If the skill triggers too often: narrow the description and add disambiguating phrases.
- Iterate on
SKILL.mdand supporting files based on observed behavior.
SKILL.md, keep the main file focused, move larger materials into references/, scripts/, and assets/, and iterate after testing.
A demo follows that builds a working example.
Links and references