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 schema-define-fieldsgit 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/schema-define-fields)<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.
<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>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.00099 | $0.02141 |
| Opus 5.5 | $0.00040 | $0.00856 |
| Sonnet 5.5 | $0.00020 | $0.00428 |
| Haiku 4.5 | $0.00010 | $0.00214 |
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.
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 aSourcedSchema— 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
requiredfields that only existed in inference, the publish will fail withrequired 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
flowctlauthenticated
Key Concepts
- The readSchema is what materializations and derivations see. Captures write to the writeSchema (use
schema-field-redactionfor write-side changes). - Don't edit
flow://connector-schemaorflow://inferred-schemadirectly — auto-discover and inference will overwrite your changes. Add a custom entry alongside them usingallOf. allOfis an intersection (AND). You can narrow types and addrequired, but you can't widen what inference already narrowed.
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.
- 2mo ago Changed 3a27be54455d
- 3mo ago First seen · 218 lines · 99 tokens per session scan A c3a38983b198
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.
schema-define-fields compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| schema-define-fieldsestuary/agent-skills | Skill | 7 | 28d ago | Apache-2.0 | A | 99 | Claude Code |
| cocoindexcocoindex-io/cocoindex | Skill | 12k | 2d ago | Apache-2.0 | A | 88 | Claude Code, Codex |
| confluent-cloud-cdc-tableflowconfluentinc/agent-skills | Skill | 67 | 21d ago | Apache-2.0 | A | 203 | Claude Code |
| good-skillconfluentinc/agent-skills | Skill | 67 | 21d ago | Apache-2.0 | A | 69 | Claude Code |
| kafka-schema-registryconfluentinc/agent-skills | Skill | 67 | 21d ago | Apache-2.0 | A | 77 | Claude Code |
| change-data-capture-adminPranavNagrecha/AwesomeSalesforceSkills | Skill | 27 | 13d ago | none | B | 76 | Claude Code |
| mysql-contextvelinussage/mysql-context-mcp | Skill | 0 | 3mo ago | MIT | A | 60 | Claude Code, Codex |