skills/self-reflection/SKILL.md
Capture short, actionable reflections when instructions, workflows, or tools caused friction. Use to improve future agent runs.
npx skillsauth add popoffvg/dotfiles self-reflectionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When something didn't go smoothly — unclear instructions, unexpected behavior, wasted effort, a better path discovered — write a reflection.
Reflect when the experience is likely to recur or has broader implications:
Think beyond the immediate problem. Ask: what systemic issue does this reveal? What would a different agent or future session benefit from knowing?
Reflections are stored one file per day:
agent/shared/reflections/YYYY-MM-DD.md
2026-04-07.md).Append an entry to agent/shared/reflections/YYYY-MM-DD.md (today's date) using edit (preferred) or write.
Template (adapt freely — structure matters less than insight):
### HH:MM - <Agent/Skill/Workflow> - <Topic>
**What happened:** <the situation and what went wrong or was surprising>
**Root cause:** <why it happened — dig deeper than the surface symptom>
**What would help:** <concrete improvement — to instructions, tools, skills, or workflow>
Eval checklist:
Test inputs:
Can change: reflection template wording, trigger guidance, phrasing examples, concision rules Cannot change: daily file storage path, root-cause orientation, no-secrets rule Min sessions before eval: 5 Runs per experiment: 3
tools
Improve a whole CLAUDE.local.md — the private, per-project rules captured from user corrections. Wraps each conditional rule in a <task-relevant> block so it only surfaces for matching work, merges duplicates, generalizes one-off facts, drops stale entries, and routes raw project facts to engram. Use when the user says "improve claude.local", "clean up the local rules", "claude.local is bloated", or after the Stop hook has appended many rules.
testing
WM pipeline and conventions shared across all phases. Agents must read this before spec, impl, or verify work.
development
One entry point for spec writing, implementation, and bug fixing. Default is new (write spec → grill loop → produce notes → author TODO bodies). Other subcommands: verify (audit), revise (sync to shipped), prototype (settle a decision), code-map (diagram), impl (execute one TODO), fix (analyze cause, correct thoughts, fix behavior), help (this page). Invoke as /code <subcommand>.
development
Red-Green-Refactor cycle for bug fixes. Before fixing a bug, first write a failing test that reproduces it (Red), then make the minimal change to pass (Green), then clean up the code (Refactor). Use on any bug fix, error correction, failing test repair, or when user says "fix this bug".