Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Intelligent context management system for AI coding agents. Solves the critical problem of context window overflow by implementing a tiered context architecture with smart prioritization, automatic summarization, and dynamic loading. Features include: automatic context budget calculation based on model capacity, smart file prioritization using dependency graph analysis, conversation summarization with key decision preservation, and a rolling context window that keeps the most relevant informatio
.claude/skills/gitstq-context-master/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 181% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 212% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 36% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 5% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 70% | 0% |
> Stop losing context in long coding sessions. Let Context Master manage your AI's memory intelligently.
Every AI coding agent has a context window limit. When conversations get long or codebases are large:
Context Master solves this with a smart, tiered context management system.
┌─────────────────────────────────────────────┐
│ TIER 1: HOT CONTEXT (Always Loaded) │
│ - Current task description │
│ - Active file contents │
│ - Recent decisions (last 10) │
│ - User preferences │
│ Budget: 30% of context window │
├─────────────────────────────────────────────┤
│ TIER 2: WARM CONTEXT (Loaded on Demand) │
│ - Related file summaries │
│ - Architecture decisions │
│ - Error history & fixes │
│ Budget: 40% of context window │
├─────────────────────────────────────────────┤
│ TIER 3: COLD CONTEXT (Archived) │
│ - Old conversation summaries │
│ - Historical decisions │
│ - Resolved issues │
│ Accessed via semantic search │
│ Budget: 30% of context window │
└─────────────────────────────────────────────┘The skill calculates optimal context allocation based on:
When context reaches 70% capacity, it automatically:
When working with large codebases, not all files are equally important. Context Master uses a dependency graph to prioritize:
Priority Score = f(dependency_depth, change_frequency, relevance_to_task, test_coverage_inverse)Files are ranked:
When summarizing conversations, Context Master preserves:
| What to Keep | What to Summarize | What to Discard | |-------------|-------------------|-----------------| | Final decisions | Discussion process | Greetings/pleasantries | | Code changes made | Alternative approaches | Error output (keep summary) | | Architecture choices | Reasoning chains | Repetitive confirmations | | User preferences | Trade-off analysis | "OK", "thanks" responses | | Open questions | Constraints discovered | Duplicate information | | Error patterns | Debugging journey | Failed attempts summary |
Every important decision is captured in a structured format:
markdown## Decision Log ### [DEC-001] Use Zustand instead of Redux (Session 3) - **Date**: 2026-03-20 - **Context**: Choosing state management for new React project - **Decision**: Use Zustand for state management - **Reasoning**: Smaller bundle size, simpler API, sufficient for our scale - **Alternatives Considered**: Redux Toolkit, Jotai, Context API - **Impact**: Affects all components, store setup pattern - **Reversible**: Yes (medium effort)
Instead of a simple FIFO queue, Context Master uses a smart rolling window:
When a new session begins:
.context/ directory.context/session-latest.mdmarkdown## Session Handoff Note **From**: Session #12 (2026-03-20 14:30) **To**: Next session ### Current Task Implementing user authentication flow with JWT tokens ### Progress - [x] Login API endpoint - [x] JWT token generation - [ ] Token refresh mechanism - [ ] Protected route middleware ### Key Decisions - Using bcrypt for password hashing (DEC-015) - JWT expires in 24h (DEC-016) - Refresh tokens stored in httpOnly cookies (DEC-017) ### Open Questions - Should we implement rate limiting on login? ### Files Modified - src/api/auth.ts (added login endpoint) - src/middleware/auth.ts (JWT verification) - src/utils/jwt.ts (new file - token helpers) ### Next Steps 1. Implement refresh token rotation 2. Add rate limiting to login endpoint 3. Write integration tests for auth flow
.context/
├── config.toml # Context management config
├── decisions/
│ ├── DEC-001.md # Individual decisions
│ └── ...
├── summaries/
│ ├── session-001.md # Session summaries
│ └── ...
├── files/
│ ├── index.json # File dependency graph
│ └── priorities.json # Current file priorities
├── handoff.md # Latest handoff note
└── stats.json # Usage statistics| Command | Description | |---------|-------------| | "context status" | Show current context usage and budget | | "context summarize" | Force a conversation summary | | "context decisions" | Show all decisions made | | "context handoff" | Generate handoff note for next session | | "context priority <file>" | Manually set file priority | | "context search <query>" | Search archived context | | "context compact" | Force context compaction | | "context budget <size>" | Set context window size |
This skill works with any AI coding agent that supports the SKILL.md standard:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-21 | fail→fail | 10,295 | 7,814 | -24% | 1 | 1 | 0% | 2,176 | 3,393 | +56% | 0 | 0 | — |
case-10 | pass→pass | 14,071 | 6,308 | -55% | 1 | 1 | 0% | 2,253 | 2,872 | +27% | 0 | 0 | — |
case-01 | fail→fail | 10,626 | 7,990 | -25% | 1 | 1 | 0% | 1,811 | 3,144 | +74% | 0 | 0 | — |
case-02 | fail→pass | 8,215 | 11,973 | +46% | 1 | 1 | 0% | 1,419 | 3,992 | +181% | 0 | 0 | — |
case-03 | fail→pass | 5,914 | 6,825 | +15% | 1 | 1 | 0% | 946 | 2,952 | +212% | 0 | 0 | — |
case-04 | fail→pass | 13,415 | 5,996 | -55% | 1 | 1 | 0% | 2,122 | 2,878 | +36% | 0 | 0 | — |
case-16 | fail→fail | 12,294 | 15,212 | +24% | 1 | 1 | 0% | 2,068 | 4,541 | +120% | 0 | 0 | — |
case-05 | fail→pass | 18,205 | 6,958 | -62% | 1 | 1 | 0% | 3,086 | 3,241 | +5% | 0 | 0 | — |
case-06 | fail→pass | 9,243 | 3,880 | -58% | 1 | 1 | 0% | 1,453 | 2,469 | +70% | 0 | 0 | — |
case-07 | fail→pass | 11,924 | 3,152 | -74% | 1 | 1 | 0% | 1,957 | 2,344 | +20% | 0 | 0 | — |
case-08 | fail→fail | 12,584 | 14,196 | +13% | 1 | 1 | 0% | 1,968 | 4,118 | +109% | 0 | 0 | — |
case-09 | pass→pass | 12,591 | 10,091 | -20% | 1 | 1 | 0% | 1,960 | 3,404 | +74% | 0 | 0 | — |
case-11 | fail→fail | 9,195 | 3,494 | -62% | 1 | 1 | 0% | 1,447 | 2,454 | +70% | 0 | 0 | — |
case-12 | pass→pass | 8,189 | 3,178 | -61% | 1 | 1 | 0% | 1,260 | 2,291 | +82% | 0 | 0 | — |
case-13 | pass→pass | 15,792 | 5,303 | -66% | 1 | 1 | 0% | 2,484 | 2,748 | +11% | 0 | 0 | — |
case-14 | pass→pass | 14,489 | 6,136 | -58% | 1 | 1 | 0% | 2,731 | 2,952 | +8% | 0 | 0 | — |
case-15 | fail→pass | 15,427 | 12,927 | -16% | 1 | 1 | 0% | 2,418 | 4,186 | +73% | 0 | 0 | — |
case-17 | pass→pass | 10,210 | 1,502 | -85% | 1 | 1 | 0% | 1,678 | 2,028 | +21% | 0 | 0 | — |
case-18 | pass→pass | 11,684 | 2,253 | -81% | 1 | 1 | 0% | 1,887 | 2,252 | +19% | 0 | 0 | — |
case-19 | pass→pass | 5,619 | 2,433 | -57% | 1 | 1 | 0% | 853 | 2,181 | +156% | 0 | 0 | — |
case-20 | fail→pass | 9,021 | 1,733 | -81% | 1 | 1 | 0% | 1,629 | 2,074 | +27% | 0 | 0 | — |
case-22 | pass→pass | 10,846 | 10,485 | -3% | 1 | 1 | 0% | 2,203 | 3,932 | +78% | 0 | 0 | — |
case-23 | pass→fail | 13,131 | 14,825 | +13% | 1 | 1 | 0% | 2,514 | 4,209 | +67% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +30 percentage points is the difference between those two pass rates over the 23 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.