CtrlK
BlogDocsLog inGet started
Tessl Logo

mcclowes/api-design

Use when designing, reviewing, or implementing HTTP APIs — error and warning handling, resource state and lifecycle, read-endpoint structure, pagination, and authentication. Triggers on error responses and formats, response envelopes, webhook payloads, how an endpoint should fail; modelling a resource lifecycle (status fields, state machines, webhook event names, enum vs parseable string); structuring read endpoints (screen-shaped/BFF vs canonical resource, aggregation, cursor vs offset pagination); and auth design (security schemes, API keys vs bearer tokens, stepped-up tokens). Apply whenever an API surfaces a failure, state change, view of data, or auth requirement to a client.

96

1.70x
Quality

90%

Does it follow best practices?

Impact

99%

1.70x

Average score across 8 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

API design

Opinionated patterns for designing developer-friendly HTTP APIs: error/warning handling, resource state and events, read-endpoint structure and pagination, and authentication.

Structure

  • SKILL.md - Main skill instructions: principles, the issues pattern, the status/event/issue split, view-vs-data endpoints, auth schemes, and design rules
  • references/error-handling.md - Full field-by-field reference for the issues array
  • references/event-status-design.md - Modelling and naming a resource's lifecycle: states, events, and the status/event/issue split
  • references/view-vs-data-endpoints.md - View (screen-shaped/BFF) vs data (canonical resource) endpoints, and pagination (cursor vs offset)
  • references/auth-schemes.md - Treating security schemes as discrete, named contracts
  • references/consuming-in-react.md - TypeScript types and React/SDK consumption examples

Usage

This skill is automatically discovered by Claude when relevant to the task.

Workspace
mcclowes
Visibility
Public
Created
Last updated
Publish Source
CLI
Badge
mcclowes/api-design badge