derivation-join-collections

derivation-join-collections is a skill for Claude Code from estuary/agent-skills. It costs 136 tokens per session (3,450 once invoked), scanned A, original, Apache-2.0.

An Estuary data transformation that combines documents from two or more collections using a shared key. The result is an enriched collection containing fields from the matching sources.

In plain words
What is it for?
Use it for data enrichment, denormalising data into wider analytics tables, real-time CDC joins, and combining customer or business metrics.
Why use it?
It avoids combining related data separately in downstream applications or reports. It can keep customer, order, and other related information together as source collections change.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the estuary-derivations plugin — 8 skills shipped together

Good fit Use it for data enrichment, denormalising data into wider analytics tables, real-time CDC joins, and combining customer or business metrics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/estuary/agent-skills/derivation-join-collections
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 estuary/agent-skills --skill derivation-join-collections
Clone the repo
git clone --depth 1 https://github.com/estuary/agent-skills

Made for: Claude Code.

Or install estuary-derivations, the plugin that ships this one along with the rest of its 8 skills.

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 derivation-join-collections

README.md
[![agentmods](https://agentmods.dev/badge/skills/estuary/agent-skills/derivation-join-collections/github.svg)](https://agentmods.dev/skills/estuary/agent-skills/derivation-join-collections)
Your own site
<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.

agentmods 80×15 button for derivation-join-collections

Your own site · 80×15
<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>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,450 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.00136 $0.03450
Opus 5 $0.00068 $0.01725
Sonnet 5 $0.00027 $0.00690
Haiku 4.5 $0.00014 $0.00345

Measured 10d ago against content hash 030eae834df2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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 10d 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.

skills/derivation-join-collections/SKILL.md · 248 lines

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:

Canonical examples in the Flow repo (cover the three join shapes — see "Join types" below):

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 append reduction (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:

Read the full file on GitHub · 248 lines

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. 10d ago First seen · 248 lines · 136 tokens per session scan A 030eae834df2

Subscribe to this mod's changes

derivation-join-collections is a skill published in the GitHub repository estuary/agent-skills (7 stars, last pushed 20d ago), licensed Apache-2.0. It adds 136 tokens to every session and 3,450 once invoked, about $0.0007 per session on Opus 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.

Related

Other skills, from other repositories

cocoindex

This skill should be used when building data processing pipelines with CocoIndex, a Python library for incremental data transformation. Use when the task involves processing files/data into databases, creating vector embeddings, building knowledge graphs, ETL workflows, or any data pipeline requiring automatic change…

cocoindex-io/cocoindex · 88 tokens

confluent-cloud-cdc-tableflow

Set up end-to-end Change Data Capture (CDC) pipelines on Confluent Cloud using Debezium source connectors, Flink for transformation, and Tableflow for data lake integration. Supports JSONSR, Avro, and Protobuf formats. Handles schemaless topics (plain JSON without SR) and multi-event topics. This skill handles the…

confluentinc/agent-skills · 203 tokens

good-skill

Generate a Confluent Cloud topic creation script with idempotency checks. Use when the user asks to create a topic, provision topics, or write a create-topics.sh for Confluent Cloud. Do NOT trigger for self-managed Apache Kafka, schema registration, Terraform generation, or Kafka Streams topology authoring.

confluentinc/agent-skills · 69 tokens

mysql-context

Pull compact MySQL field diffs into context via the mysql-context MCP binlog indexer. Use when the task depends on what changed in MySQL, recent database changes, a watched table, or a before/after row image. Do not use this to dump current table rows.

velinussage/mysql-context-mcp · 60 tokens

kafka-schema-registry

Scan a project to identify Kafka applications, extract schemas from data models, tag PII fields, generate Terraform for Confluent Schema Registry registration, and produce a migration report with rollout ordering. Use this skill when a user asks to analyze a folder or repo for Kafka usage, extract schemas, audit…

confluentinc/agent-skills · 77 tokens

change-data-capture-admin

Use when enabling, configuring, or monitoring Change Data Capture (CDC) entity selection, channel enrichment, and delivery usage limits from an admin perspective. NOT for writing an Apex change-event trigger — use apex/change-data-capture-apex. NOT for subscribing an external system over Pub/Sub or CometD — use…

PranavNagrecha/AwesomeSalesforceSkills · 76 tokens