vault/Operations/Claude/skills/coding/debrief/SKILL.md
Session-end self-review. Scans for corrections, failures, and missing context, then proposes concrete rule updates.
npx skillsauth add eddowding/cortex debriefInstall 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.
Review this session for mistakes, corrections, and learnings. Generate concrete rule updates.
Identify what went wrong, what was missing, and what went well in this session. Convert findings into specific, actionable rule updates across CLAUDE.md, Chief-of-Staff.md, memory files, and skills.
Scan the full conversation for each category below. List every instance found, not just the first.
0a. Corrections - Where the user said "no", "that's wrong", "I meant...", "not that", or redirected you.
when X, do Y instead of Z0b. Failed approaches - Things tried 2+ times before working, tool calls that errored, dead ends.
avoid X because Y; instead do Z0c. Repeated instructions - Things the user had to say more than once, or context they had to re-provide.
always check X before doing Y0d. Frustration signals - Pushback, exasperation, "I already said...", course corrections, user taking over.
don't X without asking first0e. What worked well - Approaches the user praised, things that went smoothly, good patterns to reinforce.
continue doing X when YIf no instances found for a category, say "None detected" and move on.
What context was missing that would have helped from the start?
Identify where each finding belongs:
| Target | When to use |
|--------|-------------|
| CLAUDE.md (project) | Team-shared patterns, project-specific rules |
| ~/.claude/CLAUDE.md (global) | Cross-project behaviors, persona rules |
| Cockpit/Chief-of-Staff.md | Facts, preferences, project context used daily |
| memory/topics/*.md | Detailed context for specific domains |
| skills/*.md | Skill-specific improvements |
| rules/*.md | Coding guideline updates |
Read each target file before proposing edits.
For each finding, draft a concrete update:
### Update: <filepath>
**Finding:** <what happened>
**Rule:** <when X, do Y instead of Z>
\`\`\`diff
+ <the addition - one line per concept, keep it brief>
\`\`\`
Keep it concise - one line per concept. These files are part of the prompt, so brevity matters.
Avoid:
Show the user:
## Session Debrief
### Corrections (X found)
- [list each with one-line rule]
### Failed Approaches (X found)
- [list each]
### Missing Context (X found)
- [list each]
### What Worked Well (X found)
- [list each]
### Proposed Updates (X total)
[Step 3 output]
Ask {USER_NAME} which changes to apply. Only edit files they approve.
After applying, confirm what was changed and where.
tools
Dispatch to the right problem-solving technique based on how you're stuck.
testing
Interactive brainstorming and advisory mode that helps think through questions, critique approaches, propose alternatives, and reach optimal decisions.
tools
Find one insight that eliminates multiple components - 'if this is true, we don't need X, Y, or Z'
testing
Test at extremes (1000x bigger/smaller) to expose fundamental truths hidden at normal scales.