STRΛTΛ19

Package a skill

Write a SKILL.md that teaches a host a real, executable sequence of existing strata19.* operations

Goal

Add a packaged skill under plugins/strata19/skills/ that a coding host discovers and follows for one real workflow, using only operations the installed tool projection actually exposes.

Before you start

  • A working checkout of this repository. Skills are discovered by directory — plugins/strata19/skills/<name>/SKILL.md — with no separate registration list in any plugin manifest; "skills": "./skills/" in plugins/strata19/.codex-plugin/plugin.json and plugins/strata19/.claude-plugin/plugin.json points at the directory itself.
  • The exact strata19.* tool and action names your workflow calls, confirmed against reference/tools — not recalled from memory.
  • A decision on whether any step is destructive or requires a human decision (publishing, granting an approval, a git write) — this must be named explicitly, not implied.

Steps

Create the skill directory and frontmatter

mkdir -p plugins/strata19/skills/strata19-your-skill-name

plugins/strata19/skills/strata19-your-skill-name/SKILL.md starts with:

plugins/strata19/skills/strata19-your-skill-name/SKILL.md
---
name: strata19-your-skill-name
description: One sentence on what this does, plus the phrasings that should trigger it. "Use when the user asks..."
---

description is the only text that reaches the model on either host — SERVER_INSTRUCTIONS reaches neither — so the trigger phrasing belongs here, not only in a later section.

Write the skill contract

Every packaged skill in this repository states the same block before any prose, so a reader (human or host) can decide applicability without reading the rest. From plugins/strata19/skills/strata19-checkpoint/SKILL.md:

## Skill contract

- **Invoke when:** the user asks to save progress, checkpoint the project, restore to a previous checkpoint, or wants a safety mark before a risky operation.
- **Do not invoke when:** the user wants a git commit (a checkpoint is not a commit)...
- **Requires:** an initialized project inside a git repository with at least one resolvable commit...
- **Advertised context:** `default`, `full`
- **Operations:** `strata19.create_or_get_checkpoint` action `save` · `strata19.create_or_get_checkpoint` action `restore`
- **Human gates:** restoring is destructive to the working tree...
- **Recovery:** if the captured SHA no longer resolves..., the restore refuses honestly rather than corrupting the repository...
- **Evidence and completion:** the checkpoint record...
- **Destination:** `work/checkpoints`

Name every operation as strata19.<tool> action <discriminator> — never a shorthand or an internal helper name the host cannot see. If a step can return a typed unsupported or refusal, the Recovery line must say how to read it, not assume it never happens.

Write the sequence

## Sequence (or ## What this does plus ## Sequence, matching the pattern in strata19-author-routine) is a numbered list of real calls: 1. **Call:** strata19.<tool_name> action X — what it returns and what to do with it. Every call must be a tool your workflow can actually reach given Advertised context above — do not sequence a call gated behind full context inside a skill that only declares default.

Add vocabulary and refusals

Close with ## Vocabulary (the nouns this skill introduces, defined once) and ## Do not (the specific mistakes this skill exists to prevent — inventing a result for an unsupported action, self-approving a human gate, restoring over uncommitted changes without confirmation). These sections are what keeps a host from improvising past a boundary the skill already decided.

Verify

Run the skills contract test — it is free, in CI, and checks exactly the shape this page teaches:

pnpm test:skills

tests/contract/strata19-skills-coverage/tsuite-03-skills-coverage.test.ts runs three static guards against your new skill: the directory is <name>/SKILL.md (a flat .md file makes Codex surface zero skills, with no other symptom); every strata19.* tool your SKILL.md names exists in the live registry; and your description's trigger clause survives Codex's prefix-preserving truncation. It also spawns the plugin and asserts your skill directory has a corresponding entry in the host's own discovery surface.

If it doesn't work

  • The test reports a tool name your SKILL.md references that the registry does not have. This is treated as a documentation lie, not a warning — fix the tool name or add the tool first (Add an MCP tool).
  • Your skill directory exists but the coverage test doesn't find it. Confirm the file is exactly <dirname>/SKILL.md, not <dirname>.md at the top of plugins/strata19/skills/ — a flat file is silently invisible to discovery with no separate error.
  • A running Codex or Claude Code session still doesn't offer your skill. Adding a SKILL.md under source is not the same as it being live in an installed plugin. The plugin's install cache is version-keyed; bump the version, rebuild, push, and reinstall before a running session sees it — see Interface and packaging for the exact five steps.
  • The description's trigger phrase gets cut off. Codex truncates from the end and preserves the prefix — put the trigger clause ("Use when the user asks...") early in description, not at the end of a long sentence.
  • Interface and packaging — the release loop that makes a new skill reachable in an installed host.
  • Author a routine — for a workflow that needs validation, approvals, and receipts rather than a taught sequence.
  • Add an MCP tool — when the workflow needs a capability that doesn't exist yet, not just a taught sequence over existing ones.
  • reference/tools — confirm exact tool and action names before writing a sequence.