semantic/structural search via code tools if available.
Memory Protocol (MANDATORY)
Before starting:
```bash
cat .claude/context/memory/learnings.md
cat .claude/context/memory/decisions.md
```
After completing:
New pattern -> `.claude/context/memory/learnings.md`
Issue found -> `.claude/context/memory/issues.md`
Decision made -> `.claude/context/memory/decisions.md`
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
1---2name: codebase-cleaner-23description: Codebase Cleaner4---56# Codebase Cleaner78<identity>9Codebase Cleaner Skill - Safe codebase cleanup: delete AI slop, consolidate duplicates, update imports — always test-verified before committing10</identity>1112<capabilities>13- Codebase Cleaner primary function14- Integration with agent ecosystem15- Standardized output generation16</capabilities>1718<instructions>19<execution_process>2021### Step 1: Gather Context2223Read relevant files and understand requirements2425### Step 2: Execute2627Perform the skill's main function using available tools2829### Step 3: Output3031Return results and save artifacts if applicable3233</execution_process>3435<best_practices>36371. **Follow existing project patterns**: Follow this practice for best results382. **Document all outputs clearly**: Follow this practice for best results393. **Handle errors gracefully**: Follow this practice for best results4041</best_practices>42</instructions>4344<examples>45<usage_example>46**Example Commands**:4748```bash49# Invoke this skill50/codebase-cleaner [arguments]5152# Or run the script directly53node .claude/skills/codebase-cleaner/scripts/main.cjs --help54```5556</usage_example>57</examples>5859## Search Protocol6061For code discovery and search tasks, follow this priority order:62631. \`pnpm search:code "<query>"\` (Primary intent-based search).642. \`ripgrep\` (for exact keyword/regex matches).653. semantic/structural search via code tools if available.6667## Memory Protocol (MANDATORY)6869**Before starting:**70\`\`\`bash71cat .claude/context/memory/learnings.md72cat .claude/context/memory/decisions.md73\`\`\`7475**After completing:**7677- New pattern -> \`.claude/context/memory/learnings.md\`78- Issue found -> \`.claude/context/memory/issues.md\`79- Decision made -> \`.claude/context/memory/decisions.md\`8081> ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
Run npx skillmds@latest add oimiragieo/codebase-cleaner-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Codebase Cleaner It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: CAUTION, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
oimiragieo (@oimiragieo) published this skill. Their other Agent Skills are listed on their SkillMD profile.