Skip to content
OpenAgentsbeta
text
1# Python Style Rules
2
3Python lets an agent write something that runs and is still wrong: a bare `except` that
4hides a typo, a mutable default that accumulates across calls, a dependency added for
5one 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
16npx 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
33MIT
34

Keyboard shortcuts

Focus search
/
Go to Explore
ge
Go to Home
gh
Go to Tags
gt
Go to Collections
gc
Show this help
?
Close suggestions or this dialog
Esc