From supervibe
Use WHEN designing APIs, SDK boundaries, events, or public interfaces to make consumer-first contracts explicit before implementation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/supervibe:api-and-interface-designThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
API And Interface Design turns a proposed API, SDK, event, CLI, component prop surface, or service boundary into an explicit contract before code hardens it. It keeps Supervibe memory, CodeGraph, source evidence, receipts, and verification in the workflow while adding one consumer-first interface pass.
API And Interface Design turns a proposed API, SDK, event, CLI, component prop surface, or service boundary into an explicit contract before code hardens it. It keeps Supervibe memory, CodeGraph, source evidence, receipts, and verification in the workflow while adding one consumer-first interface pass.
Use it to decide shape, compatibility, errors, idempotency, pagination, authorization declaration, versioning, examples, and observability before implementation or review.
Use before adding or changing a public or cross-team interface. Use when a spec, schema, endpoint, event, SDK method, CLI command, plugin config, or component contract may be consumed by code outside the edited module. Use before supervibe:error-envelope-design or supervibe:auth-flow-design when the broader interface shape is still undecided.
Follow <resolved-supervibe-plugin-root>/docs/references/skill-expert-operating-standard.md: start from source of truth, preserve context evidence, apply scope safety, use real producers with runtime receipts for durable delegated outputs, verify before completion claims, and keep confidence below gate when evidence is partial.
AGENTS.md, the active requirement/spec/PRD, and any existing API or interface convention docs.supervibe:source-driven-development and prefer official current docs.supervibe:error-envelope-design, supervibe:auth-flow-design, supervibe:deprecation-and-migration, or formal API reviewers when those narrower gates apply.Is the surface observable outside the edited module?
NO -> use local implementation skills and keep this skill out of scope.
YES -> continue.
Is the change additive and backward compatible?
YES -> document the contract, examples, tests, and changelog decision.
NO -> require versioning, deprecation, migration, rollback, and consumer impact.
Does the surface mutate state or trigger side effects?
YES -> require idempotency, retry semantics, auditability, and auth declaration.
NO -> require pagination/filtering/sorting semantics when collections are involved.
| Surface | Must decide | Evidence to capture |
|---|---|---|
| HTTP/JSON endpoint | method, status codes, problem+json errors, pagination, idempotency | OpenAPI diff, success/error examples, contract test command |
| GraphQL operation | query/mutation shape, nullable fields, union/error pattern, deprecation | schema diff, resolver caller check, client query fixture |
| SDK or CLI | stable method/flag names, exit/error semantics, generated docs | generated client diff, backwards-compatible example, changelog |
| Event/webhook | schema version, replay behavior, signing, retry window | fixture payloads, signature verification, consumer list |
supervibe:error-envelope-design.supervibe:auth-flow-design.supervibe:confidence-scoring; do not mark complete below the gate.POST /billing/exports returns 202 with {id,status,createdAt}, accepts Idempotency-Key, uses billing.export_already_running from the registry, and names node --test tests/billing-export-contract.test.mjs plus an OpenAPI diff before handoff.order.shipped.v2 keeps deprecated carrierName for one major version, adds optional trackingUrl, includes a webhook replay fixture, and records consumer owners before release.userId to accountId in an SDK method and calling it additive because the API still accepts both fields; generated clients and caller code observe the method signature, so this needs migration evidence.Return parseable apiInterfaceContract:
status: PASS, PARTIAL, or BLOCKED.surface: endpoint, SDK method, event, CLI, config, component, or service boundary.consumers: known consumer classes and unknown-consumer risk.contract: request/response/event/method shape with required, optional, nullable, default, and unknown-field behavior.semantics: auth, errors, idempotency, pagination, rate limits, retries, ordering, and observability.compatibility: additive/deprecating/breaking classification with versioning and migration plan when needed.examples: success and failure examples.verificationCommands: exact contract lint, diff, test, or grep commands.evidence: source files, CodeGraph refs, schema diffs, fixtures, receipts, or manual inspection notes.confidence: score and cap reason when degraded.blockers: missing consumers, missing canonical envelope/auth decision, or unavailable contract proof.nextAction: repair, rerun, owner handoff, or release-gate command.residualRisk: open consumer or tooling uncertainty.npm run validate:skill-content-qualityspectral lint, oasdiff, graphql-inspector diff, buf breaking, schema tests, or project-specific contract tests.Use local support files through progressive disclosure; keep the main SKILL.md as the operating contract and load deeper resources only when the active task needs them:
references/practice-pack.md when api-and-interface-design needs deeper practice guidance, source evidence anchors, risk checks, or a final checklist beyond the core procedure.scripts/self-check.mjs --check --json after editing this api-and-interface-design resource tree or before claiming deterministic support-file readiness; use --help for options and --dry-run for read-only preview semantics.evals/regression.json when calibrating api-and-interface-design trigger boundaries, happy-path/failure-path coverage, boundary rollback behavior, or resource-tree regressions.examples/workflow.md when a concrete api-and-interface-design workflow example is needed for sequencing, evidence selection, or anti-example comparison.templates/output-contract.md when emitting api-interface-contract so status, evidence, confidence, blockers, risks, rollback, and nextAction stay consistent.supervibe:error-envelope-designsupervibe:auth-flow-designsupervibe:deprecation-and-migrationsupervibe:documentation-and-adrssupervibe:source-driven-developmentGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub vtrka/supervibe --plugin supervibe