← ClaudeAtlas

context-doctorlisted

Reduces token waste in Claude Code sessions. Scans projects to automatically generate .claudeignore files, and guides on over-read files and /clear timing. In hub environments, regularly audits bloated CLAUDE.md/MEMORY.md/memory/*.md files and proposes compression. Usable standalone without a hub clone.
chrono-meta/forge-harness · ★ 2 · AI & Automation · score 74
Install: claude install-skill chrono-meta/forge-harness
# context-doctor — Token Efficiency Diagnosis + Automatic Prescription Diagnoses the 3 main causes of session token waste and prescribes immediate remedies: 1. No `.claudeignore` → unnecessary files loaded wholesale into context 2. Repeated full reads of large files → paying the same cost N times 3. Not using `/clear` after direction changes → continuing work with accumulated noise **Standalone install** — this skill works normally with plugin install only, without cloning the full meta-harness. ## Execution Steps ### Step 1. `.claudeignore` Diagnosis + Generation ```bash # Check whether .claudeignore exists in current project root ls -la .claudeignore 2>/dev/null || echo "MISSING" ``` **If absent**: Scan project structure and auto-generate. **If already present**: Keep existing content + suggest additional patterns only (no overwrite). Check for sentinel comment (`# context-doctor:`) and add to first line if absent. ```bash # Project type detection ls package.json pyproject.toml build.gradle pom.xml 2>/dev/null | head -5 # Top-level directory list ls -d */ 2>/dev/null | head -20 ``` Generation criteria — by project type: | Detected type | Additional patterns | |---|---| | Node.js (`package.json`) | `node_modules/` · `dist/` · `build/` · `.next/` · `coverage/` | | Python (`pyproject.toml` / `setup.py`) | `__pycache__/` · `.venv/` · `*.egg-info/` · `dist/` · `.pytest_cache/` | | Java (`pom.xml` / `build.gradle`) | `target/` · `build/` · `.gradle/` | | Common (always