Skip to content
Agentmart
Submit a tool

context-maximizer

Exploit the 1M token context (Opus 4.6 / Sonnet 4.6) for full codebase awareness in SpecKit.

Skill by JimmyBlanquet

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jimmyblanquet-context-maximizer

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Exploit the 1M token context (Opus 4.6 / Sonnet 4.6) for full codebase awareness in SpecKit. Intelligently loads constitution, specs, skills, and codebase files while staying within token limits. Prioritizes critical files and provides context usage reports.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/context-maximizer

What's inside

Skill name
context-maximizer
Description
Exploit the 1M token context (Opus 4.6 / Sonnet 4.6) for full codebase awareness in SpecKit. Intelligently loads constitution, specs, skills, and codebase files while staying within token limits. Prioritizes critical files and provides context usage reports.
License
MIT
Instructions
254 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (8)

  • INSTALL.md
  • QUICK_START.md
  • README.md
  • SKILL.md
  • SUMMARY.md
  • posts-crud-example.md · examples/
  • loading-strategies.md · references/
  • analyze_context.py · scripts/

SKILL.md (first lines)

# Context Maximizer

Leverage the 1M token context window (GA since March 2026, available on both Opus 4.6 and Sonnet 4.6) to provide full codebase awareness during spec generation, planning, and development. With 64k default output tokens (up to 128k on Opus 4.6) and support for up to 600 images/PDF pages per request, smart loading strategies ensure the most relevant context is always available.

## When to Use

- During spec generation (specify skill)
- When creating technical plans (plan skill)
- Before implementing features that require understanding multiple systems
- When analyzing dependencies across the codebase
- For comprehensive code reviews requiring full context

## Context Budget

Total available: **1,000,000 tokens** (~4,000,000 characters)

### Priority Levels

1. **Critical** (always loaded): Constitution, active specs, current plan
2. **High**: Skills relevant to feature domain
3. **Medium**: Codebase files matching feature patterns
4. **Low**: Documentation, references, examples

### Token Allocation Strategy

```
Constitution:       ~10,000 tokens   (1%)
Active Specs:       ~50,000 tokens   (5%)
Current Plan:       ~20,000 tokens   (2%)
Skills (3-5):      ~100,000 tokens  (10%)
Codebase:          ~700,000 tokens  (70%)
Documentation:      ~50,000 tokens   (5%)
Buffer:             ~70,000 tokens   (7%)
```

## Features

### 1. Context Budget Calculator

Analyzes project structure and estimates token usage:

```bash
python scripts/analyze_context.py /path/to/project
```

Output:
```json
{
  "total_tokens": 850000,
  "by_category": {
    "constitution": 8500,
    "specs": 42000,
    "skills": 95000,
    "codebase": 650000,
    "docs": 54500
  },
  "within_limit": true,
  "utilization": "85%"
}
```

### 2. Smart Loading Strategy

Automatically determines what to load based on feature domain:

```bash
python scripts/analyze_context.py /path/to/project --feature "posts-crud"
```

Output includes prioritized file list:
```json
{
  "loading_plan": {
    "critical": [
      "constitution.yml",
      "specs/1-posts-crud/prd.json",
      "specs/1-posts-crud/plan.json"
    ],
    "high": [
      "skills/speckit/specify/",
      "skills/speckit/plan/",
      "skills/database/"
    ],
    "medium": [
      "src/db/schema/posts.ts",
      "src/lib/services/posts.ts",
      "src/app/api/posts/"
    ],
    "low": [
      "docs/database.md",
      "docs/api-integrations.md"
    ]
  }
}
```

### 3. Context Report

Shows what's loaded and provides optimization suggestions:

```bash
python scripts/analyze_context.py /path/to/project --report
```

Output:
```json
{
  "loaded": {
    "files": 156,
    "total_tokens": 820000,
    "breakdown": {
      "constitution": { "tokens": 8500, "percentage": 1.0 },
      "specs": { "tokens": 42000, "percentage": 5.1 },
      "skills": { "tokens": 95000, "percentage": 11.6 },
      "codebase": { "tokens": 620000, "percentage": 75.6 },
      "docs": { "tokens": 54500, "percentage": 6.6 }
    }
  },
  "warnings": [],

From JimmyBlanquet/project-forge, MIT.

More from JimmyBlanquet/project-forge

Signals

Stars
0
Forks
0
Open issues
2
Last commit (this folder)
May 10, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from JimmyBlanquet

Cite this page

context-maximizer skill. Agent Mart. https://agentmart.dev/skills/jimmyblanquet-context-maximizer (last updated 2026-10-24)