Loading...
Loading...
Run a session retrospective against the CLAUDE.md, skills, and hooks — identify guidance violations, stale rules, and gaps. Use when user says 'reflect on this session', 'what did we learn', 'post-mortem this work', 'what should we update in CLAUDE.md', or 'are our skills still right'. Do NOT use for code review (use /review-diff), PR prep (use /create-pr), or creating new skills from scratch (use /create-or-audit-skill).
npx skill4agent add thommann/skills reflect.claude/CLAUDE.md.claude/skills/.claude/hooks/.claude/settings.jsonprinciples/CLAUDE.md| Category | What to do |
|---|---|
| Hidden invariant or gotcha the agent didn't know | Add to |
| Repeated multi-step workflow that isn't yet a skill | Candidate for a new skill (use |
| Rule that a linter/formatter should enforce | Wire a hook; don't add prose |
| Skill that fired wrongly / too often | Tighten the description's "Do NOT use for" clause |
Rule in | Update or remove — stale guidance is worse than none |
| Generic phrase that sneaked in | Remove it. The |
### Finding: agent created service classes inconsistently
**Evidence:** 2 instances in this session — `src/users/service.ts` got a `ServiceBase` extension,
`src/orders/service.ts` did not.
**Classification:** hidden invariant — the codebase uses `ServiceBase` consistently, but it's
not documented.
**Proposed change:** add to `CLAUDE.md` under "Patterns and Conventions":
New services extend `ServiceBase` (`src/lib/service-base.ts`), which provides logging
and error wrapping. See `src/users/service.ts` for the canonical example.CLAUDE.mdCLAUDE.mdcreate-or-audit-claude-mdSKILL.mdcreate-or-audit-skill*.shcreate-or-audit-hookcreate-or-audit-*VERDICT: PASS| Mistake | Correction |
|---|---|
| Turning one-off friction into a permanent rule | Reflect asks "would this happen again?" — one incident isn't a pattern. Usually two instances before codifying. |
| Adding a rule without deleting the stale one it contradicts | Replace, don't append. |
| Editing files without showing the user | Always propose; user approves. Reflection is collaborative, not autonomous. |
| Skipping the validator re-run | Principle 01 is evidence-based — if the validator now fails, the reflection made things worse. |