Compare OpenAPI and GraphQL schemas to identify breaking changes and incompatibilities. Provides detailed diff output for schema migrations.
Scanned 9/7/2026
Install to Claude Code
npx -y skills add jiayaoqijia/cryptoskill --skill xspoonai-official-api-contract-diff --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Xspoonai Official Api Contract Diff?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/jiayaoqijia-xspoonai-official-api-contract-diff)More formats (shields.io, HTML) on the badges page.
---
name: api-contract-diff
track: enterprise-skills
version: 0.1.0
summary: Compare OpenAPI and GraphQL schemas for breaking changes
---
## Description
Compare OpenAPI and GraphQL schemas to identify breaking changes and incompatibilities. Provides detailed diff output for schema migrations.
## Inputs
```json
{
"schema_type": "openapi|graphql",
"schema1": "First schema object",
"schema2": "Second schema object"
}
```
## Outputs
```json
{
"ok": true,
"data": {
"changes": [],
"breaking_changes": []
}
}
```
## Usage
### Demo Mode
```bash
python scripts/main.py --demo
```
### Compare Schemas
```bash
echo '{"schema_type": "openapi", "schema1": {}, "schema2": {}}' | python3 scripts/main.py
```
## Examples
### Example 1: Compare OpenAPI Schemas
```bash
$ echo '{"schema_type": "openapi", "schema1": {}, "schema2": {}}' | python3 scripts/main.py
{
"ok": true,
"data": {
"changes": ["Removed endpoint /v1/users"],
"breaking_changes": ["Parameter type changed from string to integer"]
}
}
```
## Error Handling
When an error occurs, the skill returns:
```json
{
"ok": false,
"error": "Error description",
"details": {
"schema_type": "Invalid schema type"
}
}
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!