원클릭으로
coder-system-design-api-design
API design rules for stable, observable, backward-compatible HTTP APIs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
API design rules for stable, observable, backward-compatible HTTP APIs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Mandatory baseline rules for any agent. Must be loaded before any work
Frontend design system practices: tokens, typography, color, layout, and component consistency.
Frontend UI/UX practices: flows, interaction states, accessibility-first UX, forms, and perceived performance.
Clean code execution rules for coding agents with verifiable quality gates.
Debugging requirements protocol from reproducible issue to verified fix and regression protection.
Requirement quality rules for coding tasks with traceable MUST/SHOULD and verifiable acceptance criteria.
| name | coder-system-design-api-design |
| description | API design rules for stable, observable, backward-compatible HTTP APIs. |
<when_to_use> Designing new HTTP APIs or evolving existing contracts Reviewing API changes for compatibility and client impact Defining versioning, error model, pagination, and idempotency </when_to_use>
<input_requirements> API consumers and usage patterns Resource model and operation set Compatibility policy and deprecation expectations Operational requirements (SLOs, observability, rate limits) </input_requirements>
<design_rules> Model nouns as resources and use HTTP semantics consistently Define one explicit versioning strategy and enforce it platform-wide Use machine-readable error format with stable codes/types Support idempotency for mutating operations with retries Ship pagination from first release for list endpoints Keep filtering/sorting grammar explicit and validated Require request correlation and trace propagation headers Treat backward compatibility as mandatory default in same major version Use explicit deprecation timeline and sunset communication </design_rules>
<decision_matrix> Versioning: path major for public API unless platform standard mandates header/query versioning Error model: prefer RFC 9457 problem details over custom ad-hoc envelopes Pagination: cursor/page token for mutable datasets; offset only for small stable datasets </decision_matrix>
Status codes are accurate and documented per operation Error payload includes stable identifier and actionable detail Idempotency behavior is documented for retries and duplicate submission List endpoints define page size bounds and continuation token behavior Compatibility impact is evaluated for each contract change<do_not> Do not introduce breaking field or behavior changes in same major version Do not require clients to parse free-text error messages Do not add pagination later for high-volume endpoints </do_not>
<output_requirements> API contract summary with versioning and compatibility notes Error model and idempotency strategy Pagination/filtering contract and limits Observability and deprecation plan </output_requirements>