This folder is a ready-to-use clean-room documentation workflow for any source code project.
- Put the target project files inside
src/. - In Claude Code / VS Code, run the initial indexing prompt:
- Paste
prompts/01_index_fresh_project.md, or - Use the project skill
.claude/skills/index-fresh-project/SKILL.mdif your Claude Code setup exposes skills.
- Paste
- After indexing finishes, compact if you want.
- Run the continue prompt:
- Paste
prompts/02_continue_cycle.md, or - Use
.claude/skills/continue-batch-cycles/SKILL.md.
- Paste
- Compact between batches as needed.
- If anything gets weird, run
prompts/03_repair_batch_consistency.md.
Every batch must include a table mapping each assigned source file to the exact mirrored doc path. The worker must create all mirror docs first as stubs, then fill them in. The verifier must reject the batch if any mirror doc is missing.
Run these from the project root:
python scripts/inventory_src.py --write --print-summary
python scripts/check_batch_consistency.py --latest
python scripts/compact_resume_summary.pyUse the inventory script only before the first indexing pass, or later only if you understand that PROJECT_FILE_INDEX.md is a living tracker. The script preserves statuses by default, but Claude should normally manage batch status updates.
The scripts help keep the workflow deterministic so Claude does not forget mirrored docs during a long batch.