git.detect-breaking-changes
Analyzes commits for breaking changes in public API surfaces.
Install
mkdir -p .claude/skills/git-detect-breaking-changes && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11962" && unzip -o skill.zip -d .claude/skills/git-detect-breaking-changes && rm skill.zipInstalls to .claude/skills/git-detect-breaking-changes
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Analyzes the previous N commits for breaking changes across the CDS public API surface. Use this skill when you need to check if any recent changes will cause breaking changes in the CDS public API surface.Key capabilities
- →Analyze commits for breaking changes in CDS public API surface
- →Identify relevant commits within specified packages
- →Determine public API surface by inspecting `package.json` 'exports' map
- →Classify breaking changes into categories like removal, API change, type definition change
- →Report visual/layout changes and DOM/element structure changes
How it works
The skill uses git commands to inspect a specified number of previous commits within defined packages, determines the public API surface, and classifies changes into breaking categories.
Inputs & outputs
When to use git.detect-breaking-changes
- →Check for breaking API changes
- →Audit public package exports
- →Validate interface compatibility
About this skill
Your task
Analyze the previous $ARGUMENTS commits for breaking changes across the CDS public API surface.
Scope
Only analyze changes within these packages:
packages/web/packages/mobile/packages/common/
Determining the public API surface
Each package is fully ESM. Inspect each package's package.json "exports" map to determine the public entry points. Every symbol (component, function, hook, constant, type, interface, enum) that is reachable through these export paths is part of the public API and subject to breaking change analysis.
Follow the export chain: package.json exports -> entry index.ts barrel file -> re-exported modules. Any symbol that a consumer could import via the package's published entry points is in scope.
How to analyze
- Use
git log --oneline -$ARGUMENTS -- <package-path>for each package to identify relevant commits. - Use
git diff HEAD~$ARGUMENTS..HEAD -- <package-path>andgit show <sha>to inspect the actual changes. - For each changed file, determine if it is reachable from a public export path. If not, skip it.
- For files that are part of the public API, classify each change using the categories below.
Breaking change categories
1. Removal
A previously exported symbol (component, function, hook, type, interface, constant, enum) has been deleted or is no longer exported.
Examples:
- A component is removed from the barrel export
- A named export is deleted
- A type or interface is no longer re-exported
2. API change (props / function signature)
The call signature of a public function, hook, or component has changed in a way that would break existing consumers.
Examples:
- A required prop is added to a component
- A prop is renamed
- A prop's accepted values are narrowed (e.g., union type member removed)
- A function parameter is removed, reordered, or made required
- A hook's return type changes shape
- Default values are removed or changed in a way that alters behavior
3. Type definition change
A publicly exported type, interface, or enum has been modified in a way that would cause consumer TypeScript compilation to fail.
Examples:
- A property is removed from an exported interface
- A type union is narrowed
- An enum member is removed or renamed
- Generic type parameters are added, removed, or reordered
- A type is changed from a type alias to an interface (or vice versa) in a way that breaks assignability
4. Visual / layout change
A change to styles, spacing, sizing, or visual output that would shift the consumer's application layout or appearance without any API-level change.
Examples:
- Default margin, padding, or gap values changed
- Component dimensions (width, height, min/max) changed
- CSS display, position, or flex properties changed
- Default visual variants or theme token mappings changed
- Border, border-radius, or shadow values changed
- Font size, line height, or font weight defaults changed
5. DOM / element structure change (web packages only)
Applies to packages/web/ only. Changes to the rendered HTML element tree that could break consumer CSS selectors or DOM queries targeting internal component structure.
Examples:
- Wrapper elements added or removed
- Element tag names changed (e.g.,
div->section) - Nesting order of child elements changed
- CSS class names or data attributes on internal elements removed or renamed
roleoraria-*attributes removed or changed
6. Behavioral change
A change in runtime behavior that could break consumer expectations even though the API signature remains the same.
Examples:
- Event handler calling conventions changed (e.g., different event object shape)
- State management or controlled/uncontrolled behavior changed
- Animation or transition behavior changed
- Focus management behavior changed
- Accessibility behavior changed (e.g., keyboard navigation patterns)
Output format
Organize findings by package. Within each package, group by category. For each breaking change, include:
- Entity: The name of the affected component, type, function, hook, etc.
- Category: One of the categories above
- Description: A concise explanation of what changed and why it is breaking
- File: The file path where the change occurred
- Commit: The commit SHA that introduced the change
Use this structure:
packages/<package-name>/
Removals
| Entity | Description | File | Commit |
|---|---|---|---|
| ... | ... | ... | ... |
API Changes
| Entity | Description | File | Commit |
|---|---|---|---|
| ... | ... | ... | ... |
(Continue for each category that has findings. Omit empty categories.)
(Repeat for each package that has breaking changes. Omit packages with no breaking changes.)
Summary
After the per-package breakdown, provide a brief summary section:
- Total breaking changes by category across all packages
- Highest-risk changes: call out the changes most likely to cause widespread consumer breakage
- Migration notes: brief guidance on what consumers would need to do to adapt to each breaking change
Important guidelines
- Be thorough but precise. Do not flag internal refactors that do not affect the public API.
- When in doubt about whether something is publicly exported, trace the export chain from
package.jsonexports -> barrel files -> source modules. - For visual/layout changes, note the before and after values when possible.
- For DOM structure changes, describe the structural difference clearly enough that a consumer could update their CSS selectors.
- Do not speculate. Only report changes you can verify from the diff.
When not to use it
- →When analyzing internal refactors that do not affect the public API
- →When the analysis needs to speculate on changes not verifiable from the diff
- →When the scope is outside `packages/web/`, `packages/mobile/`, and `packages/common/`
Limitations
- →It only analyzes changes within `packages/web/`, `packages/mobile/`, and `packages/common/`.
- →It does not flag internal refactors that do not affect the public API.
- →It does not speculate; it only reports changes verifiable from the diff.
How it compares
This skill automates the detection and classification of breaking changes in a public API, providing a structured report, unlike manually reviewing commit histories and diffs.
Compared to similar skills
git.detect-breaking-changes side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| git.detect-breaking-changes (this skill) | 0 | 2mo | Review | Advanced |
| github-code-review | 13 | 2mo | Review | Advanced |
| reviewing-code | 21 | 8mo | No flags | Intermediate |
| reviewing-nextjs-16-patterns | 11 | 8mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by coinbase
View all by coinbase →You might also like
github-code-review
ruvnet
Comprehensive GitHub code review with AI-powered swarm coordination
reviewing-code
CaptainCrouton89
Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.
reviewing-nextjs-16-patterns
djankies
Review code for Next.js 16 compliance - security patterns, caching, breaking changes. Use when reviewing Next.js code, preparing for migration, or auditing for violations.
cookbook-audit
anthropics
Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.
pr-review
pytorch
Review PyTorch pull requests for code quality, test coverage, security, and backward compatibility. Use when reviewing PRs, when asked to review code changes, or when the user mentions "review PR", "code review", or "check this PR".
find-bugs
davila7
Find bugs, security vulnerabilities, and code quality issues in local branch changes. Use when asked to review changes, find bugs, security review, or audit code on the current branch.