schema-define-fields

schema-define-fields is a skill for Claude Code, Codex from estuary/agent-skills. It costs 99 tokens per session (2,145 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 CodeCodex

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

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.

agentmods
npx agentmods add skills/estuary/agent-skills/schema-define-fields
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, Codex.

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.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.svg" alt="Measured on agentmods" 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,145 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.02145
Opus 5 $0.00049 $0.01073
Sonnet 5 $0.00020 $0.00429
Haiku 4.5 $0.00010 $0.00215

Measured 5d ago against content hash c3a38983b198, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 15d ago), licensed Apache-2.0. It adds 99 tokens to every session and 2,145 once invoked, about $0.0005 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