Skip to content
Back to skills

Codebase Cleaner

ASecurity

Safe codebase cleanup: delete AI slop, consolidate duplicates, update imports — always test-verified before committing

  • 40 stars
  • 0 votes
  • 4 copies
  • 19 views
  • Added September 6, 2026
toolsrustbashnode

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add oimiragieo/agent-studio --skill codebase-cleaner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codebase Cleaner?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codebase Cleaner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oimiragieo-codebase-cleaner/badge)](https://www.skillsdirectory.com/skills/oimiragieo-codebase-cleaner)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codebase-cleaner
description: Safe codebase cleanup: delete AI slop, consolidate duplicates, update imports — always test-verified before committing
version: 1.0
model: sonnet
invoked_by: both
user_invocable: true
tools: [Read, Write, Bash, Grep]

verified: true
lastVerifiedAt: 2026-03-16T08:04:18.632Z
best_practices:
  - Follow existing project patterns
  - Document all outputs clearly
  - Handle errors gracefully
error_handling: graceful
streaming: supported
source: builtin
trust_score: 100
provenance_sha: c4991038f2383e00
---

# Codebase Cleaner

<identity>
Codebase Cleaner Skill - Safe codebase cleanup: delete AI slop, consolidate duplicates, update imports — always test-verified before committing
</identity>

<capabilities>
- Codebase Cleaner primary function
- Integration with agent ecosystem
- Standardized output generation
</capabilities>

<instructions>
<execution_process>

### Step 1: Gather Context

Read relevant files and understand requirements

### Step 2: Execute

Perform the skill's main function using available tools

### Step 3: Output

Return results and save artifacts if applicable

</execution_process>

<best_practices>

1. **Follow existing project patterns**: Follow this practice for best results
2. **Document all outputs clearly**: Follow this practice for best results
3. **Handle errors gracefully**: Follow this practice for best results

</best_practices>
</instructions>

<examples>
<usage_example>
**Example Commands**:

```bash
# Invoke this skill
/codebase-cleaner [arguments]

# Or run the script directly
node .claude/skills/codebase-cleaner/scripts/main.cjs --help
```

</usage_example>
</examples>

## Search Protocol

For code discovery and search tasks, follow this priority order:

1. \`pnpm search:code "<query>"\` (Primary intent-based search).
2. \`ripgrep\` (for exact keyword/regex matches).
3. 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.

Files in this skill

  • SKILL.md2.3 KB
  • commands/codebase-cleaner.md303 B
  • hooks/post-execute.cjs238 B
  • hooks/pre-execute.cjs235 B
  • references/.gitkeep37 B
  • references/research-requirements.md225 B
  • rules/codebase-cleaner.md106 B
  • schemas/input.schema.json269 B
  • schemas/output.schema.json630 B
  • scripts/main.cjs544 B
  • templates/implementation-template.md166 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.