Skip to content
cccskills
FreePublished on GitHub

OpenAPI Contract Completeness

Ensure OpenAPI specs define consistent request/response schemas, error model, auth, pagination, and backward compatibility.

The English summary is being prepared. Showing the original description.

See how to install

Files included (3)

  • SKILL.md3.9 KB
  • fixtures/01-breaking-response-change-should-detect.md4.1 KB
  • fixtures/02-additive-field-with-referenced-contract-should-not-detect.md3.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Pattern declaration

Primary pattern: Reviewer Secondary patterns: Inversion Why: OpenAPI仕様の差分から契約不備・互換性事故・型の曖昧さをレビューし、クライアント側の破綻シナリオを逆照射する。

Goal / 目的

  • OpenAPI(または同等の API 仕様)の差分から、契約不備による実装ブレ/互換性事故/運用不全を減らす。

Non-goals / 扱わないこと

  • API の “正解設計” を断定しない(契約の一貫性・明確さ・互換性・運用可能性に限定)。
  • 実装コードの最適化やライブラリ選定。

Pre-execution Gate / 実行前ゲート

このスキルは以下の条件がすべて満たされない限りNO_REVIEWを返す。

  • 差分にOpenAPI/Swagger仕様ファイルまたはAPI設計ドキュメントが含まれている
  • inputContextにdiffが含まれている

ゲート不成立時の出力: NO_REVIEW: openapi-contract — OpenAPI/API仕様に関する差分がない

False-positive guards / 抑制条件

  • 仕様の不足が差分外で既に合意済み(別ドキュメント参照)で、参照が明確な場合は重複指摘しない。

Rule / ルール

  • 先頭に要約を 1 行出す(追加/変更された endpoint と互換性の要点)。
  • 指摘は最大 8 件まで。互換性破壊/曖昧な型/エラーモデル不統一/認可抜けを優先。
  • 可能な限り “追記案(仕様に貼れる形)” を付ける。

Checklist / 観点チェックリスト

  • 型とバリデーション
    • required/nullable/oneOf/anyOf/format が曖昧でないか。
    • request/response の例(example)が現実的で、破綻していないか。
  • エラー契約
    • 4xx/5xx の使い分け、エラー構造(code/message/detail/requestId 等)が一貫しているか。
    • 再試行可能性(retryable)や rate limit の扱いが読み取れるか。
  • 認証/認可
    • securitySchemes と各 operation の security が整合しているか。
    • 権限境界(誰が何をできるか)が仕様に落ちているか(役割/スコープ)。
  • 互換性
    • 破壊的変更(削除/rename/型変更)がある場合、バージョニングや移行方針があるか。
    • pagination / sorting / filtering の契約が曖昧でないか。
  • 運用性
    • requestId/相関ID 等、障害調査に必要な情報が契約に反映されているか。

Output / 出力フォーマット

すべて日本語。<file>:<line>: <message> 形式で出力する。

  • 先頭に要約を 1 行: (summary):1: <追加/変更endpointと互換性の要点>
  • 以降は指摘(最大 8 件):
    • <message> に [severity=critical|major|minor|info] を含める。
    • “追記案” を 1 行付ける(例: エラーレスポンスは { code, message, requestId } を共通化)。

評価指標(Evaluation)

  • 合格基準: 差分に紐づく契約不備が優先度付きで指摘され、仕様に貼れる追記案がある。
  • 不合格基準: 仕様と無関係な一般論、根拠のない断定、指摘の洪水。

人間に返す条件(Human Handoff)

  • 互換性破壊の判断やバージョニング方針が未合意の場合は人間レビューへ返す。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

<What this skill does>

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 19, 2026

画像・ボタン・フォーム要素に適切なアクセシブルネームがあるか確認する。

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 19, 2026

Ensure ADRs capture context, decision, alternatives, tradeoffs, and follow-ups in a way that prevents future drift.

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 19, 2026

敵対的分析手法を統合したレビューの entry skill。認知バイアス対策の3手法 (Pre-mortem / War Game / Logic Torturing)と、宣言・主張と実態の乖離を突く claim-vs-actual 検出3パターン(Self-Contradiction / Refactor-Claim Audit / Cross-File Leakage)へルーティングし、通常のレビューでは見えない設計の盲点・ 防御の穴・論理の弱点・宣言と実装のズレを可視化する。

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 19, 2026

Review changes to the Agent Skills import/export bridge for path safety, round-trip fidelity, and validation correctness.

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 19, 2026

Checks whether AI-assisted work defines review criteria, accessible context, explicit review loop, human judgment boundary, and feedback capture before delegating to an agent.

The English summary is being prepared. Showing the original description.

s977043/river-review7Updated Oct 19, 2026

See all skills by s977043

Report a problem with this skill