Breaking Change Detector
Skill9 starsChanged 8 months agoMITView on GitHub
Compares two versions of a codebase or API and flags all breaking changes with migration hints.
In this repository61 other files it gives its agents.
- Accessibility Audit HelperSkill
- Agent Context File WriterSkill
- Agent Evaluation Framework BuilderSkill
- AI Feature Spec WriterSkill
- API Documentation GeneratorSkill
- REST API Endpoint DesignerSkill
- Architecture ExplainerSkill
- Article RepurposerSkill
- Auth Flow PlannerSkill
- Blog Outline GeneratorSkill
- Bug Root Cause AnalyzerSkill
- Caching Strategy AdvisorSkill
- Changelog CuratorSkill
- Code Review ChecklistSkill
- Database Schema ReviewerSkill
- Docker Compose GeneratorSkill
- Documentation Gap FinderSkill
- Edge Case DiscoverySkill
- Error Log SummarizerSkill
- FAQ GeneratorSkill
- Flaky Test AnalyzerSkill
- Form UX OptimizerSkill
- Git Commit WriterSkill
- Hallucination Risk ReviewerSkill
- Hybrid Search ArchitectSkill
- Incident Postmortem WriterSkill
- Issue to PR PlannerSkill
- Landing Page Copy ImproverSkill
- LangGraph State Machine DesignerSkill
- LLM Cost OptimizerSkill
- LLM Tracing and Observability SetupSkill
- MCP Integration AssistantSkill
- MCP Server BuilderSkill
- Migration Guide WriterSkill
- Newsletter Summary WriterSkill
- Observability ChecklistSkill
- Playwright Test BuilderSkill
- PR Description WriterSkill
- Prompt Injection Defense AuditorSkill
- Prompt RefinerSkill
- Prompt Version Control WorkflowSkill
- RAG Chunking Strategy AdvisorSkill
- RAG Workflow PlannerSkill
- React Component ReviewerSkill
- README WriterSkill
- Refactor PlannerSkill
- Release Notes GeneratorSkill
- Responsive Layout ReviewerSkill
- SDK Quickstart WriterSkill
- SEO Content OptimizerSkill
- SEO Metadata GeneratorSkill
- Social Post Thread WriterSkill
- Sprint Summary GeneratorSkill
- SQL Query OptimizerSkill
- Stack Trace AnalyzerSkill
- Technical Blog Post WriterSkill
- Tech Debt AuditorSkill
- Troubleshooting Guide BuilderSkill
- Unit Test ImproverSkill
- Unit Test WriterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Use this before publishing a new package version, before deploying an API change that existing clients depend on, or during a code review …
- Very specific: line 35
Add the instructions below to your .cursorrules or paste them into the Cursor AI pane.
- Distinctive: line 43
When asked to detect breaking changes, follow this process:
- Distinctive: line 47
Before comparing, identify what is "public" — i.e., what external callers or consumers depend on:
- Distinctive: line 78
Every breaking change entry must include:
- Distinctive: line 122
If a change is ambiguous (e.g., a behavior change that some callers rely on but it was arguably a bug), flag it explicitly as "Potentially …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Breaking Change Detector
What this skill does
This skill directs the agent to compare two versions of a codebase, API schema, or interface definition and systematically identify every change that could break existing callers. It classifies each change by severity, explains why it is breaking, and provides a concrete migration hint so consumers know exactly what they need to update.
Use this before publishing a new package version, before deploying an API change that existing clients depend on, or during a code review to catch unintended contract changes.
How to use
Claude Code / Cline
Copy this file to .agents/skills/breaking-change-detector/SKILL.md in your project root.
Then ask:
- "Use the Breaking Change Detector skill to compare the old and new versions of our API."
- "I changed
src/auth/index.ts. Use the Breaking Change Detector skill to find any breaking changes."
Provide: the old version (paste, file path, or git ref) and the new version.
Cursor
Add the instructions below to your .cursorrules or paste them into the Cursor AI pane. Then share both the old and new code side by side.
Codex
Paste both versions clearly labeled as "OLD VERSION" and "NEW VERSION" and ask Codex to follow the instructions below.
The Prompt / Instructions for the Agent
When asked to detect breaking changes, follow this process:
Step 1 — Establish what constitutes the public contract
Before comparing, identify what is "public" — i.e., what external callers or consumers depend on:
- For a library: all exported functions, types, interfaces, and constants
- For a REST API: all endpoints (method + path), request body shapes, response shapes, status codes, and headers
- For a database schema: table names, column names, data types, nullability, and unique constraints
- For a TypeScript/JavaScript module: all
exportstatements
Changes to internal/private code are not breaking changes unless they affect something observable from outside.
Step 2 — Categorize each difference
Compare the old and new versions and classify every difference into one of these categories:
Breaking changes (must flag)
- Removed export, endpoint, table, or column
- Renamed export, endpoint, table, or column (removal + add = breaking)
- Changed function signature: removed a parameter, changed a required parameter's type, changed return type in an incompatible way
- Changed REST response: removed a field, changed a field's type, changed a status code that callers branch on
- Added a required field to a request body or function parameter
- Narrowed a type (e.g.,
string→'a' | 'b') - Changed behavior that existing callers rely on (e.g., changed sort order, changed error format)
Non-breaking changes (informational only)
- Added a new optional parameter (with a default value)
- Added a new export, endpoint, or field
- Widened a type (e.g.,
'a' | 'b'→string) - Internal refactoring with identical observable behavior
- Performance improvements
- New optional fields in a response
Step 3 — For each breaking change, produce a migration hint
Every breaking change entry must include:
- What changed (old vs new)
- Why it is breaking (what callers were relying on)
- What callers must do to migrate (specific, actionable)
Step 4 — Format the output
## Breaking Change Report
### Summary
- Breaking changes: N
- Non-breaking changes: N (informational)
---
### Breaking Changes
#### 1. [Short title]
- **Type**: [Removed / Renamed / Signature change / Type change / Behavior change]
- **Location**: `path/to/file.ts` or `POST /api/endpoint`
- **Old**: [What it was before]
- **New**: [What it is now, or "Removed"]
- **Why it breaks**: [What callers were depending on]
- **Migration**: [Exactly what callers need to change]
#### 2. ...
---
### Non-Breaking Changes (Informational)
| # | Location | Change | Notes |
|---|----------|--------|-------|
| 1 | `src/utils.ts` | Added `formatCurrency()` export | New addition, no action needed |
---
### Recommended Version Bump
[Based on semver: MAJOR if any breaking changes exist, MINOR if only additions, PATCH if only bug fixes]Step 5 — Flag ambiguous cases
If a change is ambiguous (e.g., a behavior change that some callers rely on but it was arguably a bug), flag it explicitly as "Potentially breaking — review required" with context explaining the ambiguity.
Example
Input to Agent:
"Use the Breaking Change Detector skill. Here are the two versions of our user service interface:
OLD:
export function getUser(id: string): Promise<{ id: string; name: string; email: string }> export function createUser(name: string, email: string): Promise<{ id: string }> export function deleteUser(id: string): Promise<void>NEW:
export function getUser(id: string): Promise<{ id: string; name: string; email: string; role: string }> export function createUser(input: { name: string; email: string; role: string }): Promise<{ id: string }> ```"
Output from Agent:
Breaking Change Report
Summary
- Breaking changes: 2
- Non-breaking changes: 1 (informational)
Breaking Changes
1.
createUsersignature changed from positional args to object input
- Type: Signature change
- Location:
userService.ts- Old:
createUser(name: string, email: string)- New:
createUser(input: { name: string; email: string; role: string })- Why it breaks: All callers passing
createUser("Alice", "alice@example.com")will break at compile time. Also,roleis now required — callers that don't provide it will fail.- Migration: Update all call sites to
createUser({ name: "Alice", email: "alice@example.com", role: "user" }). Decide on a default role value for existing callers.2.
deleteUserremoved
- Type: Removed
- Location:
userService.ts- Old:
deleteUser(id: string): Promise<void>- New: Not present
- Why it breaks: Any caller invoking
deleteUser()will get a compile error or runtime error.- Migration: Find a replacement for delete functionality or soft-delete via
updateUser. Audit all usages withgrep -r "deleteUser".Non-Breaking Changes
# Location Change Notes 1 getUserreturn typeAdded role: stringfield to responseAdditive — existing callers can ignore it Recommended Version Bump
MAJOR — two breaking changes require a major version bump.
Notes
- For REST APIs, also check HTTP status codes — changing a 404 to a 400 can break callers that branch on status codes.
- For database schemas, dropping a column is always breaking even if no application code references it — other services may query directly.
- This skill does not apply the migrations — it produces the report. Use the Migration Guide Writer skill to turn the report into a full migration guide.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

