python

python is a skill for Claude Code, Codex from hmj1026/dhpk. It costs 66 tokens per session (751 once invoked), scanned A, original, MIT.

A guide for building and reviewing Python services, including FastAPI web APIs and SQLAlchemy database code. It also covers pytest tests and tools that check code style and type correctness.

In plain words
What is it for?
Use it for backend Python features and reviews, asynchronous APIs, database access, tests, or setup and troubleshooting for ruff, pyright, and mypy.
Why use it?
Python projects may support different language versions and library releases, so code that works in one project can fail in another. This uses the project’s own configuration to keep implementation and checks compatible.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the dhpk plugin — 39 skills, 1 command, 1 agent, 3 hooks shipped together

Good fit Use it for backend Python features and reviews, asynchronous APIs, database access, tests, or setup and troubleshooting for ruff, pyright, and mypy.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmj1026/dhpk/python
View source ↗ hmj1026/dhpk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hmj1026/dhpk --skill python
Clone the repo
git clone --depth 1 https://github.com/hmj1026/dhpk

Made for: Claude Code, Codex.

Or install dhpk, the plugin that ships this one along with the rest of its 39 skills, 1 command, 1 agent, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmj1026/dhpk/python/github.svg)](https://agentmods.dev/skills/hmj1026/dhpk/python)
Your own site
<a href="https://agentmods.dev/skills/hmj1026/dhpk/python"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/python/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmj1026/dhpk/python"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 751 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.00751
Opus 5.5 $0.00026 $0.00300
Sonnet 5.5 $0.00013 $0.00150
Haiku 4.5 $0.00007 $0.00075

Measured yesterday against content hash 9ca9c8e11ca1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

generated/claude-marketplace/package/skills/flow-drive/references/python/SKILL.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python

Use $python <task> to implement, review, test, or configure the scoped Python service. Select the required internal procedure after resolving the target.

Resolve compatibility first

Identify the target package/subproject from the request and its own pyproject.toml, lock, and checker configuration. An intentional explicit version override wins; record it separately from observed constraints. Read requires-python at its actual range precision: >=3.10 establishes a 3.10 floor, while >=3.9,<3.12 does not authorize 3.10-only syntax. Lock/configuration conflicts, missing evidence, incompatible ranges, or several plausible package scopes require asking and waiting before version-specific reference loads or dependent edits. python --version describes the tool environment. Migration requires an explicit destination; group resources and evidence for multi-target work separately. Confirm framework/library major from target lock/manifest before framework-specific API advice (especially Pydantic1 versus2).

Select local resources

Task Procedure
Typed language/service implementation or review language
ruff/pyright/mypy configuration, suppression, lint triage static
Async pytest fixtures, regression tests, offline API tests testing
FastAPI routes, Depends, Pydantic, SQLAlchemy2 async, Alembic design FastAPI

Load only the selected procedure and any other specialty actually needed for the request. The language procedure assumes Python3.10+; TaskGroup needs3.11+. For an older target, preserve its syntax floor and give a bounded compatibility answer or request an explicit upgrade decision. FastAPI examples assume Pydantic2/SQLAlchemy2; adapt only after confirming target evidence.

These are local instructions; consumer source/configuration and tool binaries are task inputs. Missing bundled resources are BLOCKED; missing tools or external services are NOT_RUN/UNAVAILABLE. Do not recover local resources from a predecessor skill or an ambient module.

Read the full file on GitHub · 65 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 65 lines · 66 tokens per session scan A 9ca9c8e11ca1

Subscribe to this mod's changes

python is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 751 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.

Related

Other skills, from other repositories

cloudflare-workers-multi-lang

Multi-language Workers development with Rust, Python, and WebAssembly. Use when building Workers in languages other than JavaScript/TypeScript, or when integrating WASM modules for performance-critical code.

secondsky/claude-skills · 45 tokens

functions-development

Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…

CrowdStrike/foundry-skills · 195 tokens

python-services

Python patterns for CLI tools, async parallelism, and backend services. Use when building CLI apps, async/parallel Python, FastAPI services, background jobs, or configuring Python project tooling (uv, ruff, ty).

iliaal/whetstone · 48 tokens

python-patterns

Python backend patterns: layered architecture, async I/O, dependency injection, repository/service separation. TRIGGER when: creating routes, models, schemas, or services in a Python backend. SKIP: REST contract design (use api-design); schema/index tuning (use database-optimization). (Examples: FastAPI + SQLAlchemy +…

komluk/scaffolding · 73 tokens

litestar

Auto-activate for Litestar, Controller, Router, @get/@post, FromPath, MsgspecDTO, OpenAPIConfig, Provide, FromDishka, Guard, ASGIMiddleware, HTTPException, ChannelsPlugin, or WebSocket. Not for standalone libs.

litestar-org/litestar-skills · 58 tokens

litestar-granian

Auto-activate for litestargranian, GranianPlugin, litestar run Granian options, runtime threads, HTTP/2, TLS, access logs, metrics, static mounts, or worker lifecycle. Not for non-Granian servers.

litestar-org/litestar-skills · 54 tokens