api-contract-review
review request, response, event, and schema contracts for compatibility and consumer safety. use when http, openapi, asyncapi, protobuf, json schema, generated clients, or external integration behavior changes.
- License 许可
- GPL-3.0
- 最近更新
- 2026-05-19
- Stars
- ★ 6
- Forks
- 1
01 前言 Front Matter
- name
- api-contract-review
- description
- review request, response, event, and schema contracts for compatibility and consumer safety. use when http, openapi, asyncapi, protobuf, json schema, generated clients, or external integration behavior changes.
02 资源文件 7
- 参考文档references/event-and-async-contracts.md556 B
- 参考文档references/examples.md470 B
- 参考文档references/http-contract-checklist.md625 B
- 参考文档references/protobuf-and-buf.md617 B
- 参考文档references/review-template.md407 B
- 参考文档references/schema-compatibility.md728 B
- 参考文档references/style-and-linting.md748 B
03 SKILL.md 正文
API Contract Review
Trigger Signals
- the task changes HTTP routes, request or response shapes, headers, auth semantics, examples, or client SDKs
- the repo edits OpenAPI, AsyncAPI, Protobuf, JSON Schema, or generated contract code
- a versioning, deprecation, or compatibility question exists across providers and consumers
Inspect First
- source-of-truth specs and the runtime handlers that implement them
- schema validators, generated clients, examples, docs, and error-shape helpers
- versioning and deprecation notes, auth requirements, and pagination or idempotency behavior
- consumer code, integration tests, and release notes when a public contract changed
Workflow
- identify the canonical contract surface and compare it to the implementation
- classify the change by protocol: HTTP, event, schema-only, or wire-level
- evaluate backward compatibility for required fields, enums, defaults, errors, and behavior semantics
- verify examples, validation rules, and generated artifacts stay in sync
- emit a consumer-centered review with specific remediation or rollout guidance
Output Contract
- changed contract summary grouped by endpoint, message, or schema
- compatibility verdict with the precise breaking edges called out
- consumer impact notes covering clients, codegen, docs, and deployment sequencing
- follow-up actions for linting, versioning, deprecation, migration guides, or tests
Failure Modes
- the runtime contract diverges from the checked-in spec and the source of truth is unclear
- examples, docs, or generated clients are stale enough that contract behavior cannot be trusted
- behavior semantics changed without any schema diff to explain it
Escalation
- escalate when a breaking change lacks versioning, deprecation, or migration guidance
- escalate when error semantics, auth requirements, or event-delivery guarantees change silently
- escalate when wire compatibility for protobuf or event consumers is uncertain
References
skills/api-contract-review/references/http-contract-checklist.mdskills/api-contract-review/references/schema-compatibility.mdskills/api-contract-review/references/event-and-async-contracts.mdskills/api-contract-review/references/protobuf-and-buf.mdskills/api-contract-review/references/style-and-linting.mdskills/api-contract-review/references/review-template.mdskills/api-contract-review/references/examples.md
04 同仓库更多 Skills
typescript-engineering
typescript and javascript engineering guidance seeded from the harness forge knowledge base. use when the repo or task is dominated by .ts, .tsx, package.json, tsconfig, node.js services, react, next.js, frontend tooling, or multi-package workspaces where type boundaries matter.
token-budget-optimizer
compact context, reuse existing runtime artifacts, and choose the smallest authoritative surface before expanding prompt history. use when the task is growing large, when earlier repo intelligence already exists, or when repeated rescans would waste tokens without adding new evidence.
test-strategy-and-coverage
Define right-sized test layers and coverage priorities for a change.
speckit-taskstoissues
Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.
speckit-tasks
Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
speckit-specify
Create or update the feature specification from a natural language feature description.