Skip to content
Back to skills

Python

ASecurity

Build 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
ai-agentspythongosqlfastapidjangotestinggitapidatabasefrontend

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add fmind/dot --skill python --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fmind-python/badge)](https://www.skillsdirectory.com/skills/fmind-python)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md4.1 KB
  • references/api-client/GUIDE.md3.9 KB
  • references/api-client/references/httpx-tests.md1.1 KB
  • references/api-design.md2.9 KB
  • references/argparse/GUIDE.md5.1 KB
  • references/argparse/references/bootstrap.md1.4 KB
  • references/argparse/references/cli-frameworks.md2.6 KB
  • references/argparse/references/completions.md4.7 KB
  • references/argparse/templates/init-cli.py5.7 KB
  • references/argparse/templates/main.py66 B
  • references/argparse/templates/test_cli.py5.4 KB
  • references/argparse/templates/test_smoke.py585 B
  • references/async.md2.4 KB
  • references/craft/GUIDE.md5.7 KB
  • references/craft/references/examples.md5.8 KB
  • references/craft/references/library-maintenance.md3.4 KB
  • references/database-and-jobs.md5.2 KB
  • references/django/GUIDE.md2.9 KB
  • references/django/references/bootstrap.md4.7 KB
  • references/fastapi/GUIDE.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.