context-management
Manage project context effectively. Use when onboarding, context switching, or maintaining project knowledge. Covers context capture and sharing.
When & Why to Use This Skill
This Claude skill optimizes project continuity by systematically capturing, organizing, and sharing vital project context. It bridges the gap between technical documentation and historical decision-making, ensuring that teams maintain a 'single source of truth' for architecture decisions, coding conventions, and project rationale. By automating the management of READMEs, ADRs, and knowledge bases, it significantly reduces ramp-up time and prevents the loss of institutional knowledge during context switching or team transitions.
Use Cases
- Developer Onboarding: Accelerate the ramp-up process for new team members by providing structured access to project goals, technical constraints, and historical decisions.
- Architecture Decision Tracking: Maintain a living log of Architecture Decision Records (ADRs) to document the 'why' behind technology choices and prevent repeated mistakes.
- Seamless Context Switching: Enable developers to quickly regain focus when moving between multiple projects by summarizing current states, open questions, and recent changes.
- Knowledge Handoff: Facilitate smooth project transitions between teams or individuals by generating comprehensive documentation of risks, lessons learned, and future roadmaps.
| name | context-management |
|---|---|
| description | Manage project context effectively. Use when onboarding, context switching, or maintaining project knowledge. Covers context capture and sharing. |
| allowed-tools | Read, Write, Glob, Grep |
Context Management
Why Context Matters
- Reduces ramp-up time
- Prevents repeated mistakes
- Enables informed decisions
- Facilitates collaboration
Context Types
Project Context
- What the project does
- Why it exists
- Who uses it
- Key constraints
Technical Context
- Architecture decisions (ADRs)
- Technology choices
- Coding conventions
- Known issues
Historical Context
- Why decisions were made
- What was tried before
- Lessons learned
Context Capture
Decision Log
## Decision: [Title]
**Date**: [Date]
**Context**: [Why this came up]
**Decision**: [What was decided]
**Rationale**: [Why this choice]
**Consequences**: [What changed]
Knowledge Base
- README for project overview
- ADRs for architecture
- CONTRIBUTING for development
- CHANGELOG for history
Code Comments
// CONTEXT: This retry logic exists because the external API
// has intermittent failures. See incident-123 for details.
// We chose exponential backoff after testing showed it
// reduces error rate by 80%.
Context Sharing
New Team Member
- Start with README
- Review key ADRs
- Pair on first task
- Introduce to stakeholders
Handoff
- Document current state
- List open questions
- Identify risks
- Warm handoff meeting
Best Practices
- Write it down: Don't rely on memory
- Keep it current: Update as things change
- Make it findable: Organize logically
- Be specific: Include the "why"
- Review regularly: Remove stale info