clean
Installation
SKILL.md
Memory Protocol
START: Read .ai-memory.md from project root. Check for known junk patterns, previous cleanup history, and project-specific ignore rules.
END: Update .ai-memory.md using Memory Compaction Rules with: what was cleaned, space recovered, ignore rules added, and recurring patterns.
Goal
Identify and remove unnecessary files generated by AI, build processes, or development tools without affecting the working codebase.
Agent Routing
- If cleanup involves build artifacts/CI → read
.kiro/skills/agents/agents/devops-engineer.mdand apply its knowledge - If cleanup involves security-sensitive files → read
.kiro/skills/agents/agents/security-auditor.mdand apply its knowledge
Socratic Gate
Before cleaning, verify:
- Is the project under version control? (safety check)
- Are there uncommitted changes that could be lost?
- Any specific directories/patterns to preserve? If uncertain, ASK before proceeding.