Improve
Learn from sessions, measure them, and keep docs honest.
| Mode | Use when | Not when |
|---|---|---|
retro |
A session was harder than it should have been | Judging the code: review |
write |
Creating or editing a skill, AGENTS.md, CLAUDE.md, spec, ticket, or prompt | Finding out what a codebase contains |
metrics |
Where time and tokens went: a day, a range, or one item, measured from session transcripts | Planning the day: routine |
drift |
Docs may be stale after changes reached production; check them against those commits | Writing a new doc: write |
Use when: A session was harder than it should have been.
Not when: Judging the code: review.
Full instructions: skills/jsmd/modes/retro.md.
Use when: Creating or editing a skill, AGENTS.md, CLAUDE.md, spec, ticket, or prompt.
Not when: Finding out what a codebase contains.
Full instructions: skills/jsmd/modes/write.md.
metrics
Section titled “metrics”Use when: Where time and tokens went: a day, a range, or one item, measured from session transcripts.
Not when: Planning the day: routine.
/jsmd metrics # today's clock, time and tokens per item, rework, read from session transcriptsFull instructions: skills/jsmd/modes/metrics.md.
Use when: Docs may be stale after changes reached production; check them against those commits.
Not when: Writing a new doc: write.
/jsmd drift # docs that this week's production changes may have made stale, with proposed editsDocs that live on a branch of another repository, such as a docs site, need no checkout. List them in the
settings as {"repo": "<path to a local clone>", "ref": "origin/site", "dir": "src/content/docs"}, and
fetch that clone first. Pages may be .md or .mdx; hide the ## Source of truth section in a comment so
readers never see it.
Full instructions: skills/jsmd/modes/drift.md.