schema-field-redaction

schema-field-redaction is a skill for Claude Code from estuary/agent-skills. It costs 90 tokens per session (2,021 once invoked), scanned A, original, Apache-2.0.

A guide for marking sensitive fields in Estuary schemas so they are either removed or replaced with a hash before data is stored or sent onward. Sensitive fields can include personal information, passwords, and API keys.

In plain words
What is it for?
Use it to block fields completely or hash them while preserving the ability to match records. Historical data requires a reset and backfill to apply the change.
Why use it?
It prevents protected values from reaching Estuary storage, logs, or downstream systems. This supports data-minimisation and privacy requirements such as GDPR, HIPAA, and CCPA.

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 block fields completely or hash them while preserving the ability to match records. Historical data requires a reset and backfill to apply the change.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/estuary/agent-skills/schema-field-redaction"><img src="https://agentmods.dev/badge/skills/estuary/agent-skills/schema-field-redaction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,021 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.00090 $0.02021
Opus 5.5 $0.00036 $0.00808
Sonnet 5.5 $0.00018 $0.00404
Haiku 4.5 $0.00009 $0.00202

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

Security

Grade A, and why

schema-field-redaction 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.

skills/schema-field-redaction/SKILL.md · 197 lines

How it starts

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

Protect Sensitive Data with Field Redaction

Add redaction annotations to your collection schema to protect sensitive data at the source. Redacted fields are blocked or hashed before documents are stored or materialized.

When to Use

  • PII Protection: Hash emails, SSNs, phone numbers for GDPR/HIPAA/CCPA compliance
  • Credential Security: Block passwords, API keys, tokens from ever leaving the capture
  • Internal Fields: Remove internal-only metadata before materialization
  • Data Minimization: Ensure only necessary data reaches downstream systems

How Redaction Works

Redaction is applied at write time — sensitive data never reaches Estuary storage, logs, or downstream materializations. This is the earliest point to remove fields, before derivations or materialization field selection.

Redaction only applies to documents captured after publishing the annotation. To redact historical data, trigger a dataflow reset backfill on the capture.

Redaction Strategies

Strategy Effect Use When
block Removes the field entirely Field should never exist downstream
sha256 Replaces value with salted hash Need to join/match on field (hash is deterministic per task)

Prerequisites

  • flowctl installed and authenticated
  • Write access to the collection you want to modify
  • Know which fields contain sensitive data

Key Constraints

  1. Cannot redact key fields — Would break collection semantics.
  2. block on required fields — Validation fails with `block` redact strategy cannot be applied at '/path/to/field' because it must exist (the path is a JSON Pointer to the field) UNLESS the read schema references the inferred schema (flow://inferred-schema), in which case the validator suppresses that error automatically. For explicit schemas, remove the field from required first (see Troubleshooting).
  3. sha256 on non-string-typed fields — At runtime the hasher accepts any type. But at publish time, validation fails with /path/to/field has 'sha256' redact strategy but cannot be a string (types are "<type>") if the field's declared type set has no overlap with string. A union like ["string","null"] or ["string","integer"] passes — only a field that cannot be a string at all (e.g., pure integer or pure object) is rejected.

Read the full file on GitHub · 197 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. 2mo ago Changed 168e8af4c6b2
  2. 3mo ago First seen · 197 lines · 90 tokens per session scan A c5f2df53d606

Subscribe to this mod's changes

schema-field-redaction is a skill published in the GitHub repository estuary/agent-skills (7 stars, last pushed 28d ago), licensed Apache-2.0. It adds 90 tokens to every session and 2,021 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.

Related

schema-field-redaction compared with skills from other repositories

schema-field-redaction next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
schema-field-redactionestuary/agent-skillsSkill728d agoApache-2.0A90Claude Code
change-data-capture-adminBanibrataChatterjee/AwesomeSalesforceSkillsSkill57mo agoApache-2.0B50Claude Code, Codex
stream-processing-designerbookforge-ai/bookforge-skillsSkill437mo agoCC-BY-SA-4.0A240Claude Code
prowler-complianceprowler-cloud/prowlerSkill15ktodayApache-2.0A189Claude Code
cocoindexcocoindex-io/cocoindexSkill12k2d agoApache-2.0A88Claude Code, Codex
policysemantica-agi/semanticaSkill15k2d agoMITA36Claude Code
open-weightsericrisco/rsc-harnessSkill695yesterdayMITA146Claude Code, Codex