From scorecard
Audit a repository's API design quality and produce a scored assessment. Use when evaluating endpoint naming, REST conventions, versioning, error responses, or overall API quality.
How this skill is triggered — by the user, by Claude, or both
Slash command
/scorecard:audit-api-designThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Evaluates the design quality of APIs exposed by the codebase. Checks endpoint naming, HTTP method usage, error response consistency, versioning, validation, documentation, and collection patterns. Skipped automatically for repos with no API surface. A high score means the API is well-designed and developer-friendly; a low score means the API is inconsistent or poorly documented.
Evaluates the design quality of APIs exposed by the codebase. Checks endpoint naming, HTTP method usage, error response consistency, versioning, validation, documentation, and collection patterns. Skipped automatically for repos with no API surface. A high score means the API is well-designed and developer-friendly; a low score means the API is inconsistent or poorly documented.
/users, /orders/{id}/items/getUser, /Order_items/v1/, /v2/ path segments or Accept-Version header handling.
openapi.yml, swagger.json, or similar. Assess whether docs are auto-generated or manually maintained and whether they are current.
Uses the global finding-count thresholds as defaults:
No domain-specific adjustments for API Design.
Scoped audit: If a scoped file list is provided in the subagent prompt, restrict ALL sampling and analysis to only those files. Skip criteria that cannot be evaluated from the scoped files and note them as "not assessed (out of scope)."
@Get, @Post, router.get, app.get, path:) across the codebaseopenapi.yml, openapi.yaml, swagger.json, swagger.yaml)This skill supports future tech-specific criteria via the references/ directory. At v2, matching references/<stack>.md files will be loaded automatically to add framework-specific API design checks.
Return results as structured JSON:
{
"category": "api-design",
"score": 6,
"confidence": "High",
"findings": [
{
"severity": "MAJOR",
"description": "List endpoints /users and /products return unbounded result sets with no pagination parameters",
"location": "src/controllers/users-controller.ts:22, src/controllers/products-controller.ts:15",
"recommendation": "Add cursor- or offset-based pagination to all collection endpoints and document the pagination envelope"
}
],
"top_recommendations": [
"Add pagination to all list endpoints to prevent unbounded result sets",
"Standardize error responses to a single schema (e.g., RFC 7807) across all controllers",
"Add or generate an OpenAPI specification to document the public API surface"
],
"summary": "Moderate API design quality -- naming and HTTP method usage are consistent but missing pagination on collection endpoints, inconsistent error formats, and no OpenAPI documentation reduce developer-friendliness"
}
npx claudepluginhub kevnord/claude-plugins --plugin scorecardReviews public interfaces for API design quality including naming, method signatures, parameters, type safety, and REST endpoints. Use when evaluating usability and readability of class APIs or endpoints.
Reviews API designs for best practices, consistency, and issues in REST, GraphQL, gRPC, OpenAPI specs, or code files.
API and backend code review — REST conventions, auth, validation, error handling, pagination, rate limiting, test coverage. Use when asked to "review this API", "code review", "review backend", or "pre-launch backend check".