data-data-contracts
Use when the user asks about data contracts, producer/consumer schema agreements, dbt model contracts, Open Data Contract Standard, schema compatibility…
от j4flmao★ 47 звёзд на GitHub
Установить data-data-contracts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Data Data Contracts
Purpose
Design and enforce data contracts between producers and consumers covering schema, semantics, SLA, ownership, versioning, and compatibility — with automated enforcement in CI/CD pipelines.
Agent Protocol
Trigger
Exact user phrases: "data contract", "data agreement", "schema contract", "producer consumer", "schema evolution", "compatibility", "data SLA", "dbt contracts", "data product contract", "contract testing", "breaking change schema".
Input Context
- Data producers (source systems, pipelines, data products)
- Data consumers (analysts, ML models, dashboards, downstream systems)
- Current schema management approach
- Data platform and transformation tools
- Compliance and governance requirements
Output Artifact
Data contract specification with schema, SLA terms, ownership; CI/CD enforcement pipeline with compatibility checks; versioning strategy.
Response Format
# Contract schema definition
# Semantic type definitions
# SLA configuration
# CI/CD enforcement pipeline
# Version compatibility matrix
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- Contract schema defined with columns, types, constraints
- Semantic types documented per field
- SLA terms defined (freshness, volume, quality)
- Ownership and escalation assigned
- Contract versioning scheme established
- CI/CD enforcement pipeline configured
- Schema compatibility checks automated
- Breaking change detection and notification workflow
Max Response Length
350 lines of configuration.
Workflow
Step 1: Define Contract Schema
contract:
version: "1.2.0"
dataset: analytics.fct_orders
schema:
columns:
- name: order_id
type: STRING
required: true
unique: true
semantic_type: ORDER_ID
tags: [PII, FINANCIAL]
- name: customer_id
type: STRING
required: true
semantic_type: CUSTOMER_ID
- name: total_amount
type: DECIMAL(18,2)
required: true
semantic_type: MONETARY_VALUE
constraints:
minimum: 0
maximum: 100000
Step 2: Define Semantic Types
| Type | Base Type | Validation | Example |
|---|---|---|---|
| ORDER_ID | STRING | Regex pattern | ORD-2026-001234 |
| CUSTOMER_ID | STRING | UUID format | a1b2c3d4-... |
| MONETARY_VALUE | DECIMAL | Positive | 150.00 |
| STRING | Email regex | [email protected] | |
| ISO_DATE | DATE | ISO 8601 | 2026-05-22 |
Step 3: Define SLA Terms
sla:
freshness:
max_age: 3600 # seconds
schedule: hourly
volume:
min_rows: 50000
max_rows: 200000
quality:
null_threshold_pct: 1.0
unique_threshold_pct: 99.9
distribution_drift_pct: 5.0
ownership:
producer: team-orders-engine
consumer: team-analytics
escalation: [email protected]
Step 4: Schema Compatibility
| Mode | Producer Can | Consumer Must | Use Case |
|---|---|---|---|
| BACKWARD | Delete column, add optional | Read old schema | Default |
| FORWARD | Add column, delete optional | Tolerate unknown | Stream consumers |
| FULL | Add optional only | Read any version | Strict governance |
| NONE | Any change | Recompile | Dev only |
Step 5: dbt Contracts
models:
- name: fct_orders
config:
contract:
enforced: true
columns:
- name: order_id
data_type: string
constraints: [not_null, unique]
meta:
semantic_type: ORDER_ID
- name: total_amount
data_type: numeric
constraints: [not_null]
Step 6: CI/CD Enforcement
jobs:
contract-check:
steps:
- uses: actions/checkout@v4
- name: Validate Contract
run: |
python scripts/validate_contract.py \
--contract contracts/fct_orders.yaml \
--schema current_schema.json \
--compatibility backward
- name: Check Breaking Changes
run: |
python scripts/check_breaking.py \
--old contracts/fct_orders_v1.yaml \
--new contracts/fct_orders_v2.yaml
- name: Validate with dbt
run: dbt run --select fct_orders --fail-fast
Step 7: Contract Versioning
Version scheme: MAJOR (breaking), MINOR (additive), PATCH (fixes). Breaking change = MAJOR bump. All consumers of previous version must acknowledge before MAJOR takes effect.
Step 8: Contract Lifecycle Management
Contracts progress through stages: DRAFT (under development), REVIEW (submitted for consumer review), ACTIVE (enforced in production), DEPRECATED (replaced by newer version, 30-day notice), RETIRED (no longer in use). Each transition is tracked with who approved and when.
Step 9: Automated Contract Testing
Beyond schema validation, test contracts with Great Expectations suites. For each
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/contract-definition.md
- references/contract-enforcement.md
- references/contract-examples.md
- references/contract-integration-patterns.md
- references/contract-lifecycle-management.md
- references/contract-migration-strategies.md
- references/contract-monitoring-enforcement.md
- references/data-contracts-governance.md
- references/data-contracts-schema-evolution.md
- references/schema-evolution-policies.md
FAQ
Что делает скилл data-data-contracts?
Use when the user asks about data contracts, producer/consumer schema agreements, dbt model contracts, Open Data Contract Standard, schema compatibility checks or data SLAs. Produces a contract spec (schema, semantics, SLA, owner) and CI enforcement. Not for Kafka Schema Registry compatibility modes (use data-schema-registry) or test suites (use data-testing).
Как установить скилл data-data-contracts?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-data-contracts запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…