Python Patterns Skill
Write and refactor Python around clear interfaces, typing and predictable errors.
What this skill does
Idiomatic code
Structure Python modules with clear interfaces, naming, typing and explicit behavior.
Error and resource handling
Apply appropriate exception handling, context managers and configuration patterns.
Refactoring guidance
Improve maintainability with concrete Python examples suited to the existing project.
What to provide & what you get
- Input
- A Python module or implementation problem and project constraints
- Expected output
- Python design or code changes with idiomatic structure and explicit tradeoffs
Community source
Upstream source
Open the upstream instructions at the fixed revision used for this resource. Review the source and its supporting files before installing.
Read upstream SKILL.md- Repository
- affaan-m/ECC
- File
skills/python-patterns/SKILL.md- Revision
76aaa77df6adc5b889e689007bf99b9a4f74af34
The downloaded SKILL.md text matches this upstream entrypoint. Review the ZIP’s source and license records for the complete packaging details.
Installation
- Download and extract the ZIP. Keep each complete skill folder, including its supporting files. Do not copy only
SKILL.md. - Copy the skill folder into your agent's skills directory. Use the project path below for this project, or the personal path for all your projects.
Codex
- This project
.agents/skills/python-patterns/SKILL.md- All your projects
~/.agents/skills/python-patterns/SKILL.md
Claude Code
- This project
.claude/skills/python-patterns/SKILL.md- All your projects
~/.claude/skills/python-patterns/SKILL.md
- Check the final path. It must match one of the paths above, with one
python-patterns/folder directly underskills/. Avoid an extra ZIP-name folder around it. - Start a new task in your project. Use the matching example below to invoke the installed skill. If it is missing, recheck the folder name and reopen your agent.
Before the first run
- A Python project and a bounded coding task
The ZIP installs the skill instructions and bundled files. Any listed software, accounts or external tools need their own setup.
What's in the download
3 files across 1 skill folder. Includes python-patterns/SKILL.md.
File integrity (SHA256):
10d293f0c0b892302972f3e6e2438334021a11b4bc7c0e5f2111602070894ea8How to use
- Provide the Python module, expected behavior and the project conventions.
- Ask for a focused implementation or refactor using patterns appropriate to that code.
- Run the project's checks and review any behavior changes before adopting it.
Try it in your agent
Install first, then attach or provide the inputs described above. Replace any bracketed placeholders before running.
Codex
Use $python-patterns. Refactor this Python module for clarity, typing and error handling without changing its public behavior.
Claude Code
/python-patterns Refactor this Python module for clarity, typing and error handling without changing its public behavior.
Check the result: Prefer a small relevant pattern over introducing abstraction that the project does not need.



