Tooluck logoTooluck
SKILL.md

api-breaking-change-detector

Agent skill fromgithub/awesome-copilot

Cross-references C# Web API controllers/DTOs against their TypeScript/JavaScript consumers (React, Angular, Vue, Svelte, Node.js, or hand-written/auto-generated HTTP clients like Fetch, Axios, NSwag) to catch contract drift in both directions: backend changes that break client applications (renamed/removed JSON keys, new required parameters, status code shifts) and frontend code sending fields the backend no longer reads. Works directly against source code, not exported OpenAPI spec files. Use when the user asks to check for breaking API changes, verify frontend/backend contract sync, or audit a DTO/controller change against its TypeScript/JS consumers before merging. Not for generating new API code from a spec (see openapi-to-application-code) or scaffolding new endpoints (see aspnet-minimal-api-openapi).

How to install api-breaking-change-detector

install api-breaking-change-detector
# install the awesome-copilot pack with the skills CLI
npx skills add github/awesome-copilot

# or add only this skill to Claude Code: copy the folder

skills/api-breaking-change-detector/

# into

~/.claude/skills/api-breaking-change-detector/ (all projects)

.claude/skills/api-breaking-change-detector/ (one project)

skills/api-breaking-change-detector/SKILL.md

MITFull file
1# API Breaking Change Detector
2
3You are cross-referencing a C# Web API's actual contract (controllers, DTOs, route definitions) against its TypeScript/JavaScript consumers to find contract drift — in both directions — before it reaches production.
4
5## When to use this
6
7Trigger when the user asks to:
8- Check whether a DTO/controller change will break frontend or client applications
9- Verify the client and backend API contract are still in sync
10- Audit a specific endpoint, or the whole API surface, for breaking changes before a release
11
12Do not use this for:
13- Generating new API code from an OpenAPI spec (see `openapi-to-application-code`)
14- Scaffolding new endpoints with OpenAPI docs (see `aspnet-minimal-api-openapi`)
15- Comparing two OpenAPI spec *files* directly — this skill reads source code, not exported specs
16
17## Process
18
191. **Discover Global JSON & Naming Policies:**
20 - Check `Program.cs` or `Startup.cs` for active JSON options (e.g. `JsonNamingPolicy.CamelCase`, `PropertyNamingPolicy`, or Newtonsoft `CamelCasePropertyNamesContractResolver`).
21 - Default to `camelCase` for TypeScript/JavaScript field mapping if global camelCase is configured, unless overridden by an explicit `[JsonPropertyName("...")]` attribute on the C# property.
22 - Ignore C# properties annotated with `[JsonIgnore]`.
23
242. **Identify the C# contract surface.** For each Controller action in scope:
25…

Excerpt shown under the repository's MIT license.

More skills in awesome-copilot

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates