/ekosistem-edho-ferdian:api-design-edho-ferdianfrom ekosistem-edho-ferdian
Designs and evolves API contracts: REST resource naming, status codes, pagination, versioning, and authoritative OpenAPI/schema to keep client and server in sync.
Ships in ekosistem-edho-ferdian. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are designing the boundary between a client and a server (or between
two services) before — or while — code gets written on either side. This is a
narrower, more concrete altitude than architecture: you are not deciding
monolith vs. microservices, you are deciding what GET /orders/:id returns,
what status code a duplicate email produces, and how a v1 client survives a
v2 rollout. Two source skills converge here because they are the same use
case seen from two ends: api-design covers what a good endpoint looks like
in isolation; contract-first covers how a client and a server stay in sync
about that endpoint over time. A contract without good shape conventions is
consistent but ugly; good shape conventions without a single authoritative
artifact drift apart the moment two people touch the boundary independently.
system-design-edho-ferdian decides broader architectural trade-offs —
monolith vs. microservices, sync vs. event-driven, which datastore. This
skill sits one level down: given that an API boundary needs to exist,
design that boundary's shape and evolution discipline. If the question is
"should this even be a REST API vs. an event stream," hand off upward to
system-design-edho-ferdian; if it's "how should this REST endpoint be
shaped," stay here.code-review-edho-ferdian (Domain 2 Security, Domain 3 Performance)
reviews an endpoint that already exists in code. This skill is upstream of
that — a well-designed contract prevents many findings that domain would
otherwise have to catch after the fact. See
references/rest-conventions.md's cross-reference table for exactly which
review codes map to which design-time checklist items, so the two skills
don't restate each other. The same relationship holds for
Domain 4 — Blueprint/Spec Consistency: the API contract designed here
(shape decisions in references/rest-conventions.md, plus the versioning
and breaking-change policy in references/contract-evolution.md) is the
authoritative reference code-review-edho-ferdian checks an implementation
against when it asks "does the code match the agreed contract?" — that
domain doesn't redefine contract correctness, it cites this one.spec-mining-edho-ferdian and dev-kickoff-edho-ferdian's Phase 0
intake can consume an OpenAPI/schema file produced by following this
skill's references/contract-evolution.md as a legitimate BEHAVIOR_SPEC-
role input — a contract artifact already states requests, responses, and
error shapes as ground truth, so it doesn't need to be mined from code.Step 1 Decide REST shape → references/rest-conventions.md
Step 1b Decide MCP tool surface (if applicable) → references/mcp-tool-surface.md
Step 2 Decide the contract discipline → references/contract-evolution.md
Step 3 Reflection gate → below
Resource naming, HTTP status-code semantics, response envelope and error
shape, pagination strategy (offset vs. cursor, with the concurrent-write
caveat this ecosystem's database lens already covers), filter/sort/sparse-
fieldset conventions, rate-limiting tiers and headers, versioning and
Sunset policy, and the pre-ship checklist cross-referenced against
code-review-edho-ferdian's SEC/CQ codes. Full detail:
references/rest-conventions.md.
One authoritative contract artifact per boundary, designing from consumer
needs rather than the database schema outward, generating types/clients from
that artifact instead of hand-syncing them, the step-by-step protocol for
changing a contract without breaking consumers, and named anti-patterns
(including treating compile-time types as the only proof of contract
correctness). Full detail: references/contract-evolution.md.
When the "client" on the other side of this boundary is an LLM invoking tools
rather than a human-facing app, the REST conventions above still apply but
need model-consumer-specific additions — schema-first tool definitions,
description-as-contract, idempotency, and transport choice. Full detail:
references/mcp-tool-surface.md.
Gate A1: Every endpoint's status codes cover success + the realistic error
cases, not just 200/404/500? [PASS/FAIL]
Gate A2: Pagination strategy has a stated reason (dataset size, consumer
type), not a default picked without thought? [.]
Gate A3: Exactly one contract artifact is named as authoritative for this
boundary — no wiki/mock/type-file left to drift separately? [.]
Gate A4: A breaking change (if any) has a stated migration/versioning path,
not a silent field repurpose? [.]
Gate A5: This design was checked against consumer jobs (what the client
actually needs to render/do), not just the database shape? [.]
Any FAIL → fix before presenting, or state explicitly why (e.g. "no versioning path needed — this is a new boundary with zero existing consumers").
references/worked-api.md — an orders API: resources, payloads, problem+json errors, cursor pagination, idempotent create, OpenAPI as source of truth, a non-breaking evolution. Read it when doing the work, not before routing.
| You say | Step or reference it loads | Parameters it uses |
|---|---|---|
| "desain API untuk fitur order" | Steps 1-3: rest-conventions.md, contract-evolution.md | consumer jobs, contract artifact, existing consumers |
| "API contract berubah, client lama jangan rusak" | Step 2: contract-evolution.md | existing consumers, contract artifact |
| "pagination yang cocok buat list ini" | Step 1: rest-conventions.md | pagination basis |
| "expose tool ini ke LLM lewat MCP" | Step 1b: mcp-tool-surface.md | consumer type = LLM |
| "REST atau event stream untuk ini?" | hands off to system-design-edho-ferdian | none |
| Parameter | Required | Allowed values | Default |
|---|---|---|---|
consumer jobs | yes | what the client must render or do (Gate A5) | none: design starts from this, not from the database |
consumer type | optional | human-facing app, another service, an LLM calling tools (adds Step 1b) | REST conventions only |
existing consumers | optional | none, or live clients | none; with live clients the design must state a migration or versioning path (Gate A4) |
pagination basis | optional | dataset size and consumer type, giving offset or cursor | none: a stated reason is mandatory (Gate A2) |
contract artifact | optional | OpenAPI, schema or proto file | none: exactly one authoritative artifact is named (Gate A3) |
Output: a design note with status codes, error shape, pagination and
versioning reasons, the one named contract artifact, and Gate A1-A5 results.
Full example: references/worked-api.md.
When the work reaches one of these, load that skill with the Skill tool and follow it — don't write its part from memory.
backend-engineering-edho-ferdiandata-layer-patterns-edho-ferdiansecurity-review-edho-ferdiantest-authoring-edho-ferdiandocs-sync-edho-ferdianskill-authoring-edho-ferdian §7.code-review-edho-ferdian.SELECT * row is not a contract.system-design-edho-ferdian flags for undecided non-functional targets.code-review-edho-ferdian already owns are referenced by code, not
restated here.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
api-design, contract-first, rest-api, openapi, api-versioning
npx claudepluginhub edhoferdian/eef --plugin ekosistem-edho-ferdian43 skills in this plugin
/ask-eefEntry point to the EEF skills: reads the request and the project, then loads the right skill or sequence (dev-kickoff, design-engineering, build-fix, code-review...). Use at the start of a task when no skill is obviously right, or for "ask-eef", "pakai skill apa", "mulai dari mana", "bantu kerjakan ini", "aku mau bikin", "gimana caranya"./backend-engineering-edho-ferdianServer-side code: service layering and ports/adapters, typed errors, retry and circuit breakers, background jobs and queues, structured logging, new integrations; NestJS and Rails guides. Use for "struktur service layer", "error handling di backend", "retry/circuit breaker", "background job", "tambah integrasi baru", "bikin app Rails"./Other plugins' skills for the same job