api-and-interface-design

Define stable REST and GraphQL API contracts with standardized error semantics.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/chenxingqiang/tdd-agent-skills --skill api-and-interface-design-chenxingqiang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-and-interface-design
Source: https://github.com/chenxingqiang/tdd-agent-skills/tree/main/skills/api-and-interface-design
Command: npx skills add https://github.com/chenxingqiang/tdd-agent-skills --skill api-and-interface-design-chenxingqiang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

API and interface design guides teams to create stable, predictable public surfaces that reduce integration errors and breakage during evolution.

Core Features & Use Cases

  • Contract-first design: define input/output contracts before implementation to align teams.
  • Consistent error semantics: establish uniform error formats across endpoints for reliable clients.
  • Boundary-driven scope: clarify module boundaries and cross-team contracts between frontend and backend.

Quick Start

Define a new REST endpoint contract with clear input, output, and error shapes that teams can implement against.

Frequently Asked Questions about api-and-interface-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is a contract-first API design approach?

Contract-first API design defines input and output contracts before implementation to align teams. This approach establishes stable interface boundaries and prevents accidental breaking changes during service-to-service evolution.

How do I prevent accidental breaking changes in REST and GraphQL interfaces?

To prevent breaking changes in REST and GraphQL interfaces, apply boundary validation at the API edge and enforce stable contracts. This ensures consistent expectations and predictable public surfaces across teams.

How to define consistent error semantics across API endpoints?

Define consistent error semantics by establishing a uniform error format across all API endpoints. This creates reliable client integration and clarifies module boundaries between frontend and backend teams.

Does contract-first interface design work for module boundaries and service-to-service communication?

Contract-first interface design works for module boundaries and service-to-service communication by clarifying cross-team contracts. It enforces boundary-driven scope and consistent expectations across diverse integration points.

What is the best way to design stable and predictable API public surfaces?

The best way to design stable API public surfaces is applying boundary-driven scope and contract-first principles. This reduces integration errors and ensures predictable interface evolution across software engineering teams.