AGENT SKILL

API 弃用与兼容性分析

deprecation-policy

比较不同引用(refs)之间的 API/ABI 接口,标记不兼容变更,并为库项目生成弃用说明和变更日志。

License 许可
MIT
所属仓库
jmagly/aiwg
最近更新
2026-11-14
Stars
★ 229
Forks
36

01 前言 Front Matter

name
deprecation-policy
errors
[ { "unsupported-language": "no supported public API extractor detected" } ]
ensures
[ { "report": "API additions, removals, ABI-impacting changes, and missing deprecation notices" }, { "changelog-notes": "draft deprecation/removal notes when requested" } ]
requires
[ { "refs": "base and head git refs" }, { "project-kind": "library or SDK project" } ]
namespace
aiwg
platforms
[ "all" ]
invariants
[ "experimental APIs must be clearly marked before they are exempted", "stable API removals require a major release or documented deprecation window" ]
commandHint
{ "model": "haiku", "category": "security", "modelRole": "efficiency", "modelTier": "economy", "allowedTools": "Read, Bash, Grep", "argumentHint": "[--base <ref>] [--head <ref>] [--language c|cpp|rust|go|typescript|auto] [--emit-changelog]", "orchestration": false }
description
Compare API/ABI surfaces between refs, flag incompatible changes, and generate deprecation/changelog notes for library projects

02 资源文件 12

03 SKILL.md 正文

Deprecation Policy

Compare public API/ABI surfaces and enforce the api-abi-stability rule for library and SDK projects. This maps curl Practice 26 into AIWG release governance.

Language Strategies

  • C/C++: compare exported headers, function prototypes, struct layout, and symbol lists.
  • Rust: integrate cargo public-api where available; report removed exported items.
  • Go: run apidiff from golang.org/x/exp/cmd/apidiff.
  • TypeScript: use api-extractor or declaration-file diffs.

Output

The report classifies changes as additive, compatible, deprecated, removal, ABI-breaking, or experimental. It also drafts changelog text for each deprecation or removal.

Composition

Use with flow-change-control for request-level approval. This skill owns the API/ABI technical check and release-note evidence.

References

  • agentic/code/frameworks/security-engineering/rules/api-abi-stability.md
  • SemVer
  • curl ABI policy

04 同仓库更多 Skills