SKILL

apidesign

Design stable, hard-to-misuse interfaces - REST/GraphQL endpoints, module boundaries, type contracts, component props, anything where one piece of code talks to another. Use at design time, before implementing the surface. Triggers: 'design this API', 'API contract', 'endpoint design', 'module boundary', 'interface design', 'should this be one endpoint or two', 'how should this API look'.

Target: Design & content creation. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • apidesign
  • What this skill is - and isn't
  • Two laws that shape everything
  • Principles
  • REST shape (worked patterns)
  • Typed-contract patterns (TS as the worked example; the ideas are language-agnostic)
  • Red flags
  • Integration points

Design interfaces that make the right thing easy and the wrong thing hard. A contract is a commitment. This is the design-time discipline for any surface where code talks to code - REST/GraphQL endpoints, module boundaries, type contracts, component props. Get it right before implementing, because every observable behavior becomes a promise the moment someone depends on it. Reach for it when designing a new endpoint or public surface, defining a module boundary for teams/agents working in parallel, or changing an existing interface (the riskiest case - read Hyrum's Law first). | Skill | Covers | |---|---| | vd:apidesign (this) | The contract - endpoint/interface shape, error semantics, boundaries, versioning posture | | vd:dbdesign | The storage - schema, indexes, normalization, migration plans | | vd:fastreact | Scaffolding one specific stack (FastAPI + React), not interface principles | | vd:code-review | Judging a contract after it's written (post-hoc) | Storage shape and API shape inform each other but aren't the same decision - design the contract here, the schema in vd:dbdesign. Hyrum's Law. With enough users, every observable behavior of your system will be depended on by so

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
vanducng/skills
Source file
skills/apidesign/SKILL.md
Fixed revision
c20411b8df8f821988c87689f6aefe142b6f9025
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: vanducng/skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-11T14:02:27.147Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.