Add explicit fallback when refactorer.md unreachable (D3 edge case). Add triggers to frontmatter for routing (D1). Size: 379B → 493B (+30%, under 150% cap). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
493 B
493 B
name: refactor
description: Improve code quality without changing behavior — strict norm enforcement. Triggers: "refactor", "clean up code", "normaliser".
argument-hint: <file, function, or module to refactor>
disable-model-invocation: true
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
Load and follow strictly: $HOME/.claude/agents/refactorer.md.
If unreachable, emit Refactorer agent missing. and STOP. Never improvise — silent behavior change is unsafe.
$ARGUMENTS