Back to skills
SKILL.md
Python
ASecurityBuild Python packages, CLIs, APIs, web apps, PEP 723 scripts: uv, Ruff, ty, pytest, Pydantic, FastAPI, Django, Litestar, OTel.
- 14 stars
- 0 votes
- 0 copies
- 0 views
- Added December 2, 2026
Works with
Security analysis
100/100Pro scans all 20 files and shows the line behind each finding
npx -y skills add fmind/dot --skill python --agent claude-codeAre you the author of Python?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/fmind-python)---
name: python
description: "Build Python packages, CLIs, APIs, web apps, PEP 723 scripts: uv, Ruff, ty, pytest, Pydantic, FastAPI, Django, Litestar, OTel."
license: MIT
metadata:
kind: collection
author: Médéric HURIER (Fmind)
source: github.com/fmind/dot/tree/main/skills/python
created: "2026-11-21"
updated: "2026-12-01"
---
# Python Engineering
Maintain lean, strictly typed Python packages, CLIs, web services, and PEP 723 scripts using stdlib first, mainstream well-maintained libraries when earned, and existing repo conventions.
## Workflow
Skip loading Python guides for routine bugfixes or straightforward stdlib scripts. For new services, strict CLI contracts, or non-obvious `3.14+` and library patterns, load only the guide(s) needed (avoid bulk-loading every core guide): [craft](references/craft/GUIDE.md) for design, blast-radius sizing, and library choices; [language](references/language.md) for `3.14+` idioms, typing, subprocess, and I/O boundaries; [testing](references/testing/GUIDE.md) when authoring or auditing tests; plus the matching domain guide below. Defaults: [mlops](../mlops/SKILL.md) for dataframes/ML, [argparse](references/argparse/GUIDE.md#defaults-for-new-clis) for CLIs, and [fastapi](references/fastapi/GUIDE.md) + Granian for web APIs ([django](references/django/GUIDE.md) for ORM/admin monoliths, [litestar](references/litestar/GUIDE.md) for opt-in `msgspec`/HTMX apps, [ui](references/ui.md) for Gradio/NiceGUI).
## Task guides
<!-- guides:start -->
- [api-client](references/api-client/GUIDE.md): Build typed Python HTTPX2 clients with bounded pagination and stdlib retries.
- [api-design](references/api-design.md): Design HTTP/RPC/SDK wire contracts: RFC 9457 errors, cursor pagination, idempotency, OpenAPI, and SemVer.
- [argparse](references/argparse/GUIDE.md): Design CLI contracts (streams, exits, JSON) and build stdlib argparse CLIs.
- [async](references/async.md): Build asyncio/AnyIO concurrency with TaskGroup cancellation, loop_factory, bounded pools, and SIGTERM drain.
- [craft](references/craft/GUIDE.md): Apply Google-style Python craft, stdlib-first library choices, two-boundary error logging, and library maintenance.
- [database-and-jobs](references/database-and-jobs.md): Configure Postgres/SQLite persistence, Alembic migrations, obstore, queues, and Cloud Tasks.
- [django](references/django/GUIDE.md): Build Django applications with ORM, admin, authentication, Granian serving, and native testing.
- [fastapi](references/fastapi/GUIDE.md): Build FastAPI ASGI services with Granian, RFC 9457 errors, native SSE, opt-in OTel, and httpx2 testing.
- [foundation](references/foundation/GUIDE.md): Configure Python package layout, PyPI metadata, uv/Ruff/ty tooling, workspaces, and project scaffolding.
- [language](references/language.md): Apply Python 3.14+ idioms, strict ty typing, exception chaining, subprocess bounds, and atomic file I/O.
- [litestar](references/litestar/GUIDE.md): Build opt-in Litestar ASGI apps when msgspec throughput or built-in HTMX/CSRF plugins earn their keep.
- [observability](references/observability.md): Instrument Python services with structlog JSON, locals-free stack frames, and opt-in OpenTelemetry OTLP.
- [performance](references/performance.md): Profile Python CPU/memory and benchmark CLIs/HTTP with hyperfine, oha, Locust, and 3.15 sampling.
- [pydantic](references/pydantic.md): Typed validation, serialization, and settings boundaries with Pydantic and msgspec.
- [script](references/script/GUIDE.md): Build standalone PEP 723 single-file Python scripts run via uv run.
- [security-and-auth](references/security-and-auth.md): Implement OIDC/OAuth2, JWT, Argon2id, webhook HMAC, CSRF, and HTTP security headers.
- [testing](references/testing/GUIDE.md): Write Python tests with pytest, fixtures, property, mutation, and opt-in BDD tests.
- [ui](references/ui.md): Build Gradio model demos and NiceGUI dashboards or browser utilities.
<!-- guides:end -->
## Documentation
- Companions: [mlops](../mlops/SKILL.md), [agent-frameworks](../agent-frameworks/SKILL.md), [web-frontend](../web-frontend/SKILL.md), [mise](../mise/SKILL.md), [bootstrap](../github/references/bootstrap.md), [sql](../sql/SKILL.md).
Files in this skill
- SKILL.md
- references/api-client/GUIDE.md
- references/api-client/references/httpx-tests.md
- references/api-design.md
- references/argparse/GUIDE.md
- references/argparse/references/bootstrap.md
- references/argparse/references/cli-frameworks.md
- references/argparse/references/completions.md
- references/argparse/templates/init-cli.py
- references/argparse/templates/main.py
- references/argparse/templates/test_cli.py
- references/argparse/templates/test_smoke.py
- references/async.md
- references/craft/GUIDE.md
- references/craft/references/examples.md
- references/craft/references/library-maintenance.md
- references/database-and-jobs.md
- references/django/GUIDE.md
- references/django/references/bootstrap.md
- references/fastapi/GUIDE.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.