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
- 参考文档references/api_reference.md956 B
- 参考文档references/examples.md9.6 KB
- 参考文档references/functions.md4.4 KB
- 参考文档references/getting-started.md1.9 KB
- 参考文档references/gpu.md3.5 KB
- 参考文档references/images.md5.3 KB
- 参考文档references/resources.md2.6 KB
- 参考文档references/scaling.md5.2 KB
- 参考文档references/scheduled-jobs.md5.9 KB
- 参考文档references/secrets.md3.8 KB
- 参考文档references/volumes.md5.9 KB
- 参考文档references/web-endpoints.md6.8 KB
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-apiwhere available; report removed exported items. - Go: run
apidifffromgolang.org/x/exp/cmd/apidiff. - TypeScript: use
api-extractoror 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
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.