Clean — Development skill for Claude Code
Clean up temporary files and build artifacts.
How to install Clean
Installs to ~/.claude/skills/mustafadorgham-agentic-slash-commands-clean/SKILL.md
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:
- Check .gitignore to identify safe-to-delete files
- Show what will be cleaned before deletion
- 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 RepositoryRelated Skills
Demo
Demo-Ready Mode — clean up dev artifacts and prepare for demos/screenshots
Build And Install
Rebuild dist/installer.js, reinstall all project artifacts to ~/.claude/, and optionally clean stale backups
Check Gitignore
Check and update .gitignore to exclude Plan Cascade temporary files. Ensures planning files won't be accidenta
Claude Code Root Runner
🔥 Utility script to run Claude Code CLI with --dangerously-skip-permissions as root by creating temporary non
Llamacoder
Open source Claude Artifacts – built with Llama 3.1 405B
Artifacts
Artifact Generation & Code Transformation
Related Agents
Doc Janitor
Use this agent to clean up stale documentation artifacts before merging a branch. Finds plan files, session su
Contaminated Handoff Sanitizer
Reviews Agent 1 draft specs from a fresh source-denied contaminated context, removes identifying material, and
Compat Manifest
Plugin compatibility manifest (temporary)