python-anti-patterns

Identify Python anti-patterns in codebases and provide categorized fixes.

2|2|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/NorkzYT/claude-code-autopilot --skill python-anti-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-anti-patterns
Source: https://github.com/NorkzYT/claude-code-autopilot/tree/main/.claude/skills/python-anti-patterns
Command: npx skills add https://github.com/NorkzYT/claude-code-autopilot --skill python-anti-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers to spot and avoid common Python anti-patterns in code, helping teams improve readability, reliability, and maintainability during reviews, refactoring, and mentoring.

Core Features & Use Cases

  • Checklist-style review: Surface classic Python anti-patterns across common categories (scattered configuration, hard-coded values, bare exception handling, mixed I/O and logic, and blocking in async code).
  • Structured guidance: Provide clear fixes and coding patterns to replace anti-patterns with robust alternatives.
  • Use Case: During code reviews, onboarding, or education sessions, run this Skill against a Python project to quickly surface high-risk patterns and recommended improvements.

Quick Start

Run this skill against a Python project to generate a prioritized anti-pattern report with fixes and code examples.

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 Python anti-patterns in my codebase?

Run an analysis against your codebase to surface categorized Python anti-patterns like bare exception handling and mixed I/O logic. This generates a prioritized report with concrete fixes and code examples to improve code quality and maintainability.

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

Common Python anti-patterns to check during code review include scattered configuration, hard-coded values, bare exception handling, mixed I/O and logic, and blocking in async code. These patterns are surfaced with structured guidance for replacing them with robust alternatives.

Can I use this Python anti-pattern analysis for onboarding and mentoring?

Yes, you can use this Python anti-pattern analysis for onboarding and education sessions. It quickly surfaces high-risk patterns and recommended improvements, providing clear fixes and coding patterns to help new developers apply best practices efficiently.

What is the best way to fix bare exception handling in Python?

The best way to fix bare exception handling in Python is to replace it with robust alternatives using structured guidance. The analysis provides categorized anti-patterns with concrete fixes and code examples, enabling teams to refactor efficiently and improve reliability.

Does this Python anti-pattern checker work with async code?

Yes, this Python anti-pattern checker works with async code by specifically identifying blocking operations within async functions. It surfaces these high-risk patterns and delivers concrete fixes to help teams refactor and apply best practices for maintainable code.

Why does my Python refactoring effort surface hard-coded values as an anti-pattern?

Hard-coded values surface as an anti-pattern during Python refactoring because they reduce readability and maintainability. The analysis identifies these scattered configuration issues and provides concrete fixes with code examples to replace them with robust alternatives.