PlugWiki

python-anti-patterns skill (wshobson) for Claude Code: a Python review checklist

python-anti-patterns gives Claude a checklist of common Python mistakes to look for when it reviews or writes code.

Installs
13.6K
on skills.sh
Stars
42.1K
on GitHub
Updated
Oct 2026
last repo commit

python-anti-patterns is a skill from wshobson/agents. Claude uses it when you review Python before a merge, debug odd behavior or refactor legacy code. Entries in SKILL.md show a BAD example, a GOOD example and a short fix (the over-mocking entry has a fix but no code example), grouped into infrastructure, architecture, error handling, resources, type safety and testing.

The skill ends with a 14-item review checklist and a fix summary table. It covers what to avoid. For positive patterns and architecture, SKILL.md points to the python-design-patterns skill. It is one file and bundles no scripts.

Good for

  • Developers reviewing Python pull requests
  • Teams setting Python coding standards
  • People refactoring legacy Python

Install python-anti-patterns

Claude Code

  1. 1

    Copy this prompt.

    Install the python-anti-patterns skill in Claude Code. Run this command:
    
    npx skills add wshobson/agents --skill python-anti-patterns
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

Built from the package data we hold. Not yet tested by us. Source.

What's in the skill

When it loads

Use this skill when reviewing Python code for common anti-patterns to avoid. Use as a checklist when reviewing code, before finalizing implementations, or when debugging issues that might stem from known bad practices.

Sections in SKILL.md

  1. When to Use This Skill
  2. Infrastructure Anti-Patterns
  3. Scattered Timeout/Retry Logic
  4. Double Retry
  5. Hard-Coded Configuration
  6. Architecture Anti-Patterns
  7. Exposed Internal Types
  8. Mixed I/O and Business Logic
  9. Error Handling Anti-Patterns
  10. Bare Exception Handling
  11. Ignored Partial Failures
  12. Missing Input Validation
  13. Resource Anti-Patterns
  14. Unclosed Resources
  15. Blocking in Async
  16. Type Safety Anti-Patterns

Key facts

Source repo
wshobson/agents
Installs on skills.sh
13,584 as of 2026-11-02
License
MIT
Last repo commit
2026-10-30

What it includes

  • Scattered timeout/retry logic, double retry, hard-coded configuration.

    Infrastructure anti-patterns

  • Exposed internal types (ORM models) and mixed I/O with business logic.

    Architecture anti-patterns

  • Bare exception handling, ignored partial failures, missing input validation.

    Error handling anti-patterns

  • Unclosed resources and blocking calls inside async code.

    Resource anti-patterns

  • Missing type hints and untyped collections.

    Type safety anti-patterns

  • Only testing happy paths and over-mocking.

    Testing anti-patterns

  • 14 yes/no checks to run before finalizing code, plus a fix summary table.

    Quick review checklist

From the official docs

Permissions

Low risk

This skill is Markdown instructions with no bundled scripts. The plugin route installs more than the skill, so pick the skills CLI command if you want only this one.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • The plugin route adds more than this skill

    The python-development plugin folder holds 16 skills, 3 agent file(s) and 1 command file(s), plus plugin.json files. The repo tree shows no hooks or MCP config in it. The skills CLI route installs only this skill. github.com

Questions

How do I install the python-anti-patterns skill?

Use the install box above. The skills CLI command installs only this skill. The plugin route installs python-development, which also holds 15 other skills, three agent files and a command file.

What does python-anti-patterns check?

It lists 14 anti-patterns in six groups: infrastructure, architecture, error handling, resources, type safety and testing. Each has a bad example and a fix; all but over-mocking also have a good example. The groups are named in the tool list above.

Does it need an API key or any Python packages?

The skill is one Markdown file and bundles no scripts, and it mentions no API key. The code samples refer to libraries such as pydantic-settings, httpx and pytest that your own project would need.

python-anti-patterns vs python-design-patterns?

SKILL.md says python-anti-patterns focuses on what to avoid. For positive patterns and architecture it points to the python-design-patterns skill, which lives in the same python-development plugin folder.

Does it work in the Claude app or Codex?

The install box lists a zip upload for the Claude app and a plugin route for Codex. The wshobson/agents README names Claude Code, Codex CLI, Cursor, OpenCode, Antigravity CLI, GitHub Copilot and Pi as supported tools.

Is python-anti-patterns safe to install?

The skill is a single Markdown file with no scripts, so installing it alone adds instructions only. The plugin route adds more skills, agents and a command, listed in the safety section.

Information

updated Nov 2, 2026

Repository
wshobson/agents
Folder
plugins/python-development/skills/python-anti-patterns

wshobson/agentsskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 5
  1. wshobson/agents README · github.com
  2. Claude Code skills · code.claude.com
  3. Using skills in Claude · support.claude.com
  4. python-anti-patterns SKILL.md · github.com
  5. python-anti-patterns on skills.sh · skills.sh

Updated Nov 2, 2026.