本文へ移動
cccskills
無料GitHub で公開

codexkit-api-design-reviewer

Review REST and GraphQL API designs for consistency, usability, and best practices. Covers naming conventions, versioning strategy, error format, pagination, authentication patterns, and breaking change detection. Use when reviewing API specs, designing new APIs, or auditing existing endpoints.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md5.8 KB
  • agents/openai.yaml170 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

API Design Reviewer

When to Use

  • When reviewing an OpenAPI/Swagger specification before implementation
  • When auditing existing API endpoints for consistency
  • When designing a new API from scratch
  • When preparing APIs for external/partner consumption

Procedure

Step 1 — Naming & Convention Check

CheckRuleExample
Resource namingPlural nouns, kebab-case✅ /api/v1/order-items ❌ /api/v1/getOrderItem
HTTP methodsGET=read, POST=create, PUT=replace, PATCH=partial, DELETE=remove✅ POST /orders ❌ POST /create-order
Query paramscamelCase for filters/sorting✅ ?sortBy=createdAt ❌ ?sort_by=created_at
Status codesUse standard codes correctly✅ 201 Created, 204 No Content ❌ 200 for everything
ConsistencySame pattern across all endpointsCheck all resources follow same naming

Step 2 — Versioning Strategy

StrategyWhen to UsePattern
URL pathSimple, widely adopted/api/v1/orders
HeaderCleaner URLs, harder to testAccept: application/vnd.api+json;version=1
Query paramEasy to test, but less RESTful/api/orders?version=1

Verify:

  • Version is present in all endpoints
  • Deprecation policy documented
  • Migration guide for version bumps

Step 3 — Error Format

Errors should follow a consistent structure:

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Human-readable description",
    "details": [
      {
        "field": "email",
        "issue": "Invalid format",
        "expected": "Valid email address"
      }
    ],
    "request_id": "req_abc123",
    "docs_url": "https://docs.api.com/errors/VALIDATION_ERROR"
  }
}

Check:

  • Error format consistent across all endpoints
  • Machine-readable error codes (not just messages)
  • Request ID for traceability
  • No sensitive data in error responses

Step 4 — Pagination

PatternBest ForImplementation
Cursor-basedLarge datasets, real-time data?cursor=abc&limit=20
Offset-basedSimple lists, admin UIs?page=2&per_page=20
KeysetTime-series data?after=2024-03-15T00:00:00Z&limit=20

Check:

  • Default page size set (and documented)
  • Maximum page size enforced
  • Total count available (or explicitly omitted for performance)
  • Links to next/prev pages in response

Step 5 — Security Patterns

CheckDetails
AuthenticationBearer token, API key, OAuth2 — documented per endpoint
AuthorizationRole-based access noted per endpoint
Rate limitingHeaders: X-RateLimit-Limit, X-RateLimit-Remaining, Retry-After
Input validationMax lengths, allowed characters, type checking
CORSAppropriate origins, methods, headers

Step 6 — Breaking Change Detection

Identify potential breaking changes:

  • ❌ Removing a field from response
  • ❌ Changing a field type (string → integer)
  • ❌ Making an optional field required
  • ❌ Changing endpoint URL
  • ✅ Adding a new optional field
  • ✅ Adding a new endpoint
  • ✅ Adding a new optional query parameter

Inputs

InputRequiredFormat
API specificationYesOpenAPI/Swagger YAML/JSON or endpoint list
Business contextRecommendedWho consumes this API
Existing APIRecommendedFor breaking change detection

Output

## API Review — [API Name]

### Summary
**Endpoints reviewed:** 24 | **Issues found:** 8 | **Breaking changes:** 0

### Issues

| # | Severity | Category | Endpoint | Issue | Fix |
|---|----------|----------|----------|-------|-----|
| 1 | High | Naming | POST /createUser | Verb in URL | POST /users |
| 2 | Medium | Errors | All | No request_id | Add tracing ID |
| 3 | Low | Pagination | GET /logs | No max page size | Enforce limit ≤ 100 |

### Recommendations
[Summary of patterns to adopt or fix]

Definition of Done

  • Naming conventions checked across all endpoints
  • Versioning strategy reviewed
  • Error format consistency verified
  • Pagination patterns assessed
  • Security patterns checked
  • Breaking changes flagged

Quality Criteria

  • Feedback is specific and references exact locations in the reviewed material
  • Each critique includes a concrete improvement suggestion
  • Severity is categorized (critical / important / nice-to-have)
  • Positive aspects are acknowledged alongside areas for improvement

Verification (4C)

CheckQuestion
CorrectnessIs the feedback technically accurate and properly contextualized?
CompletenessWere all major sections of the reviewed material addressed?
Context-fitIs the review granularity appropriate for the material's maturity level?
ConsequenceIf the author implemented all feedback literally, what could go wrong?

Edge Cases

  • Material is too early-stage for detailed review — Provide structural feedback only. Note that content review is deferred until it matures.
  • Reviewer lacks domain expertise — Focus on structure, clarity, and consistency. Flag domain-specific claims as 'Needs SME verification'.
  • Author is defensive or resistant to feedback — Lead with what works well. Frame changes as questions rather than mandates.

Changelog

  • v1.0.0 — Initial release

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Design rigorous A/B test plans with hypothesis, sample size calculation, Minimum Detectable Effect (MDE), randomization strategy, and decision rules. Includes guardrail metrics and rollout playbook. Use when planning product experiments, conversion optimization, or data-driven feature decisions.

日本語の概要は準備中です。原文の説明を表示しています。

hoavdc/CodexKit252026年10月8日 更新

Write Architecture Decision Records (ADRs) following the Michael Nygard format. Captures context, options considered, decision rationale, and consequences. Use when making technology choices, framework selections, or any architectural decision that future developers need to understand.

日本語の概要は準備中です。原文の説明を表示しています。

hoavdc/CodexKit252026年10月8日 更新

Assess organizational readiness for financial audits (internal or external). Map assertions to account balances, check evidence completeness, score readiness using a Red/Amber/Green framework, and generate a remediation timeline. Aligned with SOX, IFRS, and GAAP audit standards. Use before scheduled audits or when preparing for first-time compliance.

日本語の概要は準備中です。原文の説明を表示しています。

hoavdc/CodexKit252026年10月8日 更新

Design safe recurring Codex automations with clear prompts, outputs, schedules, and gating rules.

日本語の概要は準備中です。原文の説明を表示しています。

hoavdc/CodexKit252026年10月8日 更新

Refine Product Backlog Items to meet INVEST criteria. Write User Stories with Acceptance Criteria in Given/When/Then format, estimate with Story Points, and flag dependencies. Use before sprint planning when backlog items need grooming. Do not use to prioritize the backlog — that is the Product Owner's decision.

日本語の概要は準備中です。原文の説明を表示しています。

hoavdc/CodexKit252026年10月8日 更新

Build or refine brand positioning with audience, category, differentiators, proof, tone, JTBD signals, and competitive context. Use when marketing, founders, or GTM teams need a positioning canvas, messaging pillars, or campaign foundation. Do not use for isolated ad copy tweaks with no strategy question.

日本語の概要は準備中です。原文の説明を表示しています。

hoavdc/CodexKit252026年10月8日 更新

hoavdc のスキルをすべて見る

このスキルの問題を報告する