Skip to content

How it works

SKILL.md is a router: a table of modes, the rules they share, and where artifacts live. Each mode is a file the agent reads only when it runs that mode.

Only the description (about 330 characters) is in context when a conversation starts. The router body loads when the skill is invoked, and a mode file only when that mode runs. Templates and scripts load only when a mode points to them.

  • You name the mode: the agent uses it.
  • You don’t: the agent may start only review, investigate, cite, pr, or brief, which only read. For any other mode it suggests /jsmd <mode> in one line and waits.
  • Two modes fit: it asks which one instead of guessing.

When a mode ends, the agent names the mode that usually comes next and stops. The main chain:

grill → spec → tickets → implement → review → pr → retro

implement rates the same five axes review uses and turns them into a class (trivial, standard, critical), so building and reviewing never disagree on how risky a change is. The class decides which modes must have run first and the review level. It also picks the recommended model and effort from dispatch in the settings, but the agent asks every time.

The project’s AGENTS.md or CLAUDE.md overrides these defaults.

Artifact Default location
Glossary GLOSSARY.md at the repo root
Decision records docs/adr/NNNN-slug.md
Spec and tickets docs/specs/<slug>/spec.md and docs/specs/<slug>/tickets/NN-slug.md, or the tracker the project names
Rejected ideas .out-of-scope/<concept>.md
Memory .memory/ at the repo root
Handoff A file in the system temp dir; the path goes to the user
Personal settings ${XDG_CONFIG_HOME:-~/.config}/jsmd/config.json; never in a repo

More on the reasoning: docs/DESIGN.md.