cleanproject
Skill1 starsChanged 7 months agoMITView on GitHub
Remove debug artifacts and temporary files safely with git checkpoint protection
- Reads credentials
In this repository206 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- project-healthSkill
- skill-validatorSkill
- accessibilitySkill
- agent-debugSkill
- agent-evaluateSkill
- ai-governanceSkill
- ai-system-reviewSkill
- api-docs-generateSkill
- api-examplesSkill
- api-mockSkill
- api-test-generateSkill
- api-validateSkill
- architecture-diagramSkill
- ask-mattSkill
- assumption-mapSkill
- boilerplateSkill
- brainstormSkill
- branch-finishSkill
- briefingSkill
- browser-testing-with-devtoolsSkill
- bundle-analyzeSkill
- cache-strategySkill
- canarySkill
- carefulSkill
- cavemanSkill
- changelog-autoSkill
- chaos-testSkill
- ci-setupSkill
- ci-sweepSkill
- click-path-auditSkill
- codebase-designSkill
- code-review-checklistSkill
- code-tourSkill
- commitSkill
- completion-verifySkill
- complexity-reduceSkill
- component-librarySkill
- config-cleanupSkill
- config-generateSkill
- conflict-resolveSkill
- container-optimizeSkill
- context-budgetSkill
- context-engineeringSkill
- context-restoreSkill
- context-saveSkill
- continuous-learningSkill
- contributingSkill
- cost-trackSkill
- councilSkill
- create-todosSkill
- cross-modal-reviewSkill
- database-connectSkill
- db-diagramSkill
- ddd-modelSkill
- debug-root-causeSkill
- debug-sessionSkill
- debug-systematicSkill
- decision-logSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Before cleaning, I need to carefully consider:
- Distinctive: line 36
Start with obvious artifacts (*.log, *.tmp, *~)
- Distinctive: line 37
Check file age - older files are usually safer to remove
- Distinctive: line 38
Verify with git status what's tracked vs untracked
- Distinctive: line 49
Add "Co-authored-by" or any Claude signatures
- Distinctive: line 52
Add any AI/assistant attribution to the commit
- Distinctive: line 53
Use emojis in commits, PRs, or git-related content
- Distinctive: line 66
When I find multiple items to clean, I'll create a todo list to process them systematically.
- Distinctive: line 74
After cleanup, I'll verify project integrity and report what was cleaned.
- Distinctive: line 76
If any issues occur, I can restore from the git checkpoint created at the start.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Clean Project
I'll help clean up development artifacts while preserving your working code.
Strategic Thinking Process
<think>
Before cleaning, I need to carefully consider:- Artifact Identification
- What patterns indicate temporary/debug files?
- Which files might look temporary but are actually important?
- Are there project-specific conventions for temp files?
- What about generated files that should be kept?
- Safety Analysis
- Which deletions are definitely safe?
- Which require more careful inspection?
- Are there active processes using these files?
- Could removing these break the development environment?
- Common Pitfalls
- .env files might look like artifacts but contain config
- .cache directories might be needed for performance
- Some .tmp files might be active session data
- Debug logs might contain important error information
- Cleanup Strategy
- Start with obvious artifacts (*.log, *.tmp, *~)
- Check file age - older files are usually safer to remove
- Verify with git status what's tracked vs untracked
- Group similar files for batch decision making
</think>
Based on this analysis, I'll create a git checkpoint for safety:
git add -A
git commit -m "Pre-cleanup checkpoint" || echo "No changes to commit"Important: I will NEVER:
- Add "Co-authored-by" or any Claude signatures
- Include "Generated with Claude Code" or similar messages
- Modify git config or user credentials
- Add any AI/assistant attribution to the commit
- Use emojis in commits, PRs, or git-related content
I'll identify cleanup targets using native tools:
- Glob tool to find temporary and debug files
- Grep tool to detect debug statements in code
- Read tool to verify file contents before removal
Critical directories are automatically protected:
- .claude directory (commands and configurations)
- .git directory (version control)
- node_modules, vendor (dependency directories)
- Essential configuration files
When I find multiple items to clean, I'll create a todo list to process them systematically.
I'll show you what will be removed and why before taking action:
- Debug/log files and temporary artifacts
- Failed implementation attempts
- Development-only files
- Debug statements in code
After cleanup, I'll verify project integrity and report what was cleaned.
If any issues occur, I can restore from the git checkpoint created at the start.
This keeps only clean, working code while maintaining complete safety.
Token Optimization
Expected range: 50–100 tokens (already clean), 300–500 tokens (typical cleanup)
Caching: Caches cleanup patterns and protected path lists in .claude/cache/cleanproject/ for 7 days. Invalidated when .gitignore changes.
Early exit: Returns immediately if no artifacts match known cleanup patterns.
Patterns used: Bash-only operations, early exit, template-based pattern matching
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

