context-optimizer

Diagnose and reduce token usage through compaction, MCP audits, and subagent delegation.

1|Updated May 6, 2026
One-click install
npx skills add https://github.com/surfingalien/FinSurfing --skill context-optimizer-surfingalien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-optimizer
Source: https://github.com/surfingalien/FinSurfing/tree/main/.claude/skills/context-optimizer
Command: npx skills add https://github.com/surfingalien/FinSurfing --skill context-optimizer-surfingalien

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Long AI coding sessions degrade as the context window fills up, causing repeated answers, forgotten instructions, and wasted token budget. This Skill provides a structured playbook for diagnosing context bloat and applying the right optimization before quality drops. ## Core Features & Use Cases - Context Diagnosis: Threshold-based checks (70% and 90% usage) that tell you when to compact or restart a session. - Optimization Strategies: Immediate actions like /compact, disabling unused MCP servers, delegating heavy output to subagents, and configuring auto-compaction via CLAUDE_AUTOCOMPACT_PCT_OVERRIDE. - Token Efficiency Rules: Output reduction guidelines, prompt scoping techniques, tool-call budgets, and CLAUDE.md size limits. - Use Case: Midway through a large refactor, responses become generic and the session feels slow. Run the diagnosis steps, compact at the task boundary, delegate test output to a subagent, and continue with a clean context. ## Quick Start Ask the assistant to diagnose current context usage and apply the context-optimizer strategies to reduce token consumption in this session.

Frequently Asked Questions about context-optimizer

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

FAQPage Schema
What are the limits of context optimization techniques?

Compaction cannot recover information already lost to degradation, and aggressive output reduction may omit needed detail for complex explanations. For fundamentally oversized tasks, splitting work across sessions is more effective than optimizing a single one.