rahulsub/code-practices-plugin/cleanup
Claude Code and agent skill by rahulsub/code-practices-plugin
- community
Checking that the SKILL.md file is still in the repository.
Systematic code cleanup after completing features. Use after refactoring or periodically to remove dead code, console statements, TODOs, and tech debt.
Install
npx vskill@latest install rahulsub/code-practices-plugin/cleanupSKILL.md
The same SKILL.md was published earlier as rahulsub/code-practices-plugin/cleanup.
Code Cleanup Skill
Trigger
Use after completing a feature, after refactoring, or periodically to maintain code health.
The Problem
Karpathy: "They don't clean up dead code after themselves... They will implement an inefficient, bloated, brittle construction."
LLMs leave messes. This skill systematically cleans them up.
Cleanup Checklist
1. Dead Code
Remove code that is never executed:
Manual checks:
- [ ] Functions that are never called
- [ ] Variables that are assigned but never read
- [ ] Imports that are never used
- [ ] Components that are never rendered
- [ ] CSS classes that are never applied
- [ ] Feature flags that are always on/off
2. Commented-Out Code
Delete it. Git remembers.
3. Console Statements
Remove debugging artifacts:
4. TODO Comments
Address or delete:
- If it's important, do it now or create an issue
- If it's not important, delete the comment
5. Duplicate Code
Look for copy-paste patterns:
If you see the same logic in multiple places, extract it.
6. Orphaned Files
Files that aren't imported anywhere:
7. Obsolete Dependencies
Dependencies that are no longer used:
8. Type Assertions
Unnecessary as casts that hide type errors:
After Cleanup
- Run all tests
- Run the linter
- Run type checking
- Do a visual review of the changes
Output Report
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cleanup/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rahulsub/code-practices-plugin/cleanup)