MustafaDorgham

Clean — Development skill for Claude Code

Development community

Clean up temporary files and build artifacts.

How to install Clean

Installs to ~/.claude/skills/mustafadorgham-agentic-slash-commands-clean/SKILL.md

Terminal
mkdir -p ~/.claude/skills/mustafadorgham-agentic-slash-commands-clean && curl -fsSL https://raw.githubusercontent.com/MustafaDorgham/agentic-slash-commands/HEAD/commands/clean.md -o ~/.claude/skills/mustafadorgham-agentic-slash-commands-clean/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Clean does


description: Clean up temporary files and build artifacts allowed-tools: Bash(rm), Bash(find), Bash(du), Bash(ls), Read(*package.json), Read(*.gitignore)

Clean up project files safely:

  1. Check .gitignore to identify safe-to-delete files
  2. Show what will be cleaned before deletion
  3. Clean common temporary files and directories:
    • node_modules (if package-lock.json exists)
    • dist/, build/, target/ directories
    • .cache, .temp, .tmp directories
    • Log files (*.log)
    • OS

Alternatives in Development

  • Web Artifacts Builder — Build complex claude.ai HTML artifacts using React, Tailwind CSS, and shadcn/ui 94.1k ★
  • 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 ★

Full documentation available on GitHub

View Source Repository