
Python Idiomatic Patterns
Teaches the agent idiomatic Python style, PEP 8, type hints and error-handling patterns
- Repository
- affaan-m/ECC
- Stars
- 295,127
- Licence
- MIT
- Files
- 1 file
What it does
Once installed, the agent writes and reviews Python code following common best practices: readable code, explicit configuration, EAFP exception handling, modern type hints, specific exception classes, context managers for resource cleanup, and comprehensions or generators instead of clumsy loops. It is a set of written guidelines with good/bad code examples in Spanish; it does not add any new tools or run anything by itself.
Great for
- Developers who want Python code reviewed or written in a cleaner, more conventional style
- Teams refactoring older Python code toward type hints and proper error handling
- Students learning idiomatic Python through side-by-side good and bad examples
Skip it if
- Projects that need verified correctness or security audits: the skill is advice, not a linter or test runner, so generated code still needs testing
- Non-Python codebases or Python versions far from the examples (the guidance mixes 3.8 and 3.9+ styles and does not state which version to target)
Try asking
- “Revisa este módulo Python y sugiere mejoras de type hints y manejo de excepciones”
- “Refactoriza este script para usar context managers y evitar except desnudos”
- “Escribe una función Python para filtrar usuarios activos siguiendo PEP 8”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the MIT licence and an attribution note.
python-patterns.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip python-patterns.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip python-patterns.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Specify your target Python version so the agent picks the right type-hint style (built-in generics vs typing module).
- Ask the agent to also add tests or run your linter, since this skill only provides style guidance.
- The skill's content is in Spanish; ask for English output if your team works in English.
What's inside
- SKILL.md
Redistributed unmodified from affaan-m/ECC under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.