text
| 1 | # Python Style Rules |
| 2 | |
| 3 | Python lets an agent write something that runs and is still wrong: a bare `except` that |
| 4 | hides a typo, a mutable default that accumulates across calls, a dependency added for |
| 5 | one function. These rules target the mistakes that survive a passing test run. |
| 6 | |
| 7 | ## When to use |
| 8 | |
| 9 | - Any project where an agent writes or edits Python. |
| 10 | - Alongside a formatter and linter, which handle layout. These handle judgment. |
| 11 | - As the standard for reviewing Python an agent produced. |
| 12 | |
| 13 | ## Install |
| 14 | |
| 15 | ```bash |
| 16 | npx openagents-cli add openagents/python-style-rules |
| 17 | ``` |
| 18 | |
| 19 | | Runtime | Installed to | |
| 20 | |---|---| |
| 21 | | `claude-code` | `.claude/skills/python-style-rules/` | |
| 22 | | `cursor` | `.cursor/rules/python-style-rules/` | |
| 23 | | `codex` | `.codex/skills/python-style-rules/` | |
| 24 | | `generic` | `.openagents/python-style-rules/` | |
| 25 | |
| 26 | ## What is in the package |
| 27 | |
| 28 | - `RULES.md` - the rules, each with the failure it prevents. |
| 29 | - `review-checklist.md` - a short pass over a diff before calling it done. |
| 30 | |
| 31 | ## License |
| 32 | |
| 33 | MIT |
| 34 |