بنقرة واحدة
api-design-principles
RESTful API design principles for consistent, versioned, developer-friendly APIs
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
RESTful API design principles for consistent, versioned, developer-friendly APIs
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Review existing Architecture Decision Records. Flag ADRs whose aging signals may have triggered given current state. Categorizes each as valid / aged / superseded and suggests follow-up actions.
Author an Architecture Decision Record (ADR). Captures decisions with implications beyond the current change — lasts months, affects multiple files, hard to reverse. Records context, alternatives considered, consequences, and aging signals so the decision can be revisited when conditions change.
4-phase loop-detection and recovery protocol. Fires when an agent detects it is stuck or repeating the same tool call with no progress — before tool-loop-detection circuit-breaks at 30 calls.
Socratic exploration of requirements before implementation. Refines spec through targeted questions. Use when user asks to 'explore options', 'refine requirements', or mentions 'unclear requirements'.
Generate structured changelog from git history. Groups commits by type, filters noise, produces Keep a Changelog format. Single source of truth — no /commands wrapper.
Generate pipe-delimited commits: Tipo|IdTarea|YYYYMMDD|Descripción. Single source of truth — no /commands wrapper.
| name | api-design-principles |
| description | RESTful API design principles for consistent, versioned, developer-friendly APIs |
| version | 1.0.0 |
| allowed-tools | ["Read","Grep","Glob","Edit","Write"] |
| load_when | ["designing_api_endpoints","reviewing_api_contracts","creating_openapi_specs"] |
| inputs | [{"name":"api_scope","type":"string","required":true},{"name":"existing_endpoints","type":"array","required":false}] |
| outputs | [{"name":"api_contract","type":"structured_report","format":"Method | Path | Request | Response | Status codes"},{"name":"openapi_snippet","type":"string","format":"YAML OpenAPI 3.0"}] |
| constraints | ["versioning_required_in_all_public_apis","no_breaking_changes_without_version_bump","consistent_error_response_format_enforced"] |
Skill para diseñar, implementar y auditar APIs REST siguiendo mejores prácticas en NestJS.
/api/v1/){ statusCode, message, errors?, timestamp, path, method }{ status, message, data } (o data + meta paginado)@ApiOperation, @ApiResponse, @ApiBody, ejemplos/getUser, /createCutoff, /cutoffs/delete/:id) — usar el método HTTP./user/123) — siempre plural (/users/123).limit=10000 tumba el servicio.v2.class-validator permite SQL injection / abuso.| Need | Reference |
|---|---|
| Convenciones de URLs y recursos | references/resource-oriented-urls.md |
| Métodos HTTP, status codes, idempotencia | references/http-semantics.md |
PaginationDto + PaginatedResponse<T> con meta | references/pagination.md |
FiltersDto con sortBy, sortOrder, filtros validados | references/filtering-sorting.md |
| Estrategia de versionado por URL y deprecación | references/versioning.md |
ErrorResponse + AllExceptionsFilter global | references/error-handling.md |
Decoradores @ApiOperation, @ApiResponse, ejemplos | references/swagger-docs.md |
| Workflow de auditoría de un módulo existente | references/audit-workflow.md |
class-validator{ status, message, data }ErrorResponse global/api/v{N}/ aplicado