python-anti-patterns

Installation
Summary

Common Python anti-patterns to catch during code review and debugging.

  • Covers 14+ anti-patterns across infrastructure, architecture, error handling, resources, type safety, and testing with before/after code examples
  • Includes a quick review checklist and summary table for fast reference during code reviews
  • Focuses on practical fixes: centralized retry logic, DTOs, repository pattern, specific exception handling, and async-native libraries
  • Emphasizes validation at API boundaries, context managers for resources, and comprehensive test coverage beyond happy paths
SKILL.md

Python Anti-Patterns Checklist

A reference checklist of common mistakes and anti-patterns in Python code. Review this before finalizing implementations to catch issues early.

When to Use This Skill

  • Reviewing code before merge
  • Debugging mysterious issues
  • Teaching or learning Python best practices
  • Establishing team coding standards
  • Refactoring legacy code

Note: This skill focuses on what to avoid. For guidance on positive patterns and architecture, see the python-design-patterns skill.

Infrastructure Anti-Patterns

Scattered Timeout/Retry Logic

Related skills

More from wshobson/agents

Installs
6.7K
Repository
wshobson/agents
GitHub Stars
35.2K
First Seen
Jan 30, 2026