You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workflows/bugfix/.claude/skills/fix/SKILL.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,29 +59,50 @@ Before finalizing the implementation, ensure thoroughness:
59
59
-**Check for complete enumeration**: If implementing switch/case logic or conditional checks, verify you've handled all possible values. Search the codebase for where these values are defined or used.
60
60
-**Example**: If implementing polling that stops on "terminal" session phases, search the codebase for all usages of session phases to build a complete list (Stopped, Completed, Failed, Error) rather than assuming you know them all.
61
61
62
-
### Step 4: Address Related Code
62
+
### Step 4: Review Error Handling UX
63
+
64
+
If your fix involves error handling, validation, or user-facing messages,
65
+
review the error paths for clarity:
66
+
67
+
-**Match error context to error type.** A CLI argument error should use the
68
+
CLI framework's error type (e.g., `click.BadParameter`), while a
69
+
configuration file error should use a general exception that says which file
70
+
and line caused the problem. Don't report config file errors as CLI parameter
71
+
errors, or vice versa.
72
+
-**Test every error path manually.** Trigger each error condition and read the
73
+
message from the user's perspective. Is it clear what went wrong? Does it
74
+
point to the right place to fix it?
75
+
-**Consider different error contexts:**
76
+
- CLI errors → should reference the flag or argument
77
+
- Config file errors → should reference the file path and setting
78
+
- Runtime errors → should include enough context to reproduce
79
+
- API errors → should include the endpoint and status code
0 commit comments