Cleanup — Development skill for Claude Code
@include shared/constants.yml#Process_Symbols.
How to install Cleanup
Installs to ~/.claude/skills/baocin-claude-code-config-cleanup/SKILL.md
mkdir -p ~/.claude/skills/baocin-claude-code-config-cleanup && curl -fsSL https://raw.githubusercontent.com/baocin/claude-code-config/HEAD/commands/cleanup.md -o ~/.claude/skills/baocin-claude-code-config-cleanup/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Cleanup does
@include shared/constants.yml#Process_Symbols
@include shared/command-templates.yml#Universal_Flags
Clean up project artifacts, code & cfg specified in $ARGUMENTS.
--code flag:
- Remove unused imports & dead code | Clean console.log & debug code
- Remove commented blocks | Fix style inconsistencies | Remove TODO>30 days
--files flag:
- Remove build artifacts & temp files | Clean node_modules if corrupted
- Remove logs & cache dirs | Clean test outputs | Remove OS files (.DS_Store, thumbs.db)
Alternatives in Development
- Clean Worktree (Interactive) — Interactive cleanup of worktrees: lists merged/stale branches and asks confirmation before deleting 25.5k ★
- System Cache Cleanup — Clean temporary files and caches to free disk space: $ARGUMENTS 23.4k ★
- Cleanup Builds — Cleanup Dev Builds 20k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Dev Setup
@include shared/constants.yml#Process_Symbols
Estimate
@include shared/constants.yml#Process_Symbols
A2Switch
A2S desktop control center for one-click Agent bridge installation, shared device configuration, process contr
Review Hardcoded Values
Scan for embedded literals that belong in config or a constants module: URLs, magic numbers, thresholds, error
Const Exper
Automatically apply constexpr to constants, constructors, operators, and functions
Constexpr
Automatically apply constexpr to constants, constructors, operators, and functions
Related Agents
Review Conventions
Reviews the Rust diff for convention violations, rename consistency, drift in shared constants, cross-file inf
Guidelines Extractor
Given a URL or raw text of journal author guidelines, extracts structured requirements into a guidelines/jour
Concurrency Resource Review
Reviews a diff for concurrency/async defects and resource-lifecycle failures — races, deadlocks, unsafe shared