python-anti-patterns

Identifies Python anti-patterns in infrastructure, architecture, error handling, resource management, type safety, and testing for code reviews and debugging.

1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/vimalkodoth/fastapi-cursor-starterkit --skill python-anti-patterns-vimalkodoth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-anti-patterns
Source: https://github.com/vimalkodoth/fastapi-cursor-starterkit/tree/main/.cursor/skills/python-anti-patterns
Command: npx skills add https://github.com/vimalkodoth/fastapi-cursor-starterkit --skill python-anti-patterns-vimalkodoth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers identify and avoid common pitfalls and anti-patterns in Python code, leading to more maintainable, efficient, and bug-free applications.

Core Features & Use Cases

  • Code Review Checklist: Provides a comprehensive list of anti-patterns to check for during code reviews.
  • Debugging Aid: Helps pinpoint common sources of bugs related to poor coding practices.
  • Learning Resource: Educates developers on best practices and what to avoid in Python.
  • Use Case: Before merging a new feature, a developer can consult this Skill's checklist to ensure no anti-patterns were introduced, such as bare exception handling or blocking calls in async code.

Quick Start

Review the attached Python code file for common anti-patterns using this skill.

Frequently Asked Questions about python-anti-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are common Python anti-patterns I should check for during a code review?

Common Python anti-patterns include bare exception handling, scattered retry logic, exposed internal types, and blocking calls in async code. Reviewing for these issues ensures code is maintainable, efficient, and robust before merging new features.

How do I fix bare exception handling and blocking calls in async Python code?

Fixing bare exception handling and blocking in async Python code requires identifying these anti-patterns as violations of resource management and type safety. Applying best practices eliminates poor coding practices that cause application bottlenecks and hidden errors.

Why does my Python code have hidden bugs and poor maintainability?

Python code often has hidden bugs due to anti-patterns like poor error handling, scattered retry logic, and blocking in async functions. Identifying and refactoring these common pitfalls leads to more maintainable, efficient, and bug-free applications.

Can I use a Python anti-patterns checklist for debugging infrastructure and architecture issues?

Yes, you can use a Python anti-patterns checklist for debugging infrastructure, architecture, error handling, resource management, type safety, and testing issues. It serves as a comprehensive aid to pinpoint common sources of bugs related to poor coding practices.

What is the best way to avoid scattered retry logic and exposed internal types in Python?

The best way to avoid scattered retry logic and exposed internal types in Python is to consult a dedicated anti-patterns checklist during development. This practice promotes best practices across architecture and infrastructure, ensuring robust type safety and resource management.