python-anti-patterns

Identify common Python anti-patterns like mutable default arguments and late binding.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/bingeli1379/eli-marketplace --skill python-anti-patterns-bingeli1379
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-anti-patterns
Source: https://github.com/bingeli1379/eli-marketplace/tree/main/plugins/sdd-python/skills/python-anti-patterns
Command: npx skills add https://github.com/bingeli1379/eli-marketplace --skill python-anti-patterns-bingeli1379

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers identify and avoid common anti-patterns in Python code, improving code quality and maintainability.

Core Features & Use Cases

  • Anti-Pattern Identification: Detects common coding mistakes such as mutable default arguments, late binding, and broad exception handling.
  • Review Checklist: Provides a comprehensive checklist for code reviews to catch issues early.
  • Use Case: Use this Skill to perform a code review on a new feature or to refactor legacy code to adhere to Python best practices.

Quick Start

Run the python-anti-patterns skill on your codebase 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
How do I identify common Python anti-patterns in my codebase?

To identify Python anti-patterns, analyze your codebase for common coding pitfalls like mutable default arguments and late binding. This process detects these patterns to enhance code quality and maintainability during reviews or refactoring.

What are common Python coding pitfalls to avoid for better code quality?

Common Python coding pitfalls to avoid include mutable default arguments, late binding, and broad exception handling. Identifying and removing these anti-patterns significantly improves your code quality and overall maintainability.

How do I review Python code for mutable default arguments and late binding?

Review Python code for mutable default arguments and late binding by applying a comprehensive checklist to catch these specific issues early. This analysis flags anti-patterns to ensure adherence to Python best practices.

Can I use an anti-pattern analysis to refactor legacy Python code?

Yes, you can use anti-pattern analysis to refactor legacy Python code. By identifying common coding mistakes such as broad exception handling, the process guides your refactoring efforts to align with Python best practices.

What is the best way to catch broad exception handling in Python code?

The best way to catch broad exception handling in Python code is to run a targeted anti-pattern analysis. This identifies broad exceptions alongside other common pitfalls, providing a checklist to improve code quality.