python-development
SKILL.md
Python Development
Best practices and patterns for Python development.
When to Use
- Writing Python scripts or applications
- Code review and refactoring
- Setting up new Python projects
Guidelines
Code Style
- Follow PEP 8 style guide
- Use type hints for function signatures
- Write docstrings for public functions and classes
Project Structure
project/
├── src/
│ └── package/
├── tests/
├── pyproject.toml
└── README.md
Common Patterns
Context Managers
from contextlib import contextmanager
@contextmanager
def managed_resource():
resource = acquire()
try:
yield resource
finally:
release(resource)
Data Classes
from dataclasses import dataclass
@dataclass
class Config:
host: str
port: int
debug: bool = False
Resources
Weekly Installs
4
Repository
kinhluan/skillsGitHub Stars
1
First Seen
2 days ago
Security Audits
Installed on
opencode4
gemini-cli4
github-copilot4
codex4
kimi-cli4
amp4