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: home/.claude/skills/review/SKILL.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,13 @@ If you find yourself wanting to report any of the above, **stop and reconsider**
170
170
2. Find constants used exactly once
171
171
3. Find defensive validation for impossible cases (e.g., type checking after isinstance)
172
172
4. Find wrapper functions that add no value
173
-
5. For each issue, verify the simplified version has fewer lines
173
+
5. Find overly complex conditional branching
174
+
- Deeply nested if/else (arrow anti-pattern) that can be flattened with early returns/guard clauses
175
+
- Long if/elif chains replaceable with lookup tables or dictionary dispatch
176
+
- Boolean expressions that can be simplified (e.g., `if x == False` → `if not x`, redundant conditions)
177
+
6. Find unnecessary intermediate variables
178
+
- Variables assigned once and immediately returned or used on the next line with no added clarity (e.g., `result = foo(); return result` → `return foo()`)
179
+
7. For each issue, verify the simplified version has fewer lines
0 commit comments