/recording:self-improvementfrom recording
Record and later apply lessons about the skills themselves. Follow this skill whenever the user corrects you, a skill's guidance led you into a mistake, or you notice a gap in a skill you just used — record the lesson before moving on. Invoke with "apply" to promote recorded lessons into the skill files.
Ships in recording. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Lessons live in ~/.claude/skill-lessons.jsonl, overridable via GUARDRAILS_LESSONS_JOURNAL. Resolve the path the same way the lessons-nudge hook does:
journal="${GUARDRAILS_LESSONS_JOURNAL:-$HOME/.claude/skill-lessons.jsonl}"
The file is JSON Lines: one entry per line, fields in this order:
| Field | Meaning |
|---|---|
date | YYYY-MM-DD. The nudge hook string-compares this against a cutoff and also converts it to epoch — any other format breaks both. |
skill | The skill's plugin-qualified name, e.g. building:commit. |
trigger | The situation that should fire the improved guidance, phrased as a situation, not a conclusion — it's what a future agent pattern-matches against. |
mistake | What went wrong. |
fix | The guidance that should have applied. |
promoted | Boolean. false until the apply workflow folds the lesson into the skill file. |
The hook's read (fromjson? // empty) only skips lines that fail to parse. A line that parses but isn't an object — a bare number, string, or array — still passes that filter, and the hook's next step (select(.promoted != true)) then throws a jq type error on it, aborting the whole read. One bad line silently kills the nudge for every entry in the file, not just itself. So: never append a comment, a blank line, a plain-text note, or anything but exactly one JSON object per line.
Canonical shape:
{"date":"2026-09-08","skill":"building:commit","trigger":"user asked to squash a diff spanning two scopes","mistake":"committed both scopes together","fix":"split by scope before committing when a diff touches two concerns","promoted":false}
Fires on:
This skill is for lessons about the skills themselves. A lesson about how this repo works belongs in recording:project-memory instead.
Silently check whether the journal already carries this lesson for this skill — Read the file and compare the skill and trigger fields. If it does, skip — one entry per distinct lesson, not one per occurrence. This check produces no output either way.
Otherwise append one line using the Write/Edit tools, never a shell heredoc. A lesson is a JSON object full of quotes a shell body would have to escape, and the building plugin's publish guard drops only the heredoc bodies it can parse — it errs toward scanning when it cannot read the opener, and lesson text mentioning "review", "comment" or "post" is then refused as publishing. That describes most lessons about skills like pre-pr-check (a review), concise-comments and draft-pr. Append by Editing the journal's last line into itself plus the new line; if the file does not exist yet, Write it with that single line.
{"date":"2026-09-08","skill":"...","trigger":"...","mistake":"...","fix":"...","promoted":false}
Then continue the task. Do not read the journal back, do not summarise what was written, do not mention the write happened. Recording is background bookkeeping — narrating it interrupts the task it's supposed to stay invisible to.
Never record:
Invoked as /recording:self-improvement apply. This is the only path that changes a skill file, and it always goes through review — nothing here is silent.
promoted is not true:
jq -c 'select(.promoted != true)' "$journal"
skill. Entries recorded before the plugin split name guardrails:<skill>; group each under building:<skill> or recording:<skill>, whichever plugin has that skill. Drop any whose lesson the skill file already states — re-stating an existing rule isn't a promotion.~/personal/guardrails; the loaded skills are a read-only cache copy) via superpowers:using-git-worktrees. Do this before touching any skill file — editing one from the main checkout trips the building plugin's default-branch commit guard, so the edit would be blocked anyway.tests/run.sh). The preamble test must still pass — a fold that introduces a stray character sequence in a code example fails it.building:commit, then open a draft PR via building:draft-pr."promoted": true in the journal — flip that one field on its line, don't delete the line. The journal is the record of what the agent has learned; a promoted entry is history, not clutter.lessons-nudge hook only reports a count; a human decides when to run apply.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub joelstoddard/guardrails --plugin recording6 skills in this plugin
/adrRecord a significant design decision in a personal project as a design doc in docs/design/<concept>.md, cited from the code that depends on it. Follow this skill when you make or change an architectural decision, choose between alternatives with real trade-offs, or need more than two sentences to explain why code is the way it is. When the session context names a different ADR skill (a work project), use that one instead./mistakesDraft the broadcast for a mistake or incident — what happened, how it has been fixed, how we will prevent it. Follow this skill whenever something went wrong that someone else should hear about — a production incident, a broken build or release, or your own mistake (a bad push, a deleted file, a false "done", a wrong claim). In a personal project it is the whole post-mortem. Drafts only; never sends./project-memoryRecord repo-local lessons and location breadcrumbs so the next contributor or agent does not repeat the mistake or the wrong first guess. Follow this skill after a mistake worth not repeating, and whenever a search misses in the first place you looked. Check it before acting in an unfamiliar area of a repo./rfcDraft an RFC for a personal project — a change that crosses component boundaries, alters a public interface, or is costly to reverse — as a design spec in docs/specs/. Follow this skill BEFORE implementing such a change. When the session context names a different RFC skill (a work project), use that one instead./track-findingsFile every finding outside scope as a tracked issue, so nothing you noticed is left only in chat. Follow this skill BEFORE ending a turn that lists findings — yours or a persona's — and whenever the user says "track this", "add a todo", or "file an issue". Uses the tracker the session context names (a work project), otherwise GitHub issues.