optimize-context
CommunityTrim Claude context to cut token waste
Authorrichfrem
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Claude Code context often bloats due to multiple SKILL.md definitions being loaded as both "Plugin" and "Project" sources, and CLAUDE.md carrying excess rules. This Skill provides a two-pass workflow to deduplicate skill definitions, trim CLAUDE.md to essential guidance, and improve session hygiene by eliminating duplicate context.
Core Features & Use Cases
- Two-pass context optimization: deduplicate SKILL.md definitions, trim CLAUDE.md, and tidy context usage across the project.
- Phase-driven workflow: Phase 1 Intent Capture, Phase 2 Skill Deduplication, Phase 3 CLAUDE.md Optimization, Phase 3.5 Session Efficiency, Phase 4 Post-Fix Validation, Phase 5 Report.
- Safe, idempotent changes with dry-run changes and transparent reporting to prevent accidental edits.
Quick Start
Run the optimize-context workflow to deduplicate SKILL.md definitions, trim CLAUDE.md, and clean .claude duplicates.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: optimize-context Download link: https://github.com/richfrem/agent-plugins-skills/archive/main.zip#optimize-context Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.