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 agentmods add skills/estuary/agent-skills/schema-null-defaultsnpx skills add estuary/agent-skills --skill schema-null-defaultsgit 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-null-defaults)<a href="https://agentmods.dev/skills/estuary/agent-skills/schema-null-defaults"><img src="https://agentmods.dev/badge/skills/estuary/agent-skills/schema-null-defaults.svg" alt="Measured on agentmods" 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.00068 | $0.01288 |
| Opus 5 | $0.00034 | $0.00644 |
| Sonnet 5 | $0.00014 | $0.00258 |
| Haiku 4.5 | $0.00007 | $0.00129 |
Grade A, and why
schema-null-defaults 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 6d 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 — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Handle NULLs and Default Values
Handle NULL values and set default values for missing fields in materializations.
Docs: https://docs.estuary.dev/concepts/schemas/#default-annotations
When to Use
- Need to provide default values for missing/optional fields
- Handling nullable primary key errors in materializations (
cannot materialize collection with nullable key field unless it has a default value annotation) - Ensuring consistent values when source data has gaps
Prerequisites
- Existing collection to modify
flowctlauthenticated
Key Concepts
defaultapplies only to missing fields, not to explicitnullvalues. A field present withnullstaysnull.defaultis read by materializations only — captures and derivations ignore it. Add defaults to the readSchema so auto-discover (which only touches writeSchema/connector-schema) can't overwrite them.
Procedure
Step 1: Pull Collection Specs
flowctl catalog pull-specs --name <tenant>/<collection-name>
Step 2: Identify the Read Schema
Find the read schema file (e.g., collection.read.schema.yaml).
Typical structure for collections using schema inference:
allOf:
- $ref: flow://relaxed-write-schema
- $ref: flow://inferred-schema
Step 3: Add Default Values
Add default annotations at the top level of the readSchema, alongside allOf:
allOf:
- $ref: flow://relaxed-write-schema
- $ref: flow://inferred-schema
properties:
status:
type: string
default: "pending"
count:
type: integer
default: 0
is_active:
type: boolean
default: true
The properties block with defaults sits alongside the allOf, not inside it.
Step 4: Publish Changes
flowctl catalog publish --source flow.yaml
Common Patterns
Default for Optional String Field
allOf:
- $ref: flow://relaxed-write-schema
- $ref: flow://inferred-schema
properties:
category:
type:
- string
- "null"
default: "uncategorized"
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.
- 6d ago First seen · 172 lines · 68 tokens per session scan A 8614218ba148
schema-null-defaults is a skill published in the GitHub repository estuary/agent-skills (7 stars, last pushed 15d ago), licensed Apache-2.0. It adds 68 tokens to every session and 1,288 once invoked, about $0.0003 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.
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…
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…
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.
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.
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…
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…