agentleFS
fmindfmind/dotfiles/skills/python-stack/SKILL.md

python-stack

Skill13 starsChanged 3 days agoMITView on GitHub

Develop Python projects and PEP 723 scripts: uv, Ruff, ty, Pydantic, pytest, async, HTTPX, Typer and CLI contracts, observability, LangExtract, debugging, profiling, benchmarks.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Python Stack

Maintain a small typed Python foundation and choose libraries for demonstrated requirements. Preserve the existing environment and conventions rather than restarting a scaffold for every feature.

Workflow

Read only the matching guide and its required resources. Dataframe code in any profile, scripts included, defaults to Polars. The cli-contracts guide applies to any CLI, whatever its language. A request to diagnose, debug, or profile authorizes investigation, not fixes: observe read-only, reproduce in an isolated temporary directory, and change product code only when the user also asks for a fix.

Task guides

<!-- guides:start -->
  • api-client: Build typed Python HTTPX API clients with bounded pagination and retries.
  • cli-contracts: Design any CLI's commands, flags, streams, exit codes, and JSON output, in any language.
  • foundation: Python package layout, dependency choices, defaults, and project scaffolding.
  • langextract: Extract structured facts from text with LangExtract and source-grounded evidence.
  • observability: Instrument Python services and agents: structlog logs, OpenTelemetry traces and metrics.
  • performance: Profile Python CPU and memory, and benchmark commands and HTTP load with hyperfine, oha, or Locust.
  • pydantic: Typed validation, serialization, and settings boundaries.
  • python-async: Async design, cancellation, timeouts, and shutdown.
  • python-script: Standalone single-file utilities with PEP 723 inline metadata run by uv run --script.
  • python-testing: Write Python tests with pytest, fixtures, property and mutation tests.
  • ruff: Python linting, formatting, imports, and safe fixes.
  • ty: Type diagnostics and environment resolution.
  • typer: Typer application code, help, completion, and command tests.
  • uv: Dependency resolution, environments, packaging, and lockfiles.
<!-- guides:end -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.