Writing a Skill
Skills are the instructions your agents follow at each step. Write them in plain words, publish each change as a new version and see how each version does.
What a Skill is
A Skill is a set of instructions for one Step of a Workflow, such as plan, implement or red team. Skills are versioned and versions are immutable: a publish adds the next version and never changes an earlier one. The latest version is what new cards use, so after you publish v5 the page says New cards use v5. A Run keeps the version it pinned when it was created.
Default Skills are the ones Trailside ships, and they keep receiving Trailside’s improvements. Use Fork to edit on a Default Skill, and your first published change makes it Forked: your team’s own copy, which no longer receives Trailside’s improvements.
Triage is a built-in Skill. It is always on and has its own setup and its own evals.
Download the Bot/Dot UI Review Skill How Triage sorts a card
Anatomy of a Skill file
A Skill is a package of three files: SKILL.md, trailside.json and result.schema.json. New Skill writes all three from a name, a description and your instructions. Keep each line of the instructions something the agent can act on.
--- name: frontend description: Builds UI changes and checks them at phone and desktop widths. --- ## When to use Cards that change the UI. ## Steps 1. Read the card and the linked issue. 2. Use the tokens in styles/tokens.css. No raw colors. 3. Run pnpm test and pnpm lint. 4. Check the page at 390 and 1440 wide. ## Hand off Hand off to Review with what changed and how it was checked.
| File | What it holds |
|---|---|
SKILL.md | A header giving name and description, then the instructions. |
trailside.json | The Skill’s name, its package version and the result fields it declares. |
result.schema.json | The JSON schema of those result fields. A publish is refused if the two don’t match. |
| Section of SKILL.md | What to put there |
|---|---|
| When to use | Which cards this Skill is for. |
| Steps | What the agent does, in order, with the checks that must pass. |
| Hand off | What to say on the card for the next Step and for people. |
Golden cards and evals
Only in the Sample Board for now. There, golden cards are past sample cards with an outcome you trust, and each version of a Skill is scored on the same ones. On a Workspace, a Skill’s page says No tests yet. The one exception is Triage evals, on the Triage tab, which an Admin runs on their own Connected Computer.
Example scores from the sample. Nothing was run.
Try a version on a slice
Only in the Sample Board for now. There, a version that scores well can be tried on a slice of sample cards, such as one in five ui cards, while the rest stay on the current version. The two are compared side by side: checks passed, cards sent back to Triage and time in Review. Promote then makes the new version the one every matching sample card uses. On a Workspace, a publish goes to every new card, with no slice and no Promote.
Publish, compare and roll back
Edit publishes the next version of a Skill; on a Default Skill the button says Fork to edit. Compare, beside an earlier version in Versions, shows it against the latest. Roll back publishes that earlier version’s exact text as a new latest version, so every version is kept.
After either publish, new cards use the new latest version and Runs keep the versions they pinned. Anyone who can see a Skill can use Compare. Edit and Roll back appear only for someone who may publish the Skill: an Admin, or a member who may start Runs if Runs don’t carry that Skill.
What the Skills page measures
Each row on the Skills page names its role’s measure with its lane and n, such as 30% first-pass · full n=40. A lane is the review a card went through: full, light or highway. Lanes and repositories are never pooled. Under 10 reviewed, a row says Too early. Watching and Slipping compare a newer version with the previous one.
| Word | What it means |
|---|---|
| First-pass | For an implementing Skill: the share of delivered work passing its first review, in its strictest lane with 10 or more reviewed. |
| Clean plans | For a planning Skill: the share of planned cards whose first delivery passed review. |
| Reviews | For a reviewing Skill: reviews given and the share that failed. It is not a quality score. |
| Too early | Under 10 reviewed, so the row shows no rate. |
| Watching | A newer version under the first checkpoint of 20 reviewed, before its first check against the previous version. |
| Slipping | Likely worse than the previous version at two checkpoints in a row. |
Recent cards, on a Skill’s own page, lists its latest executions, up to 30, each repository shown separately, and calls each one Good, Poor, Declined, Not counted or Pending. With no records, the page says No Skill runs recorded yet.
Edit in words
Only in the Sample Board for now. There, you describe the change you want, for example “also check text contrast and attach a 390 px screenshot”, and get a diff to review. Saving it creates a new sample version and does not change the one in use. On a Workspace, you change a Skill’s text yourself with Edit or Fork to edit.
Assign to a Step
On a Skill’s page, Assign to a Step adds the Skill to a Workflow as a new Step after one you choose, with the Supported Agent that runs it, and publishes the Workflow’s next version. In the Referee Workflow it replaces the single Step instead.
Assigning publishes a Workflow, so it follows the same rule. An Admin may publish any Workflow. A member who may start Runs may publish only Workflows that Runs don’t carry. With no Workflow you may publish, the page says Assign is read-only. Ask a Workspace admin to publish a Workflow.