Summarize the current conversation and propose improvements to CLAUDE.md, rules, and skills.
Syntax: /update-claude
Placement rules
- One home per rule: grep
.claude/for an existing statement before adding anywhere; extend the existing home, and put at most a one-line pointer elsewhere. - Always-loaded files (
CLAUDE.md,AGENTS.md,.claude/rules/*.mdwithoutpaths:frontmatter) hold only high-frequency, broadly-applicable rules in <=2 lines; worked examples and niche topics go to.claude/docs/. - Every new
.claude/docsfile must be added to.claude/docs/documentation-references.md. - Backlogs, finding counts, and change history go in a GitHub issue or the commit message, never in a doc.
- New skills need frontmatter (
name+ a trigger-qualitydescription); never add tables duplicating harness-injected lists. - Topic guidance that should auto-load for certain files →
.claude/rules/*.mdwithpaths:glob frontmatter.
Execution
1. Summarize the session
Review the full conversation and extract:
- What was built or changed — new files, refactored systems, validator additions, etc.
- Patterns discovered — recurring issues, anti-patterns, common mistakes found during the work.
- Rules applied or created — coding conventions, scripting patterns, or process rules that emerged.
- Decisions made — architectural choices, tradeoffs, why something was done a certain way.
2. Identify generalizable improvements
For each pattern or rule, assess whether it applies broadly or only to the specific task:
- Essential shared guardrails →
AGENTS.md, with no implementation recipes - Scripting and tooling details → the existing domain reference or
tools/README.md - Player/contributor guidance → the appropriate existing page under
docs/src/content/ - Task-based reading pointers →
.claude/rules/orAGENTS.md - Skill improvements →
.claude/skills/*/SKILL.md - Project context (non-obvious, persists across sessions) → memory
Filter ruthlessly — only propose additions that:
- Cannot be derived by reading the current codebase
- Would prevent a future mistake or speed up future work
- Are general enough to apply beyond the specific files touched
3. Check existing documentation for staleness
Read the current state of:
CLAUDE.mdandAGENTS.mdrouting: do their pointers still reach the right guidance?- Always-loaded files (
AGENTS.md, unscoped.claude/rules/*.md): has implementation detail crept back in? .claude/docs/localisation-rules.md— any gaps?AGENTS.md— any conventions needing updates?
Flag anything outdated or contradicting current practice.
4. Propose changes
Lead with the recommended change in BLUF style. Include only applicable sections:
## Rules to add/update
- [file] — [what to add] — [why]
## Skills to add/update
- [skill name] — [what changed] — [why]
## Documentation to update
- [file] — [what's stale] — [what it should say]
## Memory to save
- [type] — [content] — [why it matters for future sessions]
5. Apply changes (with confirmation)
After presenting the proposals, ask the user which to apply. Then:
- Edit the relevant files directly
- Update the documentation index and task pointers when destinations change
- Save any memory items
Important Notes
- Do NOT add implementation details, file paths, or architecture derivable from reading the code.
- Do NOT duplicate what's already in AGENTS.md or existing rules files.
- Focus on why not what — rules should explain the reasoning so edge cases can be judged.
- Keep rules concise — one pattern per entry, with a wrong/right example where helpful.
- Check for conflicts before adding — grep the rules files to avoid contradictions.