Update Context Skill
Maintains CLAUDE.md as a lean, accurate, high-ROI context file for any project.
Core Principles
- •Concise > Comprehensive - Target 120-150 lines maximum
- •Delete > Add - Prefer removing stale content over additions
- •Durable > Transient - Document only repeating patterns, not one-offs
- •Point > Copy - Reference external docs instead of duplicating content
Update Modes
Mode 1: Full Analysis (via /update-context command)
When triggered by the command, perform complete analysis:
- •Read current CLAUDE.md in full
- •Analyze git history to understand changes since last update:
- •Find when CLAUDE.md was last updated
- •Summarize meaningful changes (excluding docs, tests, CLAUDE.md itself)
- •Classify changes using standards.md:
- •Must-add: New critical patterns not yet documented
- •Must-update: Current content now wrong/misleading
- •Should-remove: Stale, redundant, or low-value content
- •Output report with these sections:
- •Summary of Changes Since Last Update (4-8 bullets)
- •Proposed Deletions (with reasons)
- •Proposed Modifications (before/after + reasoning)
- •Proposed Additions (only if high-value & durable)
- •Recommendation (minimal/medium/full refresh + line count)
- •Wait for approval before making changes; commit with descriptive message upon approval
Mode 2: Targeted Update (ad-hoc requests)
When users request specific content updates:
- •Read current CLAUDE.md for structure and style
- •Research the topic in the codebase
- •Draft minimal addition fitting existing style
- •Validate against principles:
- •Is this durable across future sessions?
- •Already documented elsewhere (prefer links)?
- •Justifies its token cost?
- •Stays accurate without frequent updates?
- •Propose the edit showing exact location and before/after content
- •Apply after confirmation; commit with descriptive message
Reference Materials
Detailed guidance available in references/standards.md covering content standards, style guidelines, and decision frameworks.