python-dev-skill

Guides Python development decisions covering style, async patterns, FastAPI, packaging, and ML tooling.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/joySUSY/violet-plugin-place --skill python-dev-skill-joysusy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-dev-skill
Source: https://github.com/joySUSY/violet-plugin-place/tree/main/plugins/python-dev-skill
Command: npx skills add https://github.com/joySUSY/violet-plugin-place --skill python-dev-skill-joysusy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Python developers face fragmented guidance across style, architecture, async patterns, packaging, and scientific computing, leading to inconsistent codebases and poor framework choices. This Skill consolidates decision frameworks and reference documentation so every Python task starts with the right architecture and toolchain. ## Core Features & Use Cases - Decision Frameworks: Choose between FastAPI vs Django, async vs sync, uv vs pixi, and project layouts based on project scale and workload type. - Production Patterns: Covers FastAPI dependency injection, SQLAlchemy 2.0 async, Pydantic validation, JWT auth, WebSockets, and structured error handling. - Toolchain & Packaging: Complete uv, pixi, ruff, mypy, and pytest workflows including lockfile strategy, Docker builds, and CI/CD pipelines. - Scientific & ML Stack: Reference guides for matplotlib visualization, PyTorch Geometric GNNs, and PathML computational pathology. - Use Case: When starting a new REST API with PostgreSQL, the Skill directs you to FastAPI with asyncpg, a layered src/ architecture, Pydantic schemas at boundaries, and a uv-based toolchain with pytest configuration. ## Quick Start Ask the assistant to help you design and scaffold a new Python project, such as a FastAPI service or data pipeline, and it will apply the appropriate architecture, style, and toolchain guidance.

Frequently Asked Questions about python-dev-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between FastAPI and Django for a Python web project?▼

Choose FastAPI for API-only services, async-first architecture, and microservices where performance matters. Choose Django when you need a built-in admin interface, full-stack templates, or batteries-included features like auth and ORM.

When should I use async vs sync code in Python?▼

Use async for I/O-bound work like database queries, HTTP calls, and file operations. Use sync for CPU-bound computation, simple scripts, and legacy codebases. For mixed workloads, use an async orchestrator and offload CPU work to a thread pool.

What is the difference between uv and pixi for Python package management?▼

uv is a Rust-based tool for pure Python projects offering 10-100x faster installs than pip with a pip-compatible workflow. Use pixi when you need conda packages, CUDA or GPU dependencies, or mixed conda and PyPI environments.

How do I structure a Python project for packaging and distribution?▼

Use a src/ layout with pyproject.toml as the single configuration source, hatchling as the build backend, and define __all__ in __init__.py for explicit public APIs. Build with python -m build and publish via twine, testing on TestPyPI first.

Why should I avoid bare except clauses in Python error handling?▼

Bare except clauses swallow all exceptions including system exits, making bugs invisible and debugging painful. Instead, define custom domain exception classes, raise them in service layers, and catch specific exceptions in the API layer to return structured error responses.

Can I use PyTorch Geometric for large-scale graph neural networks?▼

Yes, PyTorch Geometric supports large graphs through NeighborLoader for mini-batch neighbor sampling and GraphSAGE layers designed for inductive learning. It also supports heterogeneous graphs via HeteroData and to_hetero model conversion.