From 9a992a0186a17f6afda66f29e3e33950c15f59f0 Mon Sep 17 00:00:00 2001 From: bastien Date: Tue, 12 May 2026 17:55:39 +0200 Subject: [PATCH] =?UTF-8?q?optimize=20refactor:=20round=201=20=E2=80=94=20?= =?UTF-8?q?D3=20fallback=20+=20D1=20triggers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- skills/refactor/SKILL.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/skills/refactor/SKILL.md b/skills/refactor/SKILL.md index 7d0fc3a..115b8f6 100644 --- a/skills/refactor/SKILL.md +++ b/skills/refactor/SKILL.md @@ -1,14 +1,13 @@ --- name: refactor -description: Improve code quality without changing behavior — strict norm enforcement +description: Improve code quality without changing behavior — strict norm enforcement. Triggers: "refactor", "clean up code", "normaliser". argument-hint: disable-model-invocation: true allowed-tools: Read, Write, Edit, Grep, Glob, Bash --- -Load and follow strictly: -- $HOME/.claude/agents/refactorer.md +Load and follow strictly: `$HOME/.claude/agents/refactorer.md`. -Execute the REFACTORER agent on the following target: +If unreachable, emit `Refactorer agent missing.` and STOP. Never improvise — silent behavior change is unsafe. $ARGUMENTS