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-join-collectionsgit 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-join-collections)<a href="https://agentmods.dev/skills/estuary/agent-skills/derivation-join-collections"><img src="https://agentmods.dev/badge/skills/estuary/agent-skills/derivation-join-collections/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-join-collections"><img src="https://agentmods.dev/badge/skills/estuary/agent-skills/derivation-join-collections.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.00136 | $0.03455 |
| Opus 5.5 | $0.00054 | $0.01382 |
| Sonnet 5.5 | $0.00027 | $0.00691 |
| Haiku 4.5 | $0.00014 | $0.00346 |
Grade A, and why
derivation-join-collections 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 1mo 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 — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
derivation-join-collections
Estuary derivation that merges documents from multiple source collections into a single collection, keyed on a shared join field. Fields from each source contribute, and Estuary's reduction engine merges them.
Prereq: read derivation-basics first for concepts, the stateless-vs-stateful distinction, and reduction-annotation mechanics.
Docs:
- https://docs.estuary.dev/guides/howto_join_two_collections_typescript/ — official TypeScript walkthrough
- https://docs.estuary.dev/reference/reduction-strategies/ — reduction strategy reference (critical for joins)
Canonical examples in the Flow repo (cover the three join shapes — see "Join types" below):
- join-outer.flow.yaml — full outer (reduction-based, no state)
- join-inner.flow.yaml — inner (SQLite state, both sides must match)
- join-one-sided.flow.yaml — left / right (SQLite state, one side drives emission)
When to use this over alternatives
- Enrichment: attach customer profile fields onto every order
- Denormalisation: combine dimension + fact tables into a wide analytics table
- Customer lifetime metrics: one doc per customer with counts / totals rolled up from orders
- Pre-joined views for BI tools that prefer wide tables over joins at query time
Reach for other skills when:
- Only one source collection, aggregating by key →
derivation-aggregate-metrics - Need an embedded array of matches, not merged fields → combine with
appendreduction (still this skill, but see Variations) - You want arbitrary stateful logic beyond reductions (approval flows, balance checks) →
derivation-stateful-logic
Join types
Stream joins aren't quite the same as SQL joins. Pick the type before writing the derivation — the pattern differs by type:
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.
- 1mo ago Changed 9b9faa5660e8
- 2mo ago First seen · 248 lines · 136 tokens per session scan A 030eae834df2
derivation-join-collections is a skill published in the GitHub repository estuary/agent-skills (7 stars, last pushed 4d ago), licensed Apache-2.0. It adds 136 tokens to every session and 3,455 once invoked, about $0.0005 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-join-collections compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| derivation-join-collectionsestuary/agent-skills | Skill | 7 | 4d ago | Apache-2.0 | A | 136 | Claude Code |
| cocoindexcocoindex-io/cocoindex | Skill | 12k | today | Apache-2.0 | A | 88 | Claude Code, Codex |
| confluent-cloud-cdc-tableflowconfluentinc/agent-skills | Skill | 64 | 12d ago | Apache-2.0 | A | 203 | Claude Code |
| good-skillconfluentinc/agent-skills | Skill | 64 | 12d ago | Apache-2.0 | A | 69 | Claude Code |
| kafka-schema-registryconfluentinc/agent-skills | Skill | 64 | 12d ago | Apache-2.0 | A | 77 | Claude Code |
| change-data-capture-adminPranavNagrecha/AwesomeSalesforceSkills | Skill | 26 | 18d ago | none | B | 76 | Claude Code |
| mysql-contextvelinussage/mysql-context-mcp | Skill | 0 | 2mo ago | MIT | A | 60 | Claude Code, Codex |