# Cleanup

> Clean up project housekeeping tasks (add "run" to execute fixes)

- Skill: `bradtraversy/cleanup` (Agent Skill)
- Install (CLI): `npx skillmds@latest add bradtraversy/cleanup`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bradtraversy/cleanup/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: bradtraversy (https://skillmd.com/u/bradtraversy)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/bradtraversy/cleanup

---


Review the codebase for cleanup tasks:

1. Make sure that the history in @context/current-feature.md is in order from oldest to newest
2. Find unnecessary console.log statements in src/
3. Find unused imports
4. Check for stale TODO comments
5. Find orphaned/unused files
6. Check that context files match actual project state
7. Check if the .env.production has the same variables (not always the same value) as the .env. If something is missing, tell me.
8. Find `@ts-ignore` comments that might be stale

**Mode: $ARGUMENTS**

If no argument or argument is "check":

- Only report findings, don't modify anything
- List what WOULD be cleaned up

If the argument is "run" or "fix":

- First, report all findings with numbered items
- Then ask: "Which items would you like me to fix? (enter numbers like 1,3,5 or 'all' or 'none')"
- Wait for user response before making any changes
- Only fix the items the user specifies
- Report what you changed

