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
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
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
- When to Use This Skill
- Infrastructure Anti-Patterns
- Scattered Timeout/Retry Logic
- Double Retry
- Hard-Coded Configuration
- Architecture Anti-Patterns
- Exposed Internal Types
- Mixed I/O and Business Logic
- Error Handling Anti-Patterns
- Bare Exception Handling
- Ignored Partial Failures
- Missing Input Validation
- Resource Anti-Patterns
- Unclosed Resources
- Blocking in Async
- Type Safety Anti-Patterns
Key facts
- Source repo
- wshobson/agents
- Installs on skills.sh
- 13,584 as of 2026-11-02
- GitHub stars
- 42,081 (whole repo) as of 2026-11-02
- License
- MIT
- Last repo commit
- 2026-10-30
- Files
- 1 file (SKILL.md)
- skills.sh audits
- Gen Agent Trust Hub pass, Socket pass, Snyk pass
What it includes
Scattered timeout/retry logic, double retry, hard-coded configuration.
Infrastructure anti-patternsExposed internal types (ORM models) and mixed I/O with business logic.
Architecture anti-patternsBare exception handling, ignored partial failures, missing input validation.
Error handling anti-patternsUnclosed resources and blocking calls inside async code.
Resource anti-patternsMissing type hints and untyped collections.
Type safety anti-patternsOnly testing happy paths and over-mocking.
Testing anti-patterns14 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
Sources
Docs, issue trackers and discussions this page is built from.
Show all 5Hide
- wshobson/agents README · github.com
- Claude Code skills · code.claude.com
- Using skills in Claude · support.claude.com
- python-anti-patterns SKILL.md · github.com
- python-anti-patterns on skills.sh · skills.sh