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.
npx skills add estuary/agent-skills --skill derivation-pythongit clone --depth 1 https://github.com/estuary/agent-skillsWrote 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.
[](https://agentmods.dev/skills/estuary/agent-skills/derivation-python)<a href="https://agentmods.dev/skills/estuary/agent-skills/derivation-python"><img src="https://agentmods.dev/badge/skills/estuary/agent-skills/derivation-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.
<a href="https://agentmods.dev/skills/estuary/agent-skills/derivation-python"><img src="https://agentmods.dev/badge/skills/estuary/agent-skills/derivation-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00149 | $0.04437 |
| Opus 5.5 | $0.00060 | $0.01775 |
| Sonnet 5.5 | $0.00030 | $0.00887 |
| Haiku 4.5 | $0.00015 | $0.00444 |
Grade A, and why
derivation-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 2mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 361 lines — stays where its author put it; the contents beside it link to each section on GitHub.
derivation-python
Estuary derivation implemented as a Python class with async-generator transforms. Runtime is uv, types come from Pydantic models generated at flowctl generate time, and the whole thing is validated in pyright strict mode at publish.
Prereq: read derivation-basics first for concepts, project layout, stateless-vs-stateful, and the universal workflow.
Hard constraint: Python derivations run on private or BYOC data planes only — never on shared public planes. Reach out to your Estuary account manager if you're interested in a private or BYOC data plane.
Docs: concept page · walkthrough · upstream examples (stateful.flow.py, pipeline.flow.py).
When to reach for Python (vs SQL / TypeScript)
- ML / embeddings / tokenisers —
model2vec,fastembed,transformers,tiktoken - Async I/O — per-document
await httpx.get(...), external APIs with bounded concurrency - Heavy Python ecosystem deps —
pandas,pyarrow, custom parsers - Rich type safety — Pydantic validators; pyright-strict at publish
Reach for other skills when plain filter/transform fits SQL (derivation-filter-transform), the logic is reducible (derivation-aggregate-metrics), or you want stateful logic without a private DP (derivation-stateful-logic, SQLite).
How it works
You declare derive.using.python.module: <file>.flow.py. flowctl generate introspects your collection schemas and emits IDerivation, Document, and Request symbols you import. Your Derivation(IDerivation) class has one async generator method per transform — named as snake_case of the YAML transforms[].name. Each transform method consumes Request.Read<TransformName> (typed Pydantic read.doc) and yields Document(...) values. Dependencies in derive.using.python.dependencies are resolved by uv at publish time and at runtime. Optional state is persisted across restarts via __init__ / start_commit / reset lifecycle methods.
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.
- 2mo ago First seen · 361 lines · 149 tokens per session scan A c179256d9d3f
derivation-python is a skill published in the GitHub repository estuary/agent-skills (7 stars, last pushed 4d ago), licensed Apache-2.0. It adds 149 tokens to every session and 4,437 once invoked, about $0.0006 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-08-31.
derivation-python compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| derivation-pythonestuary/agent-skills | Skill | 7 | 4d ago | Apache-2.0 | A | 149 | Claude Code |
| accelerateNousResearch/hermes-agent | Skill | 262k | today | MIT | A | 13 | Claude Code, Codex |
| pytorch-patternsaffaan-m/ECC | Skill | 299k | 2d ago | MIT | A | 32 | Claude Code, Kiro |
| developing-genkit-pythongoogle/skills | Skill | 24k | yesterday | Apache-2.0 | A | 49 | Claude Code, Codex |
| optimize-for-gpuK-Dense-AI/scientific-agent-skills | Skill | 56k | 6d ago | MIT | A | 151 | Claude Code, Codex |
| marimo-pairmarimo-team/marimo | Skill | 23k | yesterday | Apache-2.0 | A | 57 | Claude Code, Codex |
| cocoindexcocoindex-io/cocoindex | Skill | 12k | today | Apache-2.0 | A | 88 | Claude Code, Codex |