context-discipline

Enforce MCP-first navigation and token budget planning in Claude Code sessions.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/Maj3D10/Training-Platform --skill context-discipline-maj3d10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-discipline
Source: https://github.com/Maj3D10/Training-Platform/tree/main/.agent/skills/context-discipline
Command: npx skills add https://github.com/Maj3D10/Training-Platform --skill context-discipline-maj3d10

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents degraded performance in long Claude Code sessions by stopping context bloat and token waste before Claude starts forgetting or slowing down.

Core Features & Use Cases

  • MCP-first navigation: Uses cheap symbol/API/reference queries to avoid expensive file reads until they are actually needed.
  • Lazy loading + prioritization: Reads only what matters (and only when it matters) by classifying files by urgency (modify fully vs. inspect minimally).
  • Subagent isolation + summarization: Offloads verbose exploration to subagents, then keeps only short summaries in the main context.
  • Token budget planning: Treats the model’s window as a budget and plans expected spend across understand, plan, implement, and verify phases.
  • Recovery guidance: Provides warnings and a reset path when too many files or exchanges begin to pollute the context.

Quick Start

Load context-discipline when your session is getting sluggish, you are reading too many files, or Claude is starting to forget earlier details.

Frequently Asked Questions about context-discipline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop Claude Code from forgetting earlier context in long sessions?

Prevent context forgetting in long sessions by enforcing MCP-first navigation, lazy file loading, and summary-based retention to manage your token budget efficiently across long sessions.

What is lazy file loading and how does it reduce token consumption during codebase exploration?

Lazy file loading reduces token consumption by classifying files based on urgency, reading only the files that need modification fully while inspecting others minimally only when required.

How do I plan token budget allocation for understand, plan, implement, and verify phases?

Plan token budget allocation by treating the context window as a spendable quota, estimating expected token spend across understand, plan, implement, and verify phases before reading files.

Can I use subagents to isolate verbose codebase exploration and keep only summaries in the main context?

Yes, you can offload verbose codebase exploration to subagents, which isolates the token usage and keeps only short summaries in the main context window to prevent bloat.

Does MCP-first navigation help avoid expensive file reads when navigating large codebases?

MCP-first navigation avoids expensive file reads by using cheap symbol, API, and reference queries to explore large codebases until specific file contents are actually needed for edits.

What should I do when too many files pollute the context window and slow down my session?

When files pollute the context window and slow your session, follow recovery guidance warnings and reset paths to clear bloat and restore performance within the finite token limit.