borghei/Claude-Skills / engineering/focused-fix
focused-fix
VerifiedConstrain a bugfix to the smallest reviewable change: reproduce, patch, add a regression test, check the diff for scope creep. Use when asked for a minimal fix, hotfix or release-blocker; diagnose unknown causes with bug-diagnosis.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.4 KB |
| assets/sample_focused.diff | other | 827 B |
| assets/sample_sprawling.diff | other | 1.4 KB |
| evals/README.md | markdown | 1.0 KB |
| evals/grader.py | script | 5.9 KB |
| evals/runner.py | script | 7.7 KB |
| evals/test_cases.json | config | 3.1 KB |
| references/focused-fix-methodology.md | markdown | 3.0 KB |
| scripts/change_scope_analyzer.py | script | 15.5 KB |
| scripts/diff_scope_check.py | script | 6.8 KB |
evals/README.md
View on GitHub# Evals — focused-fix
Drop-in eval harness for the `focused-fix` skill. See `../../../templates/evals-template/README.md` for the general pattern.
## What these cases cover
| Case | Tests |
|------|-------|
| `minimal-scope-basic` | Skill identifies a minimal change set and requires a regression test, doesn't pivot to a refactor |
| `reject-scope-creep` | Skill holds the line on the "while I'm here" anti-pattern, recommends a separate PR |
| `structural-fix-escalation` | Skill treats analyzer-reported "structural" scope as a halt condition, not advice |
| `missing-regression-test` | Skill refuses to skip the regression test on a one-line fix |
## Running
```bash
# Static validation (no model needed)
python evals/runner.py --skill ../
# Graded mode (after an external harness captures outputs)
python evals/grader.py --candidate candidate.json --format text
```
`runner.py` and `grader.py` are copied from `templates/evals-template/evals/` and not modified for this skill — keep them in sync with the template.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |