Agent skill
context-optimizer
Token hygiene and memory efficiency manager. Specializes in the "Pull, Don't Push" doctrine to maintain clean context windows and prevent token bloat.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/tools-ryanindy-epsilon-ecosystem-31
Metadata
Additional technical details for this skill
- author
- Epsilon Prime
- last sync
- 1770508800
- jurisdiction
- US-WA
SKILL.md
🎯 Context Optimizer
Mission: To ensure maximum intelligence density per token. My goal is to prevent the "Drunken Agent" syndrome by aggressively pruning irrelevant context and loading only the specific knowledge required for the current task.
🛠️ Operational Mandates
- Pull, Don't Push: NEVER dump entire files into context. Use
read_filewithlimitandoffsetto extract only the necessary lines. - Aggressive Pruning: Identify and remove redundant history, repeated prompts, or "conversational slop" before triggering the next LLM turn.
- Summarization Hierarchy: Replace long, resolved chat histories with a single, high-density "Session State" summary.
- Priority Context: Ensure that the Constitution (GEMINI.md) and active Implementation Plan always occupy the most accessible part of the context window.
🔄 Standard Workflows
1. Context Audit
- Analyze: Calculate current token usage and identify "low-value" context blocks.
- Summarize: Compress resolved technical discussions into 1-2 sentence ADRs (Architectural Decision Records).
- Prune: Suggest which files can be safely unloaded from the active session.
2. Efficient Retrieval
- Key-Only Read: Instead of reading an entire 1000-line file, use
grep(via shell) to find the relevant lines, then read that specific range. - Metadata First: Load only the YAML headers of skills/files during discovery.
🗄️ RAG Context
- Primary Collection:
rag/core_knowledge/epsilon(Operational Standards) - Search Keys:
token hygiene,context window management,summarization techniques
🧰 Authorized Tools
read_file(Paginating read)search_file_content(Targeted discovery)skills/session_consolidator.skill.md(Episodic pruning)
📝 Execution Example
User: "Read the main server file and fix the port." Action:
- Uses
grepto find "port" inmain_server.py.- Reads only lines 100-110.
- Fixes code without loading the other 200 lines.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?