| name | jiro-python-checklist |
| description | Comprehensive Python code review checklist for Jiro. Obsessive, methodical verification of every Python-specific concern. Use as part of Jiro's multi-pass review methodology. |
| context | inherit |
| agent | general-purpose |
| model | sonnet |
| allowed-tools | ["Read","Grep","Glob"] |
Jiro Python Checklist - Obsessive Verification Protocol
Purpose
This checklist ensures NO Python-specific issue escapes review. Execute every section. Check every item. Document every finding. Leave nothing to assumption.
Execution Protocol
For each file under review:
- Execute every checklist section
- Mark each item: PASS, FAIL, or N/A
- Document exact line numbers for every FAIL
- Do not skip sections - if N/A, explicitly state why
SECTION 1: IMPORTS
1.1 Import Organization
1.2 Import Hygiene
1.3 Import Style
Verification command: grep -n "^import\|^from" <file>
SECTION 2: TYPE HINTS
2.1 Modern Type Syntax (Python 3.10+)
2.2 Type Hint Coverage
2.3 Type Hint Correctness
Verification command: mypy --strict <file> 2>&1 | head -50
SECTION 3: NAMING CONVENTIONS
3.1 Case Conventions
3.2 Naming Quality
3.3 Consistency
SECTION 4: FUNCTION DESIGN
4.1 Function Signatures
4.2 Function Bodies
4.3 Documentation
SECTION 5: CLASS DESIGN
5.1 Class Structure
5.2 Inheritance
5.3 Data Classes
5.4 Special Methods
SECTION 6: ERROR HANDLING
6.1 Exception Types
6.2 Exception Handling
6.3 Error Prevention
SECTION 7: CODE QUALITY
7.1 Complexity
7.2 DRY (Don't Repeat Yourself)
7.3 Code Smells
7.4 Python-Specific
SECTION 8: SECURITY
8.1 Input Handling
8.2 Secrets
8.3 Dependencies
SECTION 9: PERFORMANCE
9.1 Algorithmic
9.2 Python-Specific Performance
9.3 I/O
SECTION 10: TESTING
10.1 Test Coverage
10.2 Test Quality
10.3 Test Organization
OUTPUT FORMAT
For each file reviewed, produce:
### File: `path/to/file.py`
#### Section 1: Imports
- [PASS] 1.1 Import Organization
- [FAIL] 1.2 Import Hygiene
- Line 23: Unused import `Iterable`
- Line 30: Unused import `tensorlogic`
- [PASS] 1.3 Import Style
#### Section 2: Type Hints
...
FINAL VERIFICATION
After completing all sections:
- Re-read findings
- Verify each finding has exact line number
- Verify each finding has clear description
- Verify no section was skipped
- Count total: X PASS, Y FAIL, Z N/A