What problem does it solve?
This Skill prevents Claude Code from becoming ineffective during long or large-codebase sessions by teaching you to manage token usage like a real budget instead of dumping too many files into context.
Core Features & Use Cases
- MCP-first navigation: Locates symbols, APIs, and references with minimal token spend before resorting to full file reads.
- Lazy loading and selective reading: Reads only what you will modify or what you must satisfy (interfaces/contracts), and avoids “just in case” exploration.
- Subagent context isolation: Offloads verbose exploration and analysis to subagents, then keeps only summarized results in the main context.
- Context pruning and recovery: Provides warning signs and a recovery plan when the session starts to get sluggish or forgetting occurs.
- Large codebase strategy: Uses project graph discovery and scoped reads to find relevant areas without browsing entire directories.
Quick Start
Load the context-discipline skill when Claude Code starts forgetting earlier details, slows down, or you’re about to explore a large repository so it follows MCP-first navigation and summarizes while keeping your token budget under control.