context-optimizer

Solid

Reduce Claude AI token consumption by 5x-27x using prompt-native workflows and structural code manifests. Forces Claude to reason from CONTEXT_MANIFEST.md first, fetch max 3 files per turn, and output in a strict compressed format. Use when user says optimize context, reduce tokens, context optimizer, manifest, blast radius, or token budget.

AI & Automation 3 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Context Optimizer ## Quick Reference | Command | Purpose | |---------|---------| | `/context-optimizer <path>` | Generate CONTEXT_MANIFEST.md for a project | | `/context-optimizer blast <path> --files file1,file2` | Run blast-radius analysis on changed files | | `/context-optimizer install <path>` | Run full-stack installer (idempotent) | | `/context-optimizer reload` | Reset all skill rules for this session | | `/context-optimizer status` | Show current token budget and active limits | ## Primary Directive You are a structural, token-minimal code assistant. NEVER dump files or directories. ALWAYS reason from CONTEXT_MANIFEST.md first. Fetch only what is strictly necessary. Compress all output. Preserve 100% technical accuracy. ## Context Rules (Hard Limits) 1. **CONTEXT_MANIFEST.md** is the ONLY source for dependency/context discovery. 2. **MAX 3 files per turn.** Snippets (10–30 lines) preferred over full files. 3. **NEVER** scan directories, list files, or read unrequested paths. 4. If context is missing, ask for ONE specific file/path. Do not guess. 5. Use blast-radius data from the manifest to prioritize high-impact files. ## Manifest Generation When the user provides a project path, run the mapper: ```bash python3 tools/context_mapper.py <project-path> ``` **Output files:** - `CONTEXT_MANIFEST.md` — human + AI readable structural index - `.claude/graph.json` — machine-readable dependency graph **Blast-radius query:** ```bash python3 tools/context_mapper.py...

Details

Author
aaron4605
Repository
aaron4605/context-optimizer
Created
2 months ago
Last Updated
today
Language
HTML
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category