/engineering-advanced-skills:focused-fixfrom engineering-advanced-skills
Constrains bugfixes to the smallest reviewable change: reproduce with a failing test, patch the root cause, add a regression test, and check the diff for scope creep. Use for hotfixes, release-blockers, or any fix where minimal diff matters.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The agent fixes the reported bug and nothing else: a reproduction, the smallest change that makes it pass, a regression test, and a diff that a reviewer can read in a minute. Small fixes are easier to review, safer to roll back and less likely to hide a second regression.
This skill starts once the cause is known or close to known. When the cause is still a mystery (intermittent failures, no stack trace), run engineering/bug-diagnosis first and come back with a confirmed cause.
Before scoping the fix, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
--allow for the scope check).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
grep for the failing function and its callers, and git log -p on the suspect file. change_scope_analyzer.py can suggest candidate files from the bug text when there is nothing better to go on; treat its list as a hint.diff_scope_check.py: file and line budget, files outside the expected scope, whitespace-only hunks, bundled dependency changes, and whether a test changed.Check a fix before opening the PR, from a saved diff:
python3 scripts/diff_scope_check.py --diff assets/sample_focused.diff --allow 'src/auth/*' # focused (exit 0)
python3 scripts/diff_scope_check.py --diff assets/sample_sprawling.diff --allow 'src/auth/*' # 5 findings (exit 1)
Or straight from git, as a pre-PR checklist step:
git diff main...HEAD | python3 scripts/diff_scope_check.py --diff - --format json
Optional, when there is no stack trace to start from:
python3 scripts/change_scope_analyzer.py --bug "Login fails when email has + character" --path ./src
| Tool | What it does | Key flags | Exit codes |
|---|---|---|---|
diff_scope_check.py | Reads a unified diff; flags non-test files over budget, lines over budget, files outside --allow, whitespace-only hunks, lockfile/manifest changes bundled with code, and a missing test change | --diff <file or ->, --allow <globs>, --max-files, --max-lines, --no-test-required, `--format text | json` |
change_scope_analyzer.py | Keyword and import heuristics from the bug text to rank candidate files, estimate scope and risk | --bug, --path, --extensions, `--format human | json` |
change_scope_analyzer.py matches words in the bug text against file names and contents. It misses dynamic dispatch, reflection and config-driven paths, and it can rank files on generic words ("fails"). Prefer evidence (traces, tests, git history) over its ranking.
Mistake: "While I'm here" refactors in the bugfix PR.
Why it happens: The surrounding code is in view and looks improvable.
Instead: Note it and open a separate refactor: PR. Mixed PRs multiply review time and mask regressions behind the real fix.
Mistake: Reformatting the files you touch.
Why it happens: Format-on-save or habit.
Instead: Revert formatting-only hunks before committing; diff_scope_check.py lists them.
Mistake: Skipping the regression test because the fix is obvious. Why it happens: A one-line change feels self-evidently right. Instead: Every fix ships a test that failed before it. Obvious bugs come back during later refactors.
Mistake: Fixing the symptom in the wrong layer. Why it happens: The first place the error shows is the easiest to patch. Instead: Trace to where the bad value is produced and fix it there; otherwise the bug returns in a new form.
Mistake: Bundling the fix with a dependency upgrade. Why it happens: The upgrade seemed related. Instead: Land the upgrade separately so either change can be rolled back alone.
scripts/diff_scope_check.py, scripts/change_scope_analyzer.py — the tools above.assets/sample_focused.diff (one source file plus a test), assets/sample_sprawling.diff (five files, formatting noise, a dependency bump, no test).evals/ — prompt cases and a grader for this skill's behaviour.assets/sample_focused.diff (opens in a new tab)assets/sample_sprawling.diff (opens in a new tab)evals/README.md (opens in a new tab)evals/grader.py (opens in a new tab)evals/runner.py (opens in a new tab)evals/test_cases.json (opens in a new tab)references/focused-fix-methodology.md (opens in a new tab)scripts/change_scope_analyzer.py (opens in a new tab)scripts/diff_scope_check.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bugfix, minimal-change, scope-analysis, regression-test, hotfix
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job