16 skills built for Python
Claude Code skills for Python
Python skills for services, data work and automation: typed modern Python, packaging with uv, pytest suites that stay fast, FastAPI and Django backends, and pandas or Polars analysis that survives messy input. Many AI engineering skills here are Python-first too.
Start with these
- Python ProfilingFind the slow line before rewriting anythingClaude sets up a fixed benchmark with an output hash, picks the profiler that fits the situation (cProfile for scripts, py-spy for live processes, pyinstrument for async, memray for memory), and classifies the bottleneck before touching code. Fixes follow payoff order: data structures, vectorization, caching, then processes or compiled extensions, with identical output verified.
- Agent SDK BuilderShip a custom agent on Claude Code's own loopBuilds agents on the Claude Agent SDK that are safe to run inside a product. Claude starts with a read-only loop that logs every message type, adds domain tools as in-process MCP servers, gates risky calls with canUseTool or hooks, chooses the system prompt preset and settingSources on purpose so CLAUDE.md and skills load only when intended, and bounds every run by turns, time and logged cost.
- MCP Server BuilderConnect Claude to your systems with tools it picks rightBuilds Model Context Protocol servers that Claude can actually use well. Instead of mirroring every REST endpoint, Claude designs a few task-level tools with bounded schemas, compact outputs and fixable error messages, wires stdio or Streamable HTTP with the official SDKs, tests each tool in the Inspector and a scripted client, and registers the server for you or your team without leaking secrets.
13 more Pythonskills
Each card opens the full playbook, example prompts and install commands.
Status Line Scripts
Context, cost and branch at a glance, under 50 ms
Claude builds a status line from the documented stdin contract instead of guessing field names, treats every optional field as possibly absent, caches git calls per session so the bar stays fast, and pipe-tests full, empty and malformed payloads before registering it. Ships a stdlib Python status line with a color-coded context bar, cost and 5-hour limit you can adapt.
TDD Loop
See it fail, make it pass, then clean it up
Makes Claude work test-first for real: it writes a test list, runs every new test to confirm it fails on the assertion rather than a typo, writes the least code to pass, and refactors only on green. It picks the next test deliberately, checks coverage on touched files, and sabotages key code paths to prove the tests can actually catch regressions.
htmx Hypermedia
Server-rendered fragments instead of a SPA
Claude builds htmx features the hypermedia way: a working full-page version first, then fragments rendered from the same template blocks, real URLs with pushed history, and server-driven events through HX-Trigger. It knows the htmx 2 changes that bite — unswapped 4xx responses, 204 meaning no swap, redirects that land inside the target — and checks every endpoint with and without HX-Request.
Benchmark Testing
Faster means significant, not one lucky run
Claude stops quoting single-run timings. It uses the right harness per language, guards against dead-code elimination, quiets the machine, measures noise with an A/A run, and compares 10 or more samples per side with a significance test and confidence interval. CI gates get thresholds derived from measured noise, or instruction counts when shared runners are too jittery.
LLM App Builder
Ship LLM features with timeouts, streams, and budgets
Claude builds LLM features the way a production team would: one client module with timeouts and typed retries, streaming for anything a user waits on, a model picked by a small eval instead of reputation, and per-request cost logged from the first deploy. Every stop reason, including truncation and refusal, gets explicit handling and a test.
Structured Outputs
Schema-valid JSON, then checks on what it says
Claude replaces prompt-and-regex JSON with native constrained decoding: a JSON schema output format or strict tool generated from Pydantic or Zod models. It designs schemas with nullable fields and escape-value enums so the model never invents data, checks stop reasons before parsing, validates meaning as well as shape, and caps repair retries before routing to a human.
Word Documents (.docx)
Styled, editable Word files that survive review
Claude builds Word files the way a careful editor would: named styles and real headings instead of bold Normal text, tables and images sized for the page, and templates that keep branding intact. Before editing, a bundled inspector reports tracked changes, comments and fields, so revisions are never silently mangled, and replacements that span split runs keep their formatting.
PowerPoint Decks (.pptx)
On-brand slides you've actually looked at
Claude writes a takeaway-titled outline first, then builds slides from your template's layouts by name, filling placeholders rather than scattering text boxes. Charts are native and editable, notes carry the detail, and theme fonts stay intact. A bundled linter flags missing titles, overflow and empty placeholders, and every deck is rendered to images and reviewed before handoff.
Raspberry Pi Projects
Headless Pi builds that survive a pulled plug
Claude sets up a Pi headless with Imager customisation and NetworkManager, writes GPIO code with gpiozero so it runs on Pi 5 where RPi.GPIO fails, checks 3.3 V and per-pin current limits before wiring advice, and ships the app as a systemd service under a dedicated user. It checks undervoltage with vcgencmd and limits SD card writes so the device survives power cuts.
Unit Testing
Tests that survive refactors and catch real bugs
Claude stops writing tests that mirror the implementation. It lists observable behaviors first, picks boundary and error inputs on purpose, writes behavior-named arrange-act-assert tests with literal expected values, and breaks the code once to prove each new test can go red. Mocks stay at out-of-process edges, so the suite survives refactors.
SQLAlchemy ORM
Typed models, owned sessions, loads you chose on purpose
Makes Claude write SQLAlchemy 2.x the way it is meant to be used: Mapped and mapped_column models with named constraints, one Session per request or task with short transactions, select() queries with deliberate selectinload or joinedload, and lazy="raise" to catch accidental lazy loads. It also reviews Alembic autogenerate output for the renames and enum changes it misses, and sets up rollback-per-test fixtures.
CSV Cleaning
From mojibake and shifted columns to clean UTF-8
Claude preserves the raw file, runs a bundled profiler that detects encoding, BOM, delimiter, ragged rows, ambiguous dates and European number formats, then repairs structure and parses every column explicitly. Duplicates are removed by a stated rule, bad lines go to a rejects file, and a cleaning log records rows in and out for each step.
Notion API
Notion sync scripts that page, pace and chunk
Gives Claude the Notion details that usually cause silent failures: pinned API versions and the newer data source model, cursor pagination on every list, property write shapes, the 100-block and 2,000-character limits, and Retry-After backoff for 429s. Sync jobs pull incrementally by last_edited_time, detect trashed pages, and test against a duplicated database before touching the real one.
General skills with Python guidance
Not built around Python, but they include Python-specific tools or steps. Not part of the install-all command.
- Temporal WorkflowsDurable processes that survive deploys and replays
- Passkeys and WebAuthnPhishing-resistant sign-in with a recovery path to match
- Dead Code RemovalDelete unused code with two kinds of proof
- Go IdiomsGo that passes review on the first round
- Julia Scientific ComputingType-stable Julia, measured before and after
- API TestingProve every endpoint's contract, including who can't call it
- Mutation TestingFind out if your tests would notice a real bug
- TestcontainersReal databases in tests, started once and reset fast
- PDF ToolkitInspect first, then extract, merge, fill or generate
- Excel Spreadsheets (.xlsx)Live formulas, real number formats, zero #REF!
- CLI Tool BuildingCLIs that work for humans and in pipes
Install
Every Python skill in one command
Installs these 16 skills into ~/.claude/skills/. Add --project after -- to install into the current repository instead.
The installer is a 101-line POSIX shell script. It downloads each skill you name from claudeskills.page and unpacks it into your skills folder, nothing else: no sudo, no telemetry. Every skill page shows the full SKILL.md, so you can read what you install first. Read install.sh
Python skills FAQ
Answers drawn from the skills themselves, including what they don't cover.
Which Python version and tooling do these skills assume?
Modern Python targets Python 3.12+ and uses uv for interpreters, virtual environments, locking and builds, ruff for lint and format, and strict type checking with mypy and PEP 695 generics. It includes migration paths from requirements.txt, Poetry and setup.py, and says never to pip install in a project that has a uv.lock.
Do the skills cover Polars and DuckDB, or just pandas?
All three have skills. Pandas Analysis covers explicit dtypes, validated merges and memory fixes, with notes on pandas 3 changes like the new string dtype. Polars DataFrames assumes Polars 1.x, uses LazyFrame scans and streaming, and migrates pandas code. DuckDB Analytics runs SQL over Parquet, CSV and JSON locally or on S3, and works with pandas, Polars and Arrow.
Which Python web frameworks and versions are covered?
Django Apps targets Django 5.x, noting 5.2 as the current LTS and covering DRF and the async ORM. FastAPI Services uses Pydantic v2, Annotated dependencies, lifespan and async SQLAlchemy 2.0 sessions. Flask Apps covers Flask 3.1 with Flask-SQLAlchemy and Flask-Migrate, and notes that async views do not turn Flask into an async server.
How do I install all 16 Python skills at once?
Pass every name to the installer in one command: curl -fsSL https://claudeskills.page/install.sh | sh -s -- python-profiling agent-sdk-builder mcp-server-builder statusline-scripts tdd-loop htmx-hypermedia benchmark-testing llm-app-builder structured-outputs docx-documents pptx-decks raspberry-pi-projects unit-testing sqlalchemy-orm csv-cleaning notion-api. Add --project after -- to install them into the current repository's .claude/skills/ folder so your team gets them too.