← ClaudeAtlas

python-devlisted

Pythonic idioms, PEP 8 standards, type hints, and best practices for building robust, efficient, and maintainable Python applications. Use when designing packages, implementing type hints, establishing coding standards, or writing/reviewing general-purpose Python code. Do NOT use for framework-specific project layout or directory structure conventions.
RahulDas-dev/skill_builder · ★ 0 · Web & Frontend · score 58
Install: claude install-skill RahulDas-dev/skill_builder
# Python Development Patterns ## When to Activate * Writing/reviewing/refactoring Python code * Designing Python packages/modules * Implementing type hints or logging * Establishing or enforcing coding standards ## Dependencies | Tool | Role | Required | | --- | --- | --- | | Python 3.13+ | Interpreter — modern type-hint syntax (`str or None` unions, `list[str]`) needs 3.10+, this skill targets 3.13+ | Yes | | `uv` | Package manager and task runner — replaces pip/venv/poetry | Yes | | `ruff` | Linter + formatter — full config in `references/ruff-config.md` | Yes | | `pyclean` | Cache cleanup (`__pycache__`, `.pyc`) after code changes | Recommended | Nothing else is assumed preinstalled — `uv sync` installs project dependencies from `pyproject.toml`. ## Package Manager: uv (NOT pip) ```bash uv sync # Install dependencies uv run <command> # Run commands uv add <package> # Add package uv add <package> --dev # Dev dependency ``` ## Mandatory After Every Code Change ```bash uv run ruff format -v . # Format code uv run ruff check -v . # Check for issues uv run ruff check -v . --fix # Auto-fix issues uv run pyclean -v . # Clean cache ``` ## Type Hints (Python 3.10+) Use modern syntax — NOT legacy `typing` module: ```python # Modern def process(name: str | None) -> bool: # not Optional[str] def handle(items: list[str]) -> dict[str, int]: # not List, Dict def convert(value: str | int | float) -> str: #