Usage
This skill is intended for instances where large files or extensive outputs from parallel agents need to be digested without polluting the main contextual space.
Invoke the skill when you encounter:
- Massive
.logfiles from build errors. - Massive
ARCHITECTURAL_AUDIT.mdfiles generated by multiple agents. - Large
git diffoutputs spanning many files.
The AI will output an OPTIMIZED_CONTEXT.md file stripping away boilerplate and leaving only vital information.
Examples
Before (Raw Log)
2026-03-07T14:32:11 [INFO] Starting build process...
2026-03-07T14:32:11 [INFO] Fetching dependencies from registry.npmjs.org
2026-03-07T14:32:12 [WARN] Unmet peer dependency for React 18, found 17
2026-03-07T14:32:15 [ERROR] Webpack compilation failed: Cannot resolve module 'crypto' in /src/utils/hash.js
2026-03-07T14:32:15 [INFO] Shutting down build process.
After (Optimized output)
# Error Digest
- **Issue**: Webpack compilation failed. Missing module 'crypto'.
- **File**: `/src/utils/hash.js`
- **Warning**: Unmet peer dependency (React 18 expected, 17 found).
Best Practices
- Never allow write access: This skill must operate purely as a reader and synthesizer. It must not modify source code.
- Instruct strict schemas: Always tell the janitor the exact JSON or markdown format you want returned.
- Use for Subagent Aggregation: If 5 subagents return 5 full markdown reports, use the context janitor to merge them into a 10-line executive summary.
Notes
The agent running this skill should ideally be a smaller, faster model (e.g., Haiku or Flash) as its primary job is parsing and reduction, rather than deep logical reasoning.