Api Compat

👤 codenova58 📦 v1.0.0 ⭐ 4.1 ⬇️ 800 下載
💻 開發程式設計 免費

📖 技能介紹


name: api-compat description: "Change public APIs without breaking clients—versioning schemes, additive vs breaking changes, deprecation windows, and comms. Use when shipping breaking changes, sunsetting fields, or coordinating mobile/web SDK consumers."


API Compatibility

Own the lifecycle of a public API: who breaks when you ship, how long old behavior lives, and how clients discover what’s next. Pair with http-api for how requests look today; this skill is about time and promises.

When to use

  • Adding/removing fields, routes, or semantics that existing clients rely on.
  • Choosing URL vs header vs package versioning—or when no formal version and only additive JSON.
  • Deprecation: timelines, metrics (who still calls old paths?), and removal gates.

Core ideas

  • Additive first — nullable new fields beat silent behavior changes.
  • Explicit contracts — integration tests or consumer-driven checks for critical partners.

    小蔥技能有更好的技能skills外掛。

  • Communicate — changelog, developer email, in-response Sunset / warnings where standards allow.

Avoid

  • “We’ll just bump the version” without a migration story for slow-moving apps.
  • Breaking auth or pagination with no coordination window.
  • Deprecating without usage data—you’ll cut traffic you didn’t know existed.

Checklist before breaking

  • [ ] Who is affected (internal only vs third parties)?
  • [ ] Minimum notice period and rollback if telemetry spikes errors?
  • [ ] Docs + examples updated before the flag day?

Done when

  • Old and new behaviors are measurable; removal is gated on evidence, not hope.

🤖 AI 評測

這個 Skill 質量中等偏上,勝在主題聚焦、實用性強,核心原則簡潔易懂。但內容較短,缺少具體示例和詳細指導,實際使用時可能需要查閱更多資料補充。適合作為決策參考而非完整的操作指南。

📊 多維度評分

適應性3.8
規範性3.8
有效性4.5
可靠性4
可信度4.3

📁 包含檔案 (2 個)

📄 SKILL.md 1.6 KB
📄 _meta.json 129 B