| name | python-code |
| description | Python development best practices, PEP 8, and modern Python features |
Python Code Skill
This skill is specialized for Python development, focusing on idiomatic Python (Pythonic code), performance, and typing.
When to use this skill
- When writing or refactoring Python code (Django, FastAPI, Flask, Pandas, etc.).
- When utilizing Python's specific features like list comprehensions, generators, context managers.
- When integrating PEP 8 standards or type hints (mypy/pydantic).
Guidelines
- Write "Pythonic" code. Use built-in functions and standard libraries where appropriate.
- Use explicit type hints for better Developer Experience (DX) and tooling support.
- Handle exceptions specifically rather than using bare
except: clauses.
- Use virtual environments (venv, poerty, conda) for dependency management.