Skip to main content

api

Use when designing, reviewing, or changing an HTTP, REST, or GraphQL API — endpoints, resource naming, error responses, pagination, versioning, idempotency, or API contracts between services.

Source facts

Repository
xoai/sage
Last source activity
October 26, 2026 at 08:51
Detected SKILL.md language
English
Stars
31
Forks
5

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
6 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
api
description
Use when designing, reviewing, or changing an HTTP, REST, or GraphQL API — endpoints, resource naming, error responses, pagination, versioning, idempotency, or API contracts between services.
version
2.0.0
type
knowledge
layer
domain
requires
{"sage":">=1.0.0"}
activates-when
{"detected":["express","fastify","koa","hono","django","flask","rails","spring","gin","echo","actix-web","axum"]}
tags
["express","fastify","koa","hono","django"]
# api **Layer 1 — Domain Foundation (v2.0)** Corrects the 13 most common API design mistakes agents make, grounded in 5 authoritative sources: - **Geewax** (API Design Patterns) — cursor pagination, error structure, idempotency, request deduplication - **Amundsen** (RESTful Web API Cookbook) — PUT for idempotent creates, HTTP method semantics - **Ousterhout** (Philosophy of Software Design) — information hiding, define errors out of existence, different layer/different abstraction - **Kleppmann** (Designing Data-Intensive Applications) — network failures are normal, batch processing, data integrity - **Gough/Bryant** (Mastering API Architecture) — schema validation, API lifecycle, backward compatibility, deprecation ## What's Included | Type | Count | Coverage | |------|-------|----------| | Patterns | 13 | Error envelope, input validation, cursor pagination, batch queries, auth-first, URL conventions, rate limiting, idempotent writes, separate representation, versioning, HTTP status codes, structured logging, health endpoints | | Anti-patterns | 9 | Inconsistent errors, trusting input, returning all records, N+1 loops, bolt-on auth, non-idempotent creates, leaking DB internals, 200-with-error-body, no versioning plan | | Constitution | 11 | principles | Every pattern includes code examples showing wrong vs right approaches. Every anti-pattern includes root cause explaining WHY agents default to the wrong behavior.
View on GitHub