← ClaudeAtlas

neo-pythonlisted

Use this skill when writing, reviewing, debugging, or architecting Python 3.10+ code, including type hints, structural pattern matching, dataclasses, async/task groups, packaging-aware project structure, testability, and maintainability.
Benknightdark/neo-skills · ★ 5 · AI & Automation · score 80
Install: claude install-skill Benknightdark/neo-skills
# Python 3.10+ Expert Skill ## Trigger On - The user asks to write, debug, review, or refactor Python code. - Working in a repository containing `*.py`, `pyproject.toml`, `requirements.txt`, `Pipfile`, or `poetry.lock`. - Requires asynchronous programming (`asyncio`), type hinting, or modern Python feature recommendations. - The project needs setup for testing frameworks (`pytest`) or static analysis tools (`ruff`, `mypy`). ## Workflow 1. **Perceive:** - Inspect the project root to identify package management tools: `pyproject.toml` (Poetry/PDM/Ruff), `requirements.txt` (pip), or `environment.yml` (Conda). - Probe for Python version requirements (ensure compatibility with 3.10+ minimum). - Identify the application type: Web API (FastAPI, Flask, Django), Data Science (Pandas, PyTorch), or CLI tools. 2. **Reason:** - Evaluate if the current code follows modern Python (3.10+) idioms (e.g., `match/case`, `|` union types). - Decide if type checking (MyPy/Pyright) or auto-formatting (Ruff/Black) needs to be introduced. - Recommend appropriate architectural patterns based on project scale. 3. **Act:** - Write Python code with complete Type Hints, prioritizing the `X | Y` syntax. - Prefer modern language features: `match` statements (3.10+), `TaskGroup` (3.11+), and new generic syntax (3.12+). - Ensure code passes static analysis and unit tests. ## Coding Standards - **Type Hinting:** Strongly recommended for all function signatures. Use 3.10+ union synt