Clean AI-generated temporary files, analysis files, and drafts from the project. Use to tidy up after AI sessions.
When this skill is invoked, immediately perform the following cleanup actions.
Find files that are typically AI-generated or temporary:
# Find potential cleanup candidates
find . -type f \( \
-name "*.tmp" -o \
-name "*.temp" -o \
-name "*_draft*.md" -o \
-name "*_analysis*.md" -o \
-name "*_backup*" -o \
-name "temp_*.md" -o \
-name "draft_*.md" -o \
-name "*_old.*" -o \
-name "*.bak" -o \
-name "*~" -o \
-name ".DS_Store" -o \
-name "Thumbs.db" -o \
-name "*.log" -o \
-name "*.orig" \
\) 2>/dev/null | head -50
Search for markdown files with AI-generated content patterns:
# Files with AI language patterns
grep -rl --include="*.md" -E "(Here('s| is) (a|an|the)|Let me|I('ll| will)|Based on (my|the)|As an AI)" . 2>/dev/null | head -20
These files must NEVER be deleted regardless of content:
README.md - Project documentationCHANGELOG.md - Change historyCONTRIBUTING.md - Contribution guideLICENSE - License filepackage.json - Package manifesttsconfig.json - TypeScript config**/src/agents/*.md - Agent definitions**/src/skills/*/SKILL.md - Skill definitions.gitignore - Git ignore rules.git/For each candidate file found, check if it's protected. If not protected:
These can be deleted without asking (system files):
.DS_StoreThumbs.db*.orig (git merge artifacts)*~ (editor backup files)After cleanup, report:
=== ClaudeMesh Cleanup ===
Scanning for cleanup candidates...
Found 5 files:
1. ./temp_analysis.md (AI-generated analysis)
Preview: "Here's my analysis of the codebase..."
[Delete? y/n]
2. ./packages/cli/draft_readme.md (draft file)
Preview: "# Draft README..."
[Delete? y/n]
3. ./.DS_Store (system file)
Auto-deleted
=== Cleanup Complete ===
- Scanned: 156 files
- Deleted: 3 files
- Skipped: 2 protected files
- Space recovered: 24 KB
If user specifies --quick or quick, only delete obvious temp files without prompting:
*.tmp, *.temp, *.bak, *~.DS_Store, Thumbs.db*.orig, *.log (if not in important directories)Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer