schema-define-fields

schema-define-fields is a skill for Claude Code from estuary/agent-skills. It costs 99 tokens per session (2,141 once invoked), scanned A, original, Apache-2.0.

An Estuary schema guide for adding or refining particular fields in the data available to downstream steps. A schema describes the fields, types, and required values that later pipeline operations can read.

In plain words
What is it for?
Use it when materializations or transformations are missing fields, when a field has the wrong type, or when certain fields must always be present and typed.
Why use it?
It helps restore fields that were omitted, correct types inferred from messy data, and keep important fields available after schema changes or data resets.

Skill for Claude Code

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

Part of the estuary-schema plugin — 6 skills shipped together

Good fit Use it when materializations or transformations are missing fields, when a field has the wrong type, or when certain fields must always be present and typed.

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

Made for: Claude Code.

Or install estuary-schema, the plugin that ships this one along with the rest of its 6 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 schema-define-fields

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/estuary/agent-skills/schema-define-fields"><img src="https://agentmods.dev/badge/skills/estuary/agent-skills/schema-define-fields.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,141 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.00099 $0.02141
Opus 5.5 $0.00040 $0.00856
Sonnet 5.5 $0.00020 $0.00428
Haiku 4.5 $0.00010 $0.00214

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

Security

Grade A, and why

schema-define-fields 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/schema-define-fields/SKILL.md · 218 lines

How it starts

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

Define Fields in the Read Schema

Add or refine specific field definitions in a collection's readSchema. The readSchema controls what materializations and derivations see when reading from a collection.

Docs: https://docs.estuary.dev/guides/customize-materialization-fields/#pruned-fields

When to Use

  • Pruned fields — Fields missing from materialization field selection because schema inference hit x-complexity-limit (1,000 fields default, 10,000 per binding for captures that emit a SourcedSchema — most SQL captures, plus Salesforce-native, HubSpot-native, Kinesis, and other CDK connectors that opt in)
  • Type refinement — Inference saw bad data and widened a field's type (e.g., [string, null, array]); you want to narrow it to [string, null] for downstream consumers
  • Define specific fields — Ensure certain fields are always present and typed when materializations read the collection
  • Protect fields from inference changes — Proactively define fields so future inference updates can't prune or retype them. Also prevents dataflow reset failures: a reset clears the inferred schema, and if a downstream materialization has required fields that only existed in inference, the publish will fail with required projection X does not exist in collection Y
  • Derivation shuffle key — Change a field's effective read-side type so it works as a shuffle key

Prerequisites

  • Know the exact JSON path of the field(s)
  • Know the field's data type
  • flowctl authenticated

Key Concepts

  • The readSchema is what materializations and derivations see. Captures write to the writeSchema (use schema-field-redaction for write-side changes).
  • Don't edit flow://connector-schema or flow://inferred-schema directly — auto-discover and inference will overwrite your changes. Add a custom entry alongside them using allOf.
  • allOf is an intersection (AND). You can narrow types and add required, but you can't widen what inference already narrowed.

Read the full file on GitHub · 218 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 Changed 3a27be54455d
  2. 3mo ago First seen · 218 lines · 99 tokens per session scan A c3a38983b198

Subscribe to this mod's changes

schema-define-fields is a skill published in the GitHub repository estuary/agent-skills (7 stars, last pushed 28d ago), licensed Apache-2.0. It adds 99 tokens to every session and 2,141 once invoked, about $0.0004 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

schema-define-fields compared with skills from other repositories

schema-define-fields next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
schema-define-fieldsestuary/agent-skillsSkill728d agoApache-2.0A99Claude Code
cocoindexcocoindex-io/cocoindexSkill12k2d agoApache-2.0A88Claude Code, Codex
confluent-cloud-cdc-tableflowconfluentinc/agent-skillsSkill6721d agoApache-2.0A203Claude Code
good-skillconfluentinc/agent-skillsSkill6721d agoApache-2.0A69Claude Code
kafka-schema-registryconfluentinc/agent-skillsSkill6721d agoApache-2.0A77Claude Code
change-data-capture-adminPranavNagrecha/AwesomeSalesforceSkillsSkill2713d agononeB76Claude Code
mysql-contextvelinussage/mysql-context-mcpSkill03mo agoMITA60Claude Code, Codex