forked from bchanot/claude
6,416 → 4,243 chars (≈ −540 tokens/session, catalog loaded every session). Kept per BDR-014/LRN-043: 'Use when' pattern, discriminating FR+EN triggers, all 'For X → /Y' disambiguation lines. Cut: redundant trigger synonyms, header/engine enumerations, prose the model derives. find-docs excluded (ctx7-owned, regen clobbers — LRN-086); doc + geo taken instead. All ≤ ~505 chars body (BDR-014 aspirational ceiling). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016zA3Qh2Q1QpcGXzXxKeDHR
29 lines
711 B
Markdown
29 lines
711 B
Markdown
---
|
|
name: code-clean
|
|
description: |
|
|
Full codebase cleanup: dead code, style/norm enforcement, structural
|
|
issues. Two-phase: read-only audit, then approved fixes only
|
|
(refactorer agent).
|
|
Triggers: "code-clean", "remove dead code", "cleanup", "nettoyage du
|
|
code", "code hygiene".
|
|
Targeted refactor without audit → /refactor. Bugs found → logged to
|
|
.claude/audits/BUGS-FOUND.md, not fixed here.
|
|
argument-hint: <file, directory, or blank for entire project>
|
|
allowed-tools:
|
|
- Read
|
|
- Edit
|
|
- Write
|
|
- Bash
|
|
- Grep
|
|
- Glob
|
|
- Agent
|
|
- AskUserQuestion
|
|
---
|
|
|
|
Load and follow strictly:
|
|
- $HOME/.claude/agents/code-cleaner.md
|
|
|
|
Execute the CODE-CLEANER agent on the following target:
|
|
|
|
$ARGUMENTS
|