context-doctorlisted
Install: claude install-skill chrono-code/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