| name | python-coding |
| description | Use this skill when writing Python code. Provides Python-specific best practices including Poetry dependency management, PEP 8 style guidelines, pytest testing patterns, type hints, and async programming with asyncio. |
| version | 1.0.0 |
Python Coding Standards
Comprehensive Python development practices covering project setup, code style, testing, type hints, and async programming.
When to Use This Skill
Use this skill when:
- Writing Python code in any project
- Setting up a new Python project with Poetry
- Writing or reviewing Python tests with pytest
- Implementing async Python code with asyncio
- Adding type hints and static type checking
- Following PEP 8 style guidelines
Reference Routing Table
| Reference | Read when you need to… |
|---|
setup-and-structure.md | Set up a new Python project — Poetry dependency management, src-layout directory structure, script creation |
code-standards.md | Write production Python code — PEP 8 compliance, naming conventions, logging, formatting, import organization |
testing.md | Write Python tests with pytest — fixtures, mocking patterns, test organization, TDD stub patterns, coverage |
advanced-patterns.md | Add type hints or async code — asyncio patterns, high-performance async examples, mypy static checking |