Model hint: Use
model: "haiku"when spawning subagents for this skill (mechanical task: file scanning + gitignore suggestions).
Inputs to read (project-local):
- •.claude/memory/repo_policy.md
Procedure (safe):
- •Identify large files/dirs (suggest commands):
- •du -sh * | sort -h
- •find . -maxdepth 3 -type f -size +200M
- •Identify common junk paths to ignore:
- •pycache, .pytest_cache, logs/, checkpoints/, results/, artifacts/
- •Propose a patch:
- •.gitignore additions
- •README updates (directory map, how to reproduce)
- •Output a "Cleanup proposal" with:
- •what to ignore
- •what to archive (proposal only)
- •what to keep
Rules:
- •No destructive actions.
- •Prefer reversible changes (gitignore, docs).