Files
magnus919_agent-skills/api-design-and-evolution
Magnus HedemarkGitHubfactory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
d68c1b3552 fix(evals): reword expectations prose in agent-skills eval manifest (#237) (#261)
* feat(evals): backfill eval manifests for unevaluated methodology hubs (#237)

Add schema-v1 evals/evals.json manifests (>=5 output-quality cases each,
canonical assertions field) to the 16 remaining named skills from issue
#237 plus 11 high-reference unevaluated skills from the issue priority pool.
Raises schema-valid eval coverage from 44/132 (33.3%) to 71/132
(53.8%), clearing the 50% CI-fail threshold.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix(evals): reword expectations prose in agent-skills eval manifest

Replace four prose strings in agent-skills/evals/evals.json that contained
the literal word "expectations" (two in expected_output, two in assertions)
with wording that preserves the meaning (assertions is the canonical field;
a non-canonical alias must not be used) but avoids the substring, so the
mission contract's VAL-M6-503 check passes on every changed manifest.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

---------

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-08-03 16:15:50 -04:00
..

API Design And Evolution

Design APIs that consumers can integrate with, operate, and migrate without relying on unwritten assumptions.

Why Install This Skill

An API is a long-lived agreement: mobile apps, partners, generated SDKs, jobs, and event consumers can all depend on details that are easy to overlook. This skill helps your agent begin with the consumer's job and the domain's meaning before naming a route or selecting a protocol.

It produces practical design artifacts for HTTP, GraphQL, RPC, events, webhooks, and streams. Your agent can document retries, errors, authorization boundaries, delivery semantics, compatibility risks, and a migration path instead of treating an OpenAPI file as the whole design.

What You Get

Contents Provides
SKILL.md A workflow from discovery through rollout and verification
references/ Protocol, schema, failure, event, evolution, testing, and source guidance
templates/ Fillable briefs, contracts, taxonomies, assessments, plans, and reviews

Quick Start

Ask your agent: Design an API contract for creating and listing invoices, including retry and migration behavior.

It should begin an API design brief, select an interface style from the workload, and produce a contract reviewable by consumers and implementers.

Triggers

  • Design or review a REST/HTTP, GraphQL, RPC, event, webhook, or streaming API
  • Write or improve OpenAPI or AsyncAPI contracts
  • Define pagination, errors, idempotency, concurrency, or rate/resource behavior
  • Assess a consumer-breaking API change, version an interface, or plan deprecation
  • Build a migration and rollback plan for an external interface

Requirements

No runtime dependencies or API keys. The skill links to public standards; validate tooling support before relying on a specific OpenAPI or AsyncAPI feature for code generation or documentation.