context-optimizerlisted
Install: claude install-skill rjmurillo/ai-agents
# Context Optimizer
Tooling suite for optimizing Claude Code context placement. Passive context (AGENTS.md, @imports) achieves 100% pass rates versus 53-79% for skills by eliminating decision points.
## Triggers
- `analyze skill placement` - classify and validate content as Skill vs Passive Context
- `compress markdown` - reduce token count for context files
- `optimize context` - lower API costs and improve agent performance
- `extract and index` - split markdown into detail files with compact index
- `audit always-on rules` - eval-gated procedure for whether a rule earns its slot, and the doctrine behind it, in [rule-audit-procedure.md](references/rule-audit-procedure.md) and [model-context-doctrine.md](references/model-context-doctrine.md). Also the entry point when a new model ships. **Requires a full rjmurillo/ai-agents checkout**: the procedure runs this repo's eval harness and rule generator, neither of which ships in a plugin install. The doctrine and the instrument write-ups are readable anywhere; only the commands need the checkout
## Process
1. **Analyze**: Run `analyze_skill_placement.py` to classify content
2. **Compress**: Run `compress_markdown_content.py` to reduce token counts
3. **Validate**: Run `test_skill_passive_compliance.py` to check compliance
4. **Verify**: Confirm output JSON contains expected classification and metrics
## Verification
- [ ] Classification matches expected type (Skill/PassiveContext/Hybrid)
- [ ] Compression achieves target r