python-anti-patterns

Analyze Python code for common anti-patterns and suggest refactors.

1|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/haxlys/skills --skill python-anti-patterns-haxlys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-anti-patterns
Source: https://github.com/haxlys/skills/tree/main/vendored/wshobson-agents/plugins/python-development/skills/python-anti-patterns
Command: npx skills add https://github.com/haxlys/skills --skill python-anti-patterns-haxlys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Review Python code for common anti-patterns to improve quality, readability, and maintainability by surfacing risky patterns before they become defects.

Core Features & Use Cases

  • Checklist-style review of common anti-patterns across infrastructure, architecture, error handling, resources, and type safety.
  • Guidance for targeted refactoring and adoption of best practices to reduce bugs and improve code health.
  • Real-world scenarios for code review, debugging, onboarding, and knowledge transfer.

Quick Start

Review a Python file and return a checklist of detected anti-patterns with suggested refactors.

Frequently Asked Questions about python-anti-patterns

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

FAQPage Schema
How do I check my Python code for anti-patterns?

Check Python code for anti-patterns by applying static analysis to source files to identify risky patterns across imports, control flow, error handling, and data validation. This process highlights code quality issues and provides suggested best-practice rewrites.

What are common Python anti-patterns I should look for during code review?

Common Python anti-patterns span infrastructure, architecture, error handling, resources, and type safety. Identifying these risky patterns during code review helps surface defects early and provides guidance for targeted refactoring to improve overall code health.

Does this Python anti-patterns analysis require external services or dependencies?

Python anti-patterns analysis requires no external services or dependencies. It relies entirely on static analysis of code patterns within the local environment, making it suitable for quick quality signals during debugging and code review without external setup.

How do I refactor Python code to fix detected anti-patterns?

Refactor Python code to fix detected anti-patterns by applying the suggested best-practice rewrites generated during static analysis. This targeted refactoring guidance helps reduce bugs and improve readability, maintainability, and overall code health.

What is the best way to use static analysis for Python code review?

The best way to use static analysis for Python code review is to scan for common anti-patterns across infrastructure, error handling, and type safety to generate a checklist of detected issues. This approach provides quick quality signals for onboarding and knowledge transfer.