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 |
assets/sample_sprawling.diff
View on GitHubdiff --git a/src/auth/email.py b/src/auth/email.py
index 3b1c2d4..8f9e0a1 100644
--- a/src/auth/email.py
+++ b/src/auth/email.py
@@ -12,7 +12,7 @@ def normalize_email(raw: str) -> str:
"""Lower-case the domain and strip whitespace."""
local, _, domain = raw.strip().partition("@")
- local = local.split("+")[0]
+ # Keep sub-addresses.
return f"{local}@{domain.lower()}"
diff --git a/src/auth/session.py b/src/auth/session.py
index 7c8d9e0..1f2a3b4 100644
--- a/src/auth/session.py
+++ b/src/auth/session.py
@@ -40,6 +40,6 @@ class Session:
def refresh(self):
- if self.expired():
- self.token = issue()
+ if self.expired() :
+ self.token = issue( )
return self.token
diff --git a/src/billing/invoice.py b/src/billing/invoice.py
index 2a3b4c5..6d7e8f9 100644
--- a/src/billing/invoice.py
+++ b/src/billing/invoice.py
@@ -88,4 +88,5 @@ def total(lines):
- return sum(l.amount for l in lines)
+ subtotal = sum(l.amount for l in lines)
+ return round(subtotal, 2)
diff --git a/src/ui/banner.py b/src/ui/banner.py
index 0a1b2c3..4d5e6f7 100644
--- a/src/ui/banner.py
+++ b/src/ui/banner.py
@@ -5,3 +5,3 @@
-TITLE = "Welcome back"
+TITLE = "Welcome back!"
diff --git a/requirements.txt b/requirements.txt
index 9a8b7c6..5d4e3f2 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,3 +3,3 @@
-requests==2.31.0
+requests==2.32.3
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 |