schema-null-defaults

schema-null-defaults is a skill for Claude Code from estuary/agent-skills. It costs 68 tokens per session (1,288 once invoked), scanned A, original, Apache-2.0.

A workflow for handling missing fields and default values in Estuary collections and their destinations. A default fills in a field that is missing, but does not replace a field explicitly set to NULL.

In plain words
What is it for?
Use it to set defaults for materializations, handle nullable key errors, and keep values consistent when source records have missing fields.
Why use it?
It helps prevent missing-data problems, including errors when a destination requires a non-null key field. It also clarifies where defaults must be defined so later schema discovery does not remove them.

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 to set defaults for materializations, handle nullable key errors, and keep values consistent when source records have missing fields.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/estuary/agent-skills/schema-null-defaults
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-null-defaults
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-null-defaults

README.md
[![agentmods](https://agentmods.dev/badge/skills/estuary/agent-skills/schema-null-defaults/github.svg)](https://agentmods.dev/skills/estuary/agent-skills/schema-null-defaults)
Your own site
<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/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-null-defaults

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,288 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.00068 $0.01288
Opus 5.5 $0.00027 $0.00515
Sonnet 5.5 $0.00014 $0.00258
Haiku 4.5 $0.00007 $0.00129

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

Security

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 3mo 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-null-defaults/SKILL.md · 172 lines

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
  • flowctl authenticated

Key Concepts

  • default applies only to missing fields, not to explicit null values. A field present with null stays null.
  • default is 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"

Read the full file on GitHub · 172 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. 3mo ago First seen · 172 lines · 68 tokens per session scan A 8614218ba148

Subscribe to this mod's changes

schema-null-defaults is a skill published in the GitHub repository estuary/agent-skills (7 stars, last pushed 28d 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.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-null-defaults compared with skills from other repositories

schema-null-defaults next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
schema-null-defaultsestuary/agent-skillsSkill728d agoApache-2.0A68Claude 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