Skip to content

borghei/Claude-Skills / engineering/focused-fix

focused-fix

Verified

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.

assets/sample_focused.diff

View on GitHub
diff --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 ("ana+news@"): they are distinct mailboxes for many providers.
     return f"{local}@{domain.lower()}"


diff --git a/tests/test_email.py b/tests/test_email.py
index 1a2b3c4..5d6e7f8 100644
--- a/tests/test_email.py
+++ b/tests/test_email.py
@@ -30,3 +30,7 @@ def test_domain_is_lowercased():
     assert normalize_email("Ana@EXAMPLE.com") == "Ana@example.com"
+
+
+def test_plus_address_is_kept():
+    assert normalize_email("ana+news@example.com") == "ana+news@example.com"
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall