Logo: Broker Api Changelog Diffing Tool

Broker Api Changelog Diffing Tool

Communautéit
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.

Iwwersiicht

EditeurHimanshuJ16
RepositoryAlgo-Trading-Skills
Skill-Nummbroker-api-changelog-diffing-tool
Stären
50
Forks
7
Matgeliwwert Dateien
5
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    HimanshuJ16 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Broker Api Changelog Diffing Tool an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/broker-api-changelog-diffing-tool
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Broker Api Changelog Diffing Tool an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Broker Api Changelog Diffing Tool automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Broker Api Changelog Diffing Tool net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Broker Api Changelog Diffing Tool op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Broker Api Changelog Diffing Tool besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Broker Api Changelog Diffing Tool an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/broker-api-changelog-diffing-tool an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Broker Api Changelog Diffing Tool benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Broker Api Changelog Diffing Tool benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Broker Api Changelog Diffing Tool domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Broker Api Changelog Diffing Tool gratis?

Jo. HimanshuJ16 huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇