python-best-practices
Installation
SKILL.md
Python Best Practices (Production-Ready)
Production-grade DOs and DON'Ts for Python 3.12+.
Quick Reference
| Topic | Key Principle |
|---|---|
| Code Quality | Readable > clever |
| Type Hints | Type everything public |
| Error Handling | Catch specific, never silent |
| Async/Await | Never block the event loop |
| Testing | Test behavior, not implementation |
| Security | Never trust input |
| Project Structure | Use src layout |
| Performance | Measure first, optimize bottlenecks |
| Logging | Structured logs, appropriate levels |
| Data Validation | Validate at boundaries |
| Code Review | Blockers vs improvements |