How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Focused Fix (Engineering domain).

Constrain 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.

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 

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/focused-fix

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/focused-fix ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/focused-fix your-project/
# The skill is available in your Codex workspace at:
.codex/skills/focused-fix/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/focused-fix your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/focused-fix/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/focused-fix your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/focused-fix/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/focused-fix your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/focused-fix your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/focused-fix

Run Python Tools

python engineering/focused-fix/scripts/tool_name.py --help

Quick Start

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

Related Skills in Engineering

View on GitHub