Before: SEO.md, GEO.md, HARDEN.md, VALIDATE.md, BUGS-FOUND.md landed
at project root. After: all five go to .claude/audits/. Covers both
dispatcher write paths and the dispatcher bash commands that parse
each report (test -s, grep score, wc) — otherwise the dispatcher
would look for the file at the old location.
- skills/seo,geo,harden,validate,code-clean — write paths + console
summaries ("Report: .claude/audits/X.md")
- skills/harden,validate — bash parsing commands (test/grep/wc) aligned
- agents/seo-analyzer,validator-analyzer,code-cleaner — agent-side refs
- agents/validator-analyzer frontmatter description updated
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
30 lines
901 B
Markdown
30 lines
901 B
Markdown
---
|
|
name: code-clean
|
|
description: |
|
|
Full codebase cleanup: dead code removal, style/norm enforcement, structural
|
|
issues. Two-phase workflow: audit first (read-only report), then execute
|
|
approved fixes only. Delegates refactoring to the refactorer agent.
|
|
Trigger: "code-clean", "clean up the code", "remove dead code",
|
|
"enforce code style", "cleanup", "nettoyage du code", "code hygiene".
|
|
For targeted refactoring without audit → use /refactor instead.
|
|
For bug fixes discovered during cleanup → logged to .claude/audits/BUGS-FOUND.md, not fixed here.
|
|
argument-hint: <file, directory, or blank for entire project>
|
|
disable-model-invocation: false
|
|
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
|