python-anti-patterns

Identify Python anti-patterns and provide fixes for code reviews.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sadroad/.dotfiles --skill python-anti-patterns-sadroad
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-anti-patterns
Source: https://github.com/sadroad/.dotfiles/tree/main/modules/home-manager/opencode/skills/python-anti-patterns
Command: npx skills add https://github.com/sadroad/.dotfiles --skill python-anti-patterns-sadroad

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Code Review Checklist: Provides a comprehensive list of anti-patterns across infrastructure, architecture, error handling, resource management, type safety, and testing.
  • Debugging Aid: Helps pinpoint issues that might stem from known bad practices.
  • Learning Resource: Serves as a guide for writing better Python code.
  • Use Case: Before merging a new feature, run through this checklist to ensure the code adheres to best practices and avoids common mistakes.

Quick Start

Review the provided Python code against the checklist to identify potential anti-patterns.

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 to check for during a code review?

Common Python anti-patterns span infrastructure, architecture, error handling, resource management, type safety, and testing. Reviewing code against a comprehensive checklist helps identify these bad practices to ensure cleaner, more robust, and maintainable software.

How do I fix Python error handling and resource management anti-patterns?

Fixing Python error handling and resource management anti-patterns involves identifying known bad practices during debugging and applying provided code examples and solutions. This process promotes best practices for writing robust, maintainable code.

How do I use a Python anti-patterns checklist to debug my code?

To debug Python code, review your implementation against a comprehensive anti-patterns checklist covering architecture, type safety, and testing. This helps pinpoint issues stemming from known bad practices and provides targeted solutions and fixes.

Does this Python code review checklist cover type safety and testing best practices?

Yes, the Python code review checklist explicitly covers type safety and testing anti-patterns. It provides solutions and code examples across various development domains to promote best practices for writing cleaner, more robust code.

What is the best way to avoid Python architecture anti-patterns when adding new features?

The best way to avoid Python architecture anti-patterns is to run your new feature code through a comprehensive checklist before merging. This ensures the implementation adheres to best practices and avoids common infrastructure and architecture mistakes.