From 5710b7865549b923467f5e4b1056e040273fc6aa Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 6 May 2026 21:59:52 -0500 Subject: chore(commands): mark user-invoked commands disable-model-invocation Add disable-model-invocation: true to the user-triggered slash commands so the harness drops their descriptions from the model's preloaded skill listing while keeping / routing intact. Skills meant for model recommendation (add-tests, debug, five-whys, frontend-design, humanizer, pairwise-tests, playwright-js, playwright-py, root-cause-trace) are unchanged. --- .claude/commands/refactor.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.claude/commands/refactor.md') diff --git a/.claude/commands/refactor.md b/.claude/commands/refactor.md index 57acd5e..ce3aaaa 100644 --- a/.claude/commands/refactor.md +++ b/.claude/commands/refactor.md @@ -1,6 +1,7 @@ --- -description: Scan code for refactoring opportunities or perform targeted refactoring operations +description: Scan code for refactoring opportunities or perform a targeted refactor. Six modes — `full` (default; complexity + duplication + dead-code scans), `quick` (high-severity findings only), `complexity` (length / nesting / cyclomatic / parameter count / boolean ops with severity bands and techniques like guard clauses, extract method/predicate, parameter object, decompose conditional), `duplication` (clones / logic / constants / patterns / error-handling with extract-function / parameterize / template-method strategies), `dead-code` (imports / exports / branches / feature flags / deps with high/medium/low confidence labels), `rename old new` (codebase-wide symbol rename with reference search, preview gate, atomic commit, post-apply verification). Findings render as `[SEVERITY] Category — File / Metric / Issue / Suggestion` blocks plus a summary table and quick-wins. Structure-only — no feature work mixed in, no auto-apply without confirmation, characterization tests first when coverage is missing, small focused commits. Use for cleanup or wide renames. Do NOT use for behavior changes (`fix:` or `feat:`, not refactor), green-field design (use `/arch-design`), or single-symbol single-file renames (just edit). Companion to `/add-tests` for the characterization-test prereq. argument-hint: "[scope: full|quick|complexity|duplication|dead-code|rename old new]" +disable-model-invocation: true --- # /refactor — Code Refactoring Skill -- cgit v1.2.3