context-window-optimizer
SkillFiles & storageCurates and condenses codebase context, file contents, and prompts to optimize LLM token usage and response quality.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the context-window-optimizer skill
What this skill tells your AI
The instructions your AI receives, as published by codebygarv/ai-skills in skills/productivity/context-window-optimizer/SKILL.md and read by ahel’s review.
Purpose
Compress, filter, and structure codebase context and instructions provided to AI coding agents and LLMs, maximizing token efficiency, eliminating noise, and preventing context window dilution.
When to Use
- Feeding large codebases, trace logs, or documentation into AI assistants.
- Hitting token context limits in AI agent sessions.
- Improving LLM reasoning accuracy by stripping unneeded boilerplate and node_modules cruft.
What to Analyze
- Signal-to-Noise Ratio: Strip minified bundles, lockfiles, compiled artifacts, and repetitive mock fixtures.
- Skeleton & Interface Extraction: Extract TypeScript interfaces, class signatures, and exported function headers rather than full 1,000-line function bodies.
- Log & Trace Compression: Deduplicate repeated stack traces, error loops, and verbose debug strings into frequency summaries.
- Structured Chunking: Organize context into semantic markdown blocks with unambiguous file paths.
Output Format
- Optimized Context Package: Clean, condensed markdown representation of the essential code/architecture.
- Token Reduction Score: Estimated tokens saved (e.g. 75,000 tokens $ ightarrow$ 6,200 tokens, 91% reduction).
- Extracted Type Interface Summary: High-signal API surface overview.
Avoid
- Dumping 50,000-line
package-lock.jsonfiles into LLM context. - Stripping crucial type signatures or error definitions needed for reasoning.
Signals
- GitHub stars
- 25
- Forks
- 1
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
context-window-optimizer- Source
- github.com/codebygarv/ai-skills