schema-custom-types-ddl

schema-custom-types-ddl is a skill for Claude Code from estuary/agent-skills. It costs 97 tokens per session (2,635 once invoked), scanned A, original, Apache-2.0.

A way to control the database column types used when Estuary writes data to a destination. It supports converting values to strings or supplying a custom SQL column definition.

In plain words
What is it for?
Use it to set types such as NUMERIC(22,6), JSONB, or a chosen VARCHAR size, or to store numbers, booleans, and objects as strings.
Why use it?
It prevents problems such as large integers losing precision, monetary values being stored with unsuitable precision, or destination columns using the wrong JSON or text type.

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 types such as NUMERIC(22,6), JSONB, or a chosen VARCHAR size, or to store numbers, booleans, and objects as strings.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/estuary/agent-skills/schema-custom-types-ddl"><img src="https://agentmods.dev/badge/skills/estuary/agent-skills/schema-custom-types-ddl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,635 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.00097 $0.02635
Opus 5 $0.00048 $0.01318
Sonnet 5 $0.00019 $0.00527
Haiku 4.5 $0.00010 $0.00264

Measured 10d ago against content hash d70bd203ce36, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

schema-custom-types-ddl 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 10d 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-custom-types-ddl/SKILL.md · 234 lines

How it starts

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

Custom Column Types

Override default column types in materializations using castToString or custom DDL.

Docs: https://docs.estuary.dev/guides/advanced-usage/custom-column-types/

When to Use

  • Integer overflow or value out of range on large IDs → castToString or DDL: "NUMERIC(...)".
  • Monetary values lose precision as DOUBLEDDL: "NUMERIC(22,6)".
  • Multi-type unions ([integer, null, string]) mapped to JSON when you want a string → castToString.
  • Need a specific destination type (e.g., JSONB instead of JSON, custom VARCHAR length).

Two Options

castToString — Convert to String (Simpler)

Converts the value to its string representation before writing — numbers become "3", booleans "true", objects stringified JSON. More robust than DDL: "STRING" because it actually transforms the data.

fields:
  recommended: true
  require:
    large_id: { castToString: true }

Field configs go under fields.require. include is accepted as a legacy alias but is normalized to require on publish — if you write include, your next pull-specs will show require. Use require to avoid confusion.

DDL — Custom Column Definition (Advanced)

Specifies the exact SQL column type for the destination. The DDL string is passed verbatim to the database.

DDL only changes the column definition — it does NOT transform the data. The burden is on you to ensure the field's data is compatible with the specified type. When DDL is set, the connector disables its normal type validation for that field.

fields:
  recommended: true
  require:
    amount: { DDL: "NUMERIC(22,6)" }
    json_payload: { DDL: "JSONB" }

You can combine both: { castToString: true, DDL: "VARCHAR(100)" } — value is converted to string, then stored in the custom column type.

Prerequisites

  • Existing materialization to modify
  • For DDL: knowledge of destination database SQL types
  • flowctl authenticated

Procedure

Step 1: Pull the Materialization Spec

Read the full file on GitHub · 234 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. 10d ago First seen · 234 lines · 97 tokens per session scan A d70bd203ce36

Subscribe to this mod's changes

schema-custom-types-ddl is a skill published in the GitHub repository estuary/agent-skills (7 stars, last pushed 20d ago), licensed Apache-2.0. It adds 97 tokens to every session and 2,635 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