debrief
Skill2 starsChanged 9 months agoMITView on GitHub
Capture session learnings and update project docs. Use when ending a session, after completing a feature, or when asked to "debrief", "capture learnings", "update project knowledge", or "what did we learn".
18 other projects use a version of this.
Adopted by
Most recently taken up by
- gasyoun/chief-of-staff-templatetheir own version, first seen Oct 5, 2026
- uttambharadwaj/kb-graphtheir own version, first seen Sep 20, 2026
- suboss87/FDEOpstheir own version, first seen Sep 17, 2026
- adamlinscott/claude-skillstheir own version, first seen Sep 16, 2026
- High-East/agentstheir own version, first seen Aug 30, 2026
- YunyueLi/greenroomtheir own version, first seen Aug 24, 2026
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- suboss87/FDEOps★ 950same name
- spacedock-dev/spacedock★ 82same name
- markster/markster-os★ 49same name
- YunyueLi/greenroom★ 12same name
- AMindToThink/claude-code-settings★ 4same name
- trydebrief/debrief-skills★ 4same name
- uttambharadwaj/kb-graph★ 4same name
- adamlinscott/claude-skills★ 3same name
- armenr/modelmux★ 2same name
- omerakben/aha★ 2same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-depsSkill
- ask-expertSkill
- deep-interviewSkill
- mine-historySkill
- pr-audit-anglesSkill
- pr-fix-anglesSkill
- trim-prSkill
- update-prSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
If the session had no meaningful learnings (simple task, everything went smoothly), say so and stop.
- Very specific: line 48
Before proposing changes, read CLAUDE.md, scan .claude/rules/ for existing rule files, and check for project docs (ARCHITECTURE.md, …
- Distinctive: line 74
When uncertain, keep the entry — false removals are worse than bloat
- Distinctive: line 75
Never prune architectural decisions or safety-critical rules without explicit user confirmation
- Distinctive: line 121
Use path-scoping: when the rule only applies to certain files
- Distinctive: line 127
When updating CONTRIBUTING.md, ARCHITECTURE.md, docs/*.md:
- Distinctive: line 128
Check for a docs/ folder and route learnings to the most specific existing doc
- Very specific: line 129
Follow CLAUDE.md @ references to find authoritative locations
- Distinctive: line 131
Keep it useful for humans too — these docs serve the whole team
- Distinctive: line 135
Use AskUserQuestion to get approval:
- Distinctive: line 153
After applying, show a summary table of what was updated with file, change description, and line delta.
- Distinctive: line 166
No CLAUDE.md exists: Create a minimal one with the project name and the first learning
- Distinctive: line 168
.claude/rules/ doesn't exist: Create it with the first rule file
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Session Debrief
Capture learnings from the current session and persist them into project documentation. The goal is continuous improvement: never repeat the same mistakes, always build on what we learn.
Phase 1: Review the Session
Scan the conversation history for learnings. Look for these signals:
| Signal | What to capture |
| Corrections ("no, use X instead") | The right approach and why the wrong one fails |
| Debugging breakthroughs | Root cause and fix, not just the symptom |
| Repeated mistakes | Pattern that keeps tripping us up |
| Architectural decisions | What was chosen and the reasoning |
| Surprising behavior | Gotchas, edge cases, unintuitive APIs |
| Process friction | Steps that were slow, confusing, or error-prone |
| Discovered conventions | Patterns in the codebase that weren't documented |
Categorize each learning:
| Category | Typical destination |
| Mistake/Correction | CLAUDE.md (universal) or .claude/rules/ (domain-specific) |
| Architectural Decision | CLAUDE.md or project docs (ARCHITECTURE.md, ADRs) |
| Gotcha/Pitfall | .claude/rules/ with path-scoping |
| Pattern/Convention | .claude/rules/ with path-scoping |
| Process Improvement | CLAUDE.md or CONTRIBUTING.md |
| Debugging Insight | .claude/rules/ topic file |
If the session had no meaningful learnings (simple task, everything went smoothly), say so and stop. Don't force learnings that aren't there.
Phase 2: Audit Existing Documentation
Before proposing changes, read CLAUDE.md, scan .claude/rules/ for existing rule files, and check for project docs (ARCHITECTURE.md, CONTRIBUTING.md, docs/). Follow any @ imports and path references in CLAUDE.md to discover documentation locations.
For each learning, check:
- Is it already documented? → Skip
- Does it contradict existing docs? → Propose update to existing entry
- Is it genuinely new? → Propose addition
Estimate CLAUDE.md line count and track against the 300-line budget.
Phase 2.5: Prune Stale Entries
Activates when BOTH conditions are true:
- CLAUDE.md is above 250 lines
- Phase 1 found high-signal learnings that warrant CLAUDE.md addition
Scan CLAUDE.md for entries that no longer earn their place:
| Category | How to verify |
| Duplicated by docs | Entry restates guidance in a docs/*.md file that CLAUDE.md already references |
| Enforced by toolchain | Linter, ast-grep, CI, or pre-commit hook already catches this (check config files) |
| Outdated | Convention no longer matches codebase (verify with grep/glob) |
| Session debris | Ephemeral context from a past session that was never cleaned up |
Rules:
- Require evidence for every removal — cite the doc, linter rule, or grep result that proves staleness
- When uncertain, keep the entry — false removals are worse than bloat
- Never prune architectural decisions or safety-critical rules without explicit user confirmation
- Present removals in Phase 3 alongside additions so the user sees the full picture
Phase 3: Propose Updates
Present ALL proposed changes to the user in a single summary before writing anything.
Format for Proposals
## Session Debrief: Proposed Updates
### 1. CLAUDE.md (289 → 285 lines, net -4)
**Removals (pruned):**
- **Remove line 142**: "Use X pattern" — now documented in docs/SERVICES.md (referenced on line 12)
- **Remove line 87**: "Run prettier before committing" — enforced by pre-commit hook in .husky/pre-commit
**Additions:**
- **Add**: "IExceptionHandler gotcha: need both AddExceptionHandler() and UseExceptionHandler() (see src/Program.cs:42)"
- **Update**: Change "Use npm" → "Use pnpm (npm causes lockfile conflicts)"
### 2. .claude/rules/api-conventions.md (new file)
- **Add**: Path-scoped rule for `src/api/**/*.ts`
- Content: "All API handlers must validate input with zod schemas before processing"
### 3. Skipped
- [Session-specific detail] — not generalizable
- [Already documented in .claude/rules/testing.md]CLAUDE.md Token Discipline
These rules are non-negotiable when proposing CLAUDE.md changes:
- Under 300 lines — If above 250, trigger Phase 2.5 pruning before routing to .claude/rules/
- Earn its place — Ask: "Would removing this cause Claude to make mistakes in future sessions?" If no, don't add it.
- One-liners only — Brief, actionable. No paragraphs.
- No inline code blocks — Use file:line references (e.g.,
see src/config.ts:15-20) - Use @imports for detailed docs —
@docs/api-patterns.mdnot inline explanations - Route domain knowledge to .claude/rules/ — Path-scope when possible
- Prefer updating over adding — Extend an existing bullet point rather than adding a new one
- Never duplicate linter rules — If ESLint/Prettier/Ruff enforces it, don't document it
.claude/rules/ Best Practices
- One topic per file —
api-conventions.md,testing.md,debugging.md - Use path-scoping when the rule only applies to certain files
- Keep files focused — 20-50 lines per file, not sprawling documents
- Use clear filenames — Future sessions need to find these by name
Project Docs Updates
When updating CONTRIBUTING.md, ARCHITECTURE.md, docs/*.md:
- Check for a docs/ folder and route learnings to the most specific existing doc
- Follow CLAUDE.md
@references to find authoritative locations - Match existing style, add to existing sections
- Keep it useful for humans too — these docs serve the whole team
Phase 4: Apply with Approval
Use AskUserQuestion to get approval:
{
"questions": [{
"question": "Here are the proposed documentation updates from this session. Which should I apply?",
"header": "Updates",
"multiSelect": false,
"options": [
{ "label": "Apply all", "description": "Apply all proposed changes listed above" },
{ "label": "CLAUDE.md only", "description": "Only update CLAUDE.md, skip other files" },
{ "label": "Rules only", "description": "Only update .claude/rules/ files" },
{ "label": "Let me pick", "description": "Show each change individually for approval" }
]
}]
}After applying, show a summary table of what was updated with file, change description, and line delta. Report final CLAUDE.md line count and remaining budget.
What NOT to Capture
- Session-specific context — "We were debugging issue #42" (ephemeral)
- Speculative conclusions — "This might also affect X" (unverified)
- Obvious things — "Use git to commit" (Claude already knows)
- Temporary workarounds — Unless they're long-lived and affect the team
- Personal preferences — Route to
~/.claude/CLAUDE.mdorCLAUDE.local.mdinstead - Things the linter catches — Trust the toolchain
Edge Cases
- No CLAUDE.md exists: Create a minimal one with the project name and the first learning
- CLAUDE.md above 250 lines: Trigger Phase 2.5 pruning first. Only fall back to routing all learnings to .claude/rules/ if pruning cannot free sufficient space
- .claude/rules/ doesn't exist: Create it with the first rule file
- Contradictory information: Flag explicitly. Don't silently overwrite — the existing docs may be correct
- No learnings found: Say so honestly. Don't manufacture learnings to justify running the skill
$ARGUMENTS
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

