# Repo Cleanup Best Practices

> Sub-skill of repo-cleanup: Best Practices.

- Skill: `vamseeachanta/repo-cleanup-best-practices` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/repo-cleanup-best-practices`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/repo-cleanup-best-practices/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/repo-cleanup-best-practices

---


# Best Practices

## Best Practices


1. **Always verify before deleting** - Use `find` and `ls` before `rm`
2. **Use git rm for tracked files** - Preserves history and staging
3. **Update .gitignore first** - Prevents re-adding cleaned files
4. **Commit cleanup separately** - Keep cleanup commits distinct from feature work
5. **Document what was removed** - Use clear commit messages
6. **Check file sizes** - Large files may need special handling (Git LFS)

