github/awesome-copilot · api-breaking-change-detector · SKILL.md

接口破坏性变更检测器

交叉比对 C# Web API 控制器/DTO 与其 TypeScript/JavaScript 消费端(React、Angular、Vue、Svelte、Node.js 或手写/自动生成的 HTTP 客户端如 Fetch、Axios、NSwag),双向捕捉契约漂移:既包括破坏客户端应用的后端变更(JSON 键重命名/删除、新增必填参数、状态码变化),也包括前端发送后端已不再读取的字段。直接针对源代码工作,而非导出的 OpenAPI 规范文件。适用于用户要求检查破坏性 API 变更、验证前后端契约同步,或在合并前针对其 TypeScript/JS 消费端审计 DTO/控制器变更。不适用于从规范生成新 API 代码(参见 openapi-to-application-code)或搭建新端点(参见 aspnet-minimal-api-openapi)。

★ 39278 质量 94.0 许可证 MIT 前端 generic

这是公开 Agent Skill 的中文说明,由采集翻译或编辑润色,完整内容以上游 SKILL.md 为准。适用于 Cursor / Claude Code / Codex / Gemini。 打开上游 SKILL.md

安装

通用(npx skills)

npx skills add github/awesome-copilot -s api-breaking-change-detector

Cursor

把该 Skill 复制到项目的 .cursor/skills/api-breaking-change-detector/ 目录

Claude Code

npx skills add github/awesome-copilot -a claude-code -s api-breaking-change-detector

返回目录