一键导入
api-contract-validation
API contract validation patterns for ensuring client-side models match backend JSON responses. Tech-stack agnostic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
API contract validation patterns for ensuring client-side models match backend JSON responses. Tech-stack agnostic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compressed-prose response style for the orchestrator (opt-in via behavior.caveman_mode). Drops articles, fillers, and transitional prose; preserves code, paths, JSON/TOML, and quoted text verbatim.
Maestro project patterns — Rust CLI with ratatui TUI, tokio async, Claude CLI process management, and stream-json parsing.
TEMPLATE - Backend API development patterns. Copy and customize for your backend framework (Express, Django, Spring Boot, FastAPI, etc.)
TEMPLATE - Frontend web development patterns. Copy and customize for your frontend framework (React, Vue, Angular, Svelte, etc.)
Defensive patterns for GitHub (gh) and Azure DevOps (az) CLI interactions — error handling, idempotency, rate limits, missing resources.
API contract validation patterns for ensuring client-side models match backend JSON responses. Prevents decoding failures from schema mismatches. Tech-stack agnostic.
| name | api-contract-validation |
| version | 2.0.0 |
| description | API contract validation patterns for ensuring client-side models match backend JSON responses. Tech-stack agnostic. |
| allowed-tools | Read, Grep, Glob, WebSearch |
Prevent bugs where client-side models don't match backend API responses.
docs/api-contracts/{feature}-{endpoint}.json
{
"$schema": "api-contract-v1",
"endpoint": "GET /api/items",
"description": "What this endpoint does",
"response": {
"items": {
"type": "array",
"items": {
"id": { "type": "string", "required": true },
"name": { "type": "string", "required": true }
}
}
}
}