derivation-filter-transform

derivation-filter-transform is a skill for Claude Code from estuary/agent-skills. It costs 123 tokens per session (3,339 once invoked), scanned A, original, Apache-2.0.

An Estuary data-pipeline guide for filtering documents, selecting fields, cleaning values, and calculating new fields one document at a time. It does not combine information across documents or keep shared state.

In plain words
What is it for?
Use it for conditions like database WHERE clauses, field selection, renaming-related transformations, value cleanup, computed fields, and simple per-document changes.
Why use it?
It removes repetitive data-cleaning and filtering logic before data reaches another system. It can also reduce the fields passed downstream and standardise their values.

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 conditions like database WHERE clauses, field selection, renaming-related transformations, value cleanup, computed fields, and simple per-document changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/estuary/agent-skills/derivation-filter-transform
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-filter-transform
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-filter-transform

README.md
[![agentmods](https://agentmods.dev/badge/skills/estuary/agent-skills/derivation-filter-transform/github.svg)](https://agentmods.dev/skills/estuary/agent-skills/derivation-filter-transform)
Your own site
<a href="https://agentmods.dev/skills/estuary/agent-skills/derivation-filter-transform"><img src="https://agentmods.dev/badge/skills/estuary/agent-skills/derivation-filter-transform/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-filter-transform

Your own site · 80×15
<a href="https://agentmods.dev/skills/estuary/agent-skills/derivation-filter-transform"><img src="https://agentmods.dev/badge/skills/estuary/agent-skills/derivation-filter-transform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,339 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.00123 $0.03339
Opus 5.5 $0.00049 $0.01336
Sonnet 5.5 $0.00025 $0.00668
Haiku 4.5 $0.00012 $0.00334

Measured 2mo ago against content hash 5b84c740970d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

derivation-filter-transform 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.

skills/derivation-filter-transform/SKILL.md · 256 lines

How it starts

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

derivation-filter-transform

Stateless Estuary derivation that filters documents and/or transforms field values. Each source document produces zero or one output document; no state, no cross-document coordination.

Prereq: read derivation-basics first for concepts, project layout, workflow, and language choice.

When to use this over alternatives

  • Filtering (WHERE clause): drop documents that don't match criteria
  • Computed fields: derive new fields from existing ones (CASE, arithmetic, string manipulation, lookups)
  • Data cleansing: normalise formats, trim whitespace, replace nulls
  • Selecting a subset of fields when combined with the above

For a plain rename or nested-field flattening with no computation, use schema-projections — a projection doesn't require a derivation task.

Canonical Example — SQL

Cleanse a customers collection for downstream analytics: drop inactive accounts and those with obviously invalid emails, normalise the email, and compute a tier bucket from lifetime spend.

schema.yaml

The writeSchema (what the lambda must emit). Enum constraints on tier are enforced at write time; the readSchema (in flow.yaml below) layers in inference for everything else. See derivation-basics § Schema setup.

type: object
properties:
  customer_id:
    type: string
  email_normalized:
    type: string
  signup_date:
    type: string
    format: date
  tier:
    type: string
    enum: [bronze, silver, gold]
required: [customer_id, email_normalized, tier]

flow.yaml

collections:
  acmeCo/analytics/active-customers:
    writeSchema: schema.yaml
    readSchema:
      allOf:
        - $ref: flow://write-schema
        - $ref: flow://inferred-schema
    key: [/customer_id]
    derive:
      using:
        sqlite: {}
      transforms:
        - name: cleanseCustomers
          source: acmeCo/production/customers
          shuffle: any
          lambda: |
            SELECT
              $id AS customer_id,
              LOWER(TRIM($email)) AS email_normalized,
              date($created_at) AS signup_date,
              CASE
                WHEN $lifetime_spend >= 10000 THEN 'gold'
                WHEN $lifetime_spend >= 1000  THEN 'silver'
                ELSE 'bronze'
              END AS tier
            WHERE $status = 'active'
              AND $email LIKE '%@%';

Read the full file on GitHub · 256 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. 2mo ago First seen · 256 lines · 123 tokens per session scan A 5b84c740970d

Subscribe to this mod's changes

derivation-filter-transform is a skill published in the GitHub repository estuary/agent-skills (7 stars, last pushed 4d ago), licensed Apache-2.0. It adds 123 tokens to every session and 3,339 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.

Related

derivation-filter-transform compared with skills from other repositories

derivation-filter-transform next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
derivation-filter-transformestuary/agent-skillsSkill74d agoApache-2.0A123Claude Code
change-data-capture-adminBanibrataChatterjee/AwesomeSalesforceSkillsSkill46mo agoApache-2.0B50Claude Code, Codex
stream-processing-designerbookforge-ai/bookforge-skillsSkill426mo agoCC-BY-SA-4.0A240Claude Code
cocoindexcocoindex-io/cocoindexSkill12ktodayApache-2.0A88Claude Code, Codex
leaky-dataconfluentinc/agent-skillsSkill6412d agoApache-2.0A60Claude Code
confluent-cloud-flink-sqlconfluentinc/agent-skillsSkill6412d agoApache-2.0A234Claude Code
flink-udfconfluentinc/agent-skillsSkill6412d agoApache-2.0A189Claude Code