Data Contract Testing With Schema Registryのロゴ

Data Contract Testing With Schema Registry

コミュニティ
vaquarkhan
data-contract-testing-with-schema-registry

スキーマレジストリと互換性チェックを使ったデータコントラクトのテストをAIエージェントが進めるのを支援します。イベントコントラクト、ストリームのスキーマ進化、コンシューマーとの互換性、スキーマ管理システムのリリース判定を検証するときに使います。

Add to TypingMind

概要

公開者vaquarkhan
リポジトリdata-engineering-agent-skills
スキル名data-contract-testing-with-schema-registry
スター
60
フォーク
8
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    vaquarkhanがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Data Contract Testing With Schema Registry」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/vaquarkhan/data-engineering-agent-skills/tree/main/skills/data-contract-testing-with-schema-registry
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vaquarkhan/data-engineering-agent-skills.git /tmp/data-engineering-agent-skills
mkdir -p .claude/skills
cp -r /tmp/data-engineering-agent-skills/skills/data-contract-testing-with-schema-registry .claude/skills/data-contract-testing-with-schema-registry
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでData Contract Testing With Schema Registryを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にData Contract Testing With Schema Registryを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Data Contract Testing With Schema Registryは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Data Contract Testing With Schema Registry

Overview

Use this skill when contracts must be tested through registry-backed compatibility rules, not only by convention. It helps agents make event contract validation a blocking part of build and release behavior with automated testing, consumer impact analysis, and evidence-driven release gates.

When to Use

  • testing event contract changes before production release
  • validating schema compatibility as part of CI/CD pipelines
  • coordinating producer and consumer schema evolution across teams
  • enforcing registry-backed contract quality gates before deployment
  • building release evidence that proves schema safety

Do not use this when schemas are not managed through a registry or when the system has no shared event contracts.

Workflow

  1. Define the contract and compatibility target per subject. Include:

    • which schema registry subjects are in scope
    • the compatibility level required: BACKWARD, FORWARD, FULL, or TRANSITIVE variants
    • who owns the contract (producing team, platform team, or shared)
    • which consumers depend on each subject and their minimum supported version
  2. Implement contract tests in CI.

    • register the proposed schema against the registry's compatibility endpoint
    • use the registry's /compatibility API to check before merging
    • fail the build if compatibility is violated
    • produce test output showing which rules passed or failed
    • run tests against both the latest registered version and specific consumer versions
  3. Test representative producer and consumer scenarios.

    • serialize sample records with the new schema and deserialize with the old
    • verify that default values produce correct behavior for removed or added fields
    • test edge cases: null handling, enum additions, nested record changes
    • for Protobuf: test field number stability and reserved field behavior
    • for Avro: test union type evolution and logical type compatibility
  4. Validate downstream consumer impact before release.

    • identify all registered consumers of the subject
    • test that each consumer's current schema can read the proposed producer schema
    • document which consumers need upgrades for breaking changes
    • define the deployment order: consumer upgrade before or after producer change
    • communicate schema changes through established team channels
  5. Tie contract test results to release gates.

    • schema compatibility check must pass before deployment proceeds
    • produce structured evidence (JSON report) of compatibility test results
    • store evidence alongside the release artifact for audit
    • block production deploys on compatibility failures — no manual overrides without review
    • include contract test results in pull request checks
  6. Plan for contract migrations and breaking changes.

    • when breaking changes are necessary, define a migration plan
    • create a new subject or version namespace for the breaking schema
    • run both old and new contracts in parallel during migration
    • define a deprecation timeline for the old contract
    • document the consumer migration path with explicit deadlines

Common Rationalizations

RationalizationReality
"We check compatibility manually before releasing."Manual checks are inconsistent and skip edge cases. Automated registry-backed testing catches issues that humans miss under time pressure.
"Adding a field is always safe."Adding a required field without a default breaks backward compatibility. Adding an optional field is safe only if consumers handle absence correctly.
"We only have one consumer so contract testing is overhead."Consumers multiply over time. Establishing contract testing early prevents breaking changes from accumulating technical debt.
"The registry will reject incompatible schemas anyway."Registry rejection at deploy time is too late. Testing in CI catches issues before code is merged and before release pressure builds.

Red Flags

  • no contract tests in CI — compatibility is checked only at deploy time
  • proposed schemas are registered directly without prior compatibility validation
  • consumer dependency map does not exist — nobody knows who reads the events
  • breaking changes are deployed with "we'll fix consumers later" attitude
  • test output is not stored — no evidence trail for audits
  • compatibility policy is set to NONE in production subjects
  • contract test failures are routinely overridden without review
  • migration plans for breaking changes have no timeline or consumer notification

Verification

  • Compatibility targets are defined per subject and match consumer expectations
  • Contract tests run in CI and block merges on compatibility failures
  • Producer and consumer serialization/deserialization are tested with sample records
  • Consumer dependency map is documented and up to date
  • Contract test evidence is produced, stored, and linked to releases
  • Breaking changes have explicit migration plans with timelines
  • Deployment order (producer-first vs consumer-first) is defined for each change type

よくある質問

AIスキル「Data Contract Testing With Schema Registry」では何ができますか?

スキーマレジストリと互換性チェックを使ったデータコントラクトのテストをAIエージェントが進めるのを支援します。イベントコントラクト、ストリームのスキーマ進化、コンシューマーとの互換性、スキーマ管理システムのリリース判定を検証するときに使います。

TypingMindでData Contract Testing With Schema Registryを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Data Contract Testing With Schema Registryはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにData Contract Testing With Schema Registryをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/vaquarkhan/data-engineering-agent-skills/tree/main/skills/data-contract-testing-with-schema-registryを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Data Contract Testing With Schema Registryを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Data Contract Testing With Schema Registryで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもData Contract Testing With Schema Registryを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Data Contract Testing With Schema Registry」は無料ですか?

はい。vaquarkhanがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇