python-anti-patterns

Identify Python anti-patterns and coding mistakes during code reviews.

4|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill python-anti-patterns-ai-foundry-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-anti-patterns
Source: https://github.com/AI-Foundry-Core/ril-agents/tree/main/plugins/python-development/skills/python-anti-patterns
Command: npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill python-anti-patterns-ai-foundry-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python code often falls into common anti-patterns that hinder readability, reliability, and maintainability. This Skill provides a practical checklist to spot and avoid these mistakes during development, reviews, and refactoring.

Core Features & Use Cases

  • Comprehensive catalog of Python anti-patterns across infrastructure, architecture, error handling, resources, type safety, and testing.
  • Concrete examples showing bad and good practices to learn from and apply.
  • Use Case: Use during code reviews to flag issues before merge and to guide refactoring of legacy code.

Quick Start

Run this checklist during code reviews to identify and correct Python anti-patterns before merging.

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 during code review?

Common Python anti-patterns span infrastructure, architecture, error handling, resource management, type safety, and testing categories. Reviewing for these specific coding mistakes enforces standards and improves code quality before merging.

How do I identify bad Python coding practices when refactoring legacy code?

Identify bad Python coding practices by applying a categorized checklist of anti-patterns with concrete examples. Comparing bad and good practices guides refactoring efforts to improve readability, reliability, and maintainability.

Can I use a Python anti-patterns checklist for onboarding new developers?

Yes, a Python anti-patterns checklist supports onboarding by showing concrete examples of bad and good practices. New developers learn to spot common coding mistakes and enforce project standards during reviews.

What is the best way to enforce Python code quality standards before a merge?

The best way to enforce Python code quality is running a structured anti-patterns checklist during code reviews. Flagging issues across error handling, type safety, and testing prevents common mistakes from entering the codebase.

Why does my Python code fail type safety and error handling standards?

Python code fails type safety and error handling standards when common anti-patterns are present. A categorized checklist identifies these specific mistakes and provides concrete examples to guide corrections during debugging.