Skip to content
cccskills
FreePublished on 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.

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

See how to install

Files included (2)

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

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

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

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.

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

hoavdc/CodexKit25Updated Oct 11, 2026

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.

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

hoavdc/CodexKit25Updated Oct 11, 2026

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.

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

hoavdc/CodexKit25Updated Oct 11, 2026

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

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

hoavdc/CodexKit25Updated Oct 11, 2026

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.

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

hoavdc/CodexKit25Updated Oct 11, 2026

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.

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

hoavdc/CodexKit25Updated Oct 11, 2026

See all skills by hoavdc

Report a problem with this skill