Strip the disable-model-invocation frontmatter key from all 19 editable skills. Absent = default = model invocation enabled. 8 were 'true' and blocked the model AND orchestrators from self-routing (status, plugin-check, analyze, onboard, refactor, init-project, pdf-translate, ship-feature) — contradicting the CLAUDE.md skill-routing rules. The other 11 were 'false', a no-op noise line. The setting is binary (no per-caller granularity), so enabling orchestrator chaining also enables model auto-fire — accepted. Genuinely destructive operations remain guarded by the careful/guard hooks, independent of this flag. Capitalized: BDR-019 (decision), LRN-026 (learning), journal 2026-06-09. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
29 lines
869 B
Markdown
29 lines
869 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>
|
|
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
|