backward-compat-governance

backward-compat-governance is a skill for Claude Code, Codex from j5ik2o/okite-ai. It costs 288 tokens per session (2,757 once invoked), scanned A, original, MIT.

A governance guide for managing backward compatibility, meaning keeping older clients and integrations working while planning when old interfaces can be removed.

In plain words
What is it for?
Use it to define public API boundaries, plan deprecation and removal, isolate adapters, document breaking changes, and add contract tests.
Why use it?
It helps prevent temporary compatibility code from spreading through the codebase and becoming permanent maintenance work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to define public API boundaries, plan deprecation and removal, isolate adapters, document breaking changes, and add contract tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j5ik2o/okite-ai/backward-compat-governance
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 j5ik2o/okite-ai --skill backward-compat-governance
Clone the repo
git clone --depth 1 https://github.com/j5ik2o/okite-ai

Made for: Claude Code, Codex.

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 backward-compat-governance

README.md
[![agentmods](https://agentmods.dev/badge/skills/j5ik2o/okite-ai/backward-compat-governance/github.svg)](https://agentmods.dev/skills/j5ik2o/okite-ai/backward-compat-governance)
Your own site
<a href="https://agentmods.dev/skills/j5ik2o/okite-ai/backward-compat-governance"><img src="https://agentmods.dev/badge/skills/j5ik2o/okite-ai/backward-compat-governance/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 backward-compat-governance

Your own site · 80×15
<a href="https://agentmods.dev/skills/j5ik2o/okite-ai/backward-compat-governance"><img src="https://agentmods.dev/badge/skills/j5ik2o/okite-ai/backward-compat-governance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 288 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,757 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.00288 $0.02757
Opus 5 $0.00144 $0.01378
Sonnet 5 $0.00058 $0.00551
Haiku 4.5 $0.00029 $0.00276

Measured 10d ago against content hash fe00e87061e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

backward-compat-governance 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 10d 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/backward-compat-governance/SKILL.md · 235 lines

How it starts

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

後方互換性ガバナンス

互換性を「残すコード」ではなく「契約と撤去計画」として管理する。

核心原則

後方互換性それ自体が悪ではない。互換性を支える「仕様・テスト・撤去計画・計測」が欠けたとき、互換要求が実装へ流れ込みゴミコード化する。

状態 互換性の扱い 結果
管理あり 契約(仕様)+ テスト + 撤去SLO + 計測 安定性の基盤(資産)
管理なし 実装でのその場しのぎ 互換層の肥大化(負債)

負債化のフィードバックループ

既存クライアント → 「壊すな」の要求
  → 公開APIの固定・増殖
  → 非推奨APIの温存 + 互換アダプタ/分岐追加
  → 複雑性増大・テスト範囲拡大
  → 保守コスト増・変更速度低下
  → 期限圧力で近道実装
  → さらにAPI固定... (ループ)

判断フロー

互換性に関わる変更を検出
    ↓
公開API境界は明確か?
    ├─ NO → 境界を仕様化してから進む
    └─ YES ↓
非推奨化ポリシーはあるか?
    ├─ NO → ポリシーを策定(撤去SLO含む)
    └─ YES ↓
互換処理はどこにあるか?
    ├─ コードベース全体に散在 → 互換層を局所化(Adapter/Strangler Fig)
    └─ 局所化済み ↓
撤去計画はあるか?
    ├─ NO → 撤去タイムライン + 計測を設定
    └─ YES → 計画に従って進行

アンチパターン検出

以下のパターンを見つけたら互換性負債の兆候:

❌ if (version < X) { /* 旧挙動 */ } else { /* 新挙動 */ }  // バージョン分岐の散在
❌ @Deprecated が付いたまま何年も残るAPI
❌ LegacyXxxAdapter, OldXxxWrapper が増殖
❌ "互換性のため" というコメントが散在
❌ 同じ機能の新旧2つのエンドポイントが併存
❌ テストに "backward compat" 系のスキップ/無視がある
❌ 破壊的変更がドキュメント化されていない

対策パターン

1. 公開API境界の明確化

互換対象を限定し、不要な互換コードを防ぐ。

✅ 公開APIを仕様として宣言する(SemVer, OpenAPI等)
✅ 内部APIと公開APIを構造的に分離する
✅ 「何を壊さないか」のスコープを文書化する

❌ すべてのAPIを暗黙的に互換対象にする
❌ 内部実装の変更が外部に漏れる構造

境界の隔離例(Linux kernelの戦略):

  • ユーザ空間ABI: 極力壊さない(安定境界)
  • カーネル内部API: 自由に変更可能(進化可能)

2. 非推奨化サイクル(Deprecation Cycle)

撤去を制度化し、コード墓場を減らす。

非推奨宣言 → 移行期間(猶予SLO) → 利用率計測 → 削除
フェーズ アクション 成果物
宣言 非推奨マーク + 代替案の提示 非推奨注釈、移行ガイド
猶予 移行支援 + 利用率追跡 テレメトリ、移行状況ダッシュボード
削除 利用ゼロ確認後に除去 削除PR、リリースノート

猶予期間の目安(プロジェクト規模に応じて調整):

  • 内部API: 1-2リリースサイクル
  • 公開ライブラリ: 最低1メジャーバージョン
  • プラットフォームAPI: 2年以上(大規模エコシステム)

3. 互換層の局所化

互換処理を「コードベース全体に散らさない」ことが主戦場。

Adapterパターン: 非互換なI/F同士の差分を一点に集約

// ❌ 散在: あちこちでバージョン分岐
function processOrder(order: Order) {
  if (order.apiVersion < 2) {
    // v1の処理...
  } else {
    // v2の処理...
  }
}

// ✅ 局所化: アダプタで吸収
interface OrderProcessor { process(order: Order): Result }

class OrderV1Adapter implements OrderProcessor {
  constructor(private inner: OrderProcessorV2) {}
  process(order: OrderV1): Result {
    const converted = convertV1toV2(order)
    return this.inner.process(converted)
  }
}

Read the full file on GitHub · 235 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. 10d ago First seen · 235 lines · 288 tokens per session scan A fe00e87061e0

Subscribe to this mod's changes

backward-compat-governance is a skill published in the GitHub repository j5ik2o/okite-ai (81 stars, last pushed 4mo ago), licensed MIT. It adds 288 tokens to every session and 2,757 once invoked, about $0.0014 per session on Opus 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-09-01.

Related

Other skills, from other repositories

platform-apex-generate

Primary Apex authoring skill for class generation, refactoring, and review. ALWAYS ACTIVATE when the user mentions Apex, .cls, triggers, or asks to create/refactor a class (service, selector, domain, batch, queueable, schedulable, invocable, DTO, utility, interface, abstract, exception, REST resource). Use this skill…

forcedotcom/sf-skills · 122 tokens

flow-next-impl-review

Carmack-level implementation review of changes via the configured backend. Use when asked to review code or a diff in a flow-next repo.

gmickel/flow-next · 34 tokens

flow-next-resolve-pr

Resolve PR review feedback. Fetches unresolved threads, triages, fixes, replies and resolves via GraphQL. Use when asked to address review comments.

gmickel/flow-next · 36 tokens

api-contract-review

Use when auditing CloudBase cloud API wrappers, MCP tools, generated action metadata, or related docs for outdated or incorrect action names, parameters, casing, request shapes, or missing contract tests, especially during periodic quality review or before preparing corrective PRs.

TencentCloudBase/CloudBase-AI-Toolkit · 54 tokens

principle-model-the-domain

Apply when writing stateful logic, or when code branches a lot or repeats a shape assumption across files. Encode the domain in a structure instead of scattered conditionals.

cursor/plugins · 39 tokens

api-reviewer

A review of an API contract, the agreed description of how software systems exchange requests, responses, events, or files.

TestAny-io/testany-agent-skills · 64 tokens