Mav bp api design

From thermiteau/maverick · View interactive version

Mav bp api design is an AI agent skill from the GitHub repository thermiteau/maverick. API design conventions for projects with API surfaces. Covers REST and GraphQL standards, versioning, error formats, pagination, documentation as code, and backwards compatibility. Applied when designing, implementing, or reviewing APIs.

How to use this skill

Skill file

API Design Standards

Ensure all APIs (REST, GraphQL, or any other surface) are consistent, predictable, documented as code, and backwards compatible by default.

Maverick's Rules

Project Implementation Lookup

Check for docs/maverick/skills/api-design/SKILL.md. If present, read it and follow it — it wins on specifics (library, config, conventions). If missing, proceed with these standards and note the gap in your summary.

Detecting API Issues in Code Review

When reviewing code, flag these patterns:

| Pattern | Issue | Fix |

| -------------------------------------------------- | ---------------------------------- | ------------------------------------------------------ |

| Verbs in URL paths (/getUser, /createOrder) | REST anti-pattern | Use nouns with HTTP methods |

| 200 OK returned for error conditions | Incorrect status code | Use appropriate 4xx/5xx codes |

| No input validation on request handlers | Security and data integrity risk | Validate at the boundary |

| Stack traces or internal paths in error responses | Information disclosure | Use standard error format, log details server-side |

| Inconsistent field naming (camelCase vs snake_case)| Breaks predictability | Pick one convention and apply everywhere |

| Missing pagination on list endpoints | Performance risk at scale | Add cursor or offset pagination |

| Breaking change without version bump | Backwards compatibility violation | Bump version or make the change additive |

| No rate limiting on public endpoints | Abuse and availability risk | Implement rate limiting with appropriate headers |

| No idempotency on payment/financial endpoints | Duplicate processing risk | Require idempotency keys |

| API docs maintained separately from code | Documentation drift | Generate docs from source (OpenAPI, introspection) |

<!-- maverick-plugin-version: 5.3.1 -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.