API Interface Design Assistant
Paste the following prompt into your AI chat to install this skill:
Install @user_d0ecbcbf/app-designer-weii using https://skillhub.cn/install/skillhub.md.
About this skill
Problem
The main risk in API design is rarely whether one endpoint can be written; it is whether many endpoints share the same conventions: resource naming, query versus path parameters, pagination fields, and error response shapes. Inconsistent contracts increase frontend integration, mock preparation, and maintenance cost.
This skill turns a requirements description into a reviewable API design document. It targets inconsistent API style, misaligned response structures, and detached docs and examples.
How It Works
It organizes resource paths around RESTful rules: resources use plural nouns, actions are expressed through GET, POST, PUT, PATCH, and DELETE, and path depth should stay within three levels when possible. Versioning uses URL-based versions such as /api/v1/, and new fields are treated as non-breaking changes.
For output, it generates documentation around a common response shape, pagination rules, and a field template, and provides these artifacts:
- /gen-mock to generate mock data
- /gen-curl to generate curl examples
- /check-design to review design validity
- /gen-openapi to generate OpenAPI 3.0 YAML
Scope
It fits backend API design, API document review, pre-integration field alignment, and quick mock or curl example generation. It does not implement business logic, database migrations, permission systems, or production gateway configuration. If the project depends on private protocols, non-standard authentication, complex event streams, or special gateway routing, manual context is still required.
Use Cases
- A backend developer drafts resource paths, field definitions, and common response shapes before API review.
- A frontend engineer generates `/gen-mock` and `/gen-curl` to align integration tests with the API spec.
- An API owner checks versioning, pagination rules, and field naming with `/check-design` before release.
- A platform engineer converts an endpoint draft into OpenAPI 3.0 YAML for gateway, SDK, and docs.
Best For
- Backend engineers who need to turn requirements into RESTful API docs with consistent fields, responses, and pagination.
- Frontend engineers who need executable curl examples and mock data before integration.
- API owners who need to review resource naming, versioning, and breaking-change boundaries.
- Architects who need to convert endpoint drafts into OpenAPI 3.0 YAML for tooling.
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.