Broker Api Changelog Diffing Toolのロゴ

Broker Api Changelog Diffing Tool

コミュニティ
HimanshuJ16
broker-api-changelog-diffing-tool

Use before upgrading a broker SDK or OpenAPI spec, to diff two schema snapshots for removed endpoints, newly required parameters, enum mutations and type changes so CI fails before the change reaches an order path.

概要

公開者HimanshuJ16
リポジトリAlgo-Trading-Skills
スキル名broker-api-changelog-diffing-tool
スター
50
フォーク
7
同梱ファイル
5
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

AIスキル「Broker Api Changelog Diffing Tool」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HimanshuJ16/Algo-Trading-Skills.git /tmp/Algo-Trading-Skills
mkdir -p .claude/skills
cp -r /tmp/Algo-Trading-Skills/skills/broker-api-changelog-diffing-tool .claude/skills/broker-api-changelog-diffing-tool
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

関連するリクエストがあるとすぐに、モデルが自動的にBroker Api Changelog Diffing Toolを読み込みます。

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

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

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

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

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

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

スキルの指示

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

When to Use

Invoke this before upgrading a broker SDK version or pulling a new API specification (Binance, Coinbase, IBKR Client Portal and similar publish OpenAPI documents). Broker releases introduce silent breaking changes — a removed nested response field, a parameter that quietly became mandatory, a new order status the state machine has never seen. This skill diffs two schema snapshots and classifies what changed, so a CI job can fail the build before the change reaches an order path.

The tool is a gate, and its failure modes are asymmetric: a false positive costs a developer a few minutes, a false negative ships a broken integration. Everything about its classification is biased accordingly.

When NOT to Use

  • As proof a release is safe. It compares structure only. Rate limits, auth scope changes, altered matching-engine behaviour, changed rounding, new error codes returned in a 200 body — none are expressible in a schema, and none will appear in the report. A clean diff means "nothing structural broke", not "safe to deploy".
  • On specifications it cannot fully resolve. Only local (#/...) references are followed. External and remote $refs are reported as UNRESOLVED_REF — that region was not compared, and treating the report as complete when one is present is a mistake.
  • As a Swagger 2.0 differ. #/definitions/... references resolve, but Swagger 2.0's body parameters and top-level consumes/produces are not modeled; the request-body logic assumes OpenAPI 3.x requestBody.content. Convert 2.0 documents to 3.x first.
  • As a file loader. It takes parsed Python dictionaries. Reading and parsing JSON or YAML is the caller's job.
  • For composition keywords. oneOf, anyOf, allOf and discriminator are not evaluated; schemas using them will diff only at the level the tool can see.

Prerequisites

  • Baseline (older) and target (newer) API schemas, parsed into dictionaries.
  • Both documents complete, including the components/definitions sections the $refs point at — a spec split across files must be bundled first, or references will come back unresolved.

Workflow

  1. Load both documents and let the differ reject unusable input. diff_schemas raises SchemaDiffError when a document is not a mapping or has no paths. This is deliberate: a failed download or a wrong path yields an empty document, and a differ that shrugs and reports zero changes turns the gate green at exactly the moment it matters.

  2. Diff endpoints. Removed paths and removed methods are CRITICAL_BREAKING. Only real HTTP methods are treated as operations — a Path Item Object also legally carries parameters, servers, summary, description and $ref, and path-level parameters are diffed as shared across every operation.

  3. Resolve $ref before comparing anything. Real broker specs describe payloads almost entirely through references, and a $ref schema carries no type, properties or enum of its own. Resolution follows #/components/schemas/... and #/definitions/... against the document each side came from, with cycle protection for self-referential models.

  4. Treat absence as a change. A removed response status code, a removed request or response content type, and a removed requestBody are all breaking and all invisible to a differ that walks only the keys present on both sides.

  5. Check requirement transitions in both directions. A request field or parameter moving into required breaks callers that omit it. A response field moving out of required breaks parsers that assume it is present. Both matter; they are not the same check.

  6. Classify enums by direction. A request enum constrains what the client may send, so removing a value is breaking. A response enum constrains what the client must handle, so adding a value is breaking — a new order status silently breaks an exhaustive state machine. Newly imposing a request constraint, and dropping a response constraint, are breaking too.

  7. Gate the build. report.exit_code is 0 when compatible and 1 otherwise; report.format_report() renders the findings severity-first. is_compatible is False if any change is MEDIUM_BREAKING or higher.

Full procedure: see references/workflows.md. Severity matrix and classification rationale: see references/standards.md. Printable pre-flight checklist: see assets/checklist.md.

Common Pitfalls

  • Comparing $ref schemas without resolving them. Both sides look like empty objects, every check is skipped, and a release that deleted an entire response model reports clean. This is the single most likely way to get a false green.
  • Ignoring an UNRESOLVED_REF finding. It is informational in severity but it means a region of the schema was never compared. Bundle the spec and re-run.
  • Only diffing keys present on both sides. Removals are the breaking changes; a loop written as if key in new: compare(...) cannot see any of them.
  • Treating enum changes as direction-agnostic. Flagging every set difference raises false alarms on request widenings while missing the response additions that actually break consumers.
  • Assuming a scalar type. OpenAPI 3.1 allows type: ["object", "null"] where 3.0 used nullable: true. An equality test against the literal "object" silently skips property diffing, and comparing the two spellings reports a mutation that never happened.
  • Treating every key under a path as an HTTP method. parameters is a list and summary is a string; calling .get() on them raises on a perfectly valid document.
  • Letting an empty or malformed document produce a clean report.
  • Unbounded recursion on self-referential models. Order.parent → Order is ordinary, and resolving references without a cycle guard hangs the build.
  • Reading a clean report as deployment approval. Structure is not behaviour.

Verification

  • Run the unit suite and confirm every test passes: python -m unittest discover -s skills/broker-api-changelog-diffing-tool/scripts
  • Build a fixture whose response model sits behind a $ref, delete a field from the referenced component, and confirm REMOVED_RESPONSE_FIELD is reported. A differ that passes every inline-schema test can still fail this one, which is the case that matters.
  • Confirm two empty documents raise SchemaDiffError rather than reporting compatible.
  • Confirm a self-referential model terminates.
  • Confirm direction-aware enum behaviour: adding a response enum value is breaking; adding a request enum value is not.
  • Confirm a Path Item Object carrying parameters and summary does not raise.
  • Mutate fixtures by deep-copying a baseline and changing exactly one thing, so a test for one change cannot accidentally introduce another.

Related Skills

  • broker-api-versioning-migration-playbook
  • broker-api-deprecation-notice-monitoring
  • sandbox-vs-production-endpoint-drift
  • broker-agnostic-adapter-interface

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Broker Api Changelog Diffing Tool」では何ができますか?

Use before upgrading a broker SDK or OpenAPI spec, to diff two schema snapshots for removed endpoints, newly required parameters, enum mutations and type changes so CI fails before the change reaches an order path.

TypingMindでBroker Api Changelog Diffing Toolを使うメリットは何ですか?

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

TypingMindにBroker Api Changelog Diffing Toolをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/broker-api-changelog-diffing-toolを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Broker Api Changelog Diffing Toolを使えるAIモデルはどれですか?

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

Broker Api Changelog Diffing Toolで使えるAIモデルの数に制限はありますか?

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

AIスキル「Broker Api Changelog Diffing Tool」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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