بنقرة واحدة
api-design
Design REST and GraphQL APIs following OpenAPI 3.1 standards. Produce complete
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Design REST and GraphQL APIs following OpenAPI 3.1 standards. Produce complete
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Consult and write the ARAYA postoffice — the operational-directive channel. Advisory, never a gate: read it at cycle start, append your entry at cycle end, consider its directives, never be blocked by it. Governance acts never travel the postoffice.
Audit and enforce brand compliance across all projects and platforms — logo,
Connect frontend to backend — type-safe API clients, request/response handling,
Implement authentication and authorization middleware — JWT validation, role-based
Design scalable component architectures — design systems, component libraries,
Create reusable, accessible, and well-typed UI components following design system
| name | api-design |
| description | Design REST and GraphQL APIs following OpenAPI 3.1 standards. Produce complete |
| governance | Constitution ENG-004: Engineering Excellence & Software Craftsmanship Standard |
Design REST and GraphQL APIs following OpenAPI 3.1 standards. Produce complete API specifications with endpoints, schemas, authentication, error handling, and versioning — ready for implementation and documentation.
APIs designed ad-hoc become inconsistent, poorly documented, and hard to maintain. This skill produces a complete API specification upfront — the contract between frontend and backend — ensuring every endpoint is well-designed before a single line of code is written.
Before implementing any API. When adding new endpoints to an existing API. When The Data Professor describes a feature that needs a backend.
Feature requirements, data model, authentication strategy.
An OpenAPI 3.1 specification:
# openapi.yaml
openapi: "3.1.0"
info:
title: User Management API
version: "1.0.0"
description: User CRUD with JWT authentication
servers:
- url: http://localhost:3000/api/v1
description: Development server
paths:
/users:
post:
summary: Create a new user
operationId: createUser
tags: [Users]
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CreateUserRequest"
responses:
"201":
description: User created
content:
application/json:
schema:
$ref: "#/components/schemas/User"
"400":
$ref: "#/components/responses/ValidationError"
"409":
description: Email already exists
/users/{userId}:
get:
summary: Get user by ID
operationId: getUser
tags: [Users]
parameters:
- name: userId
in: path
required: true
schema: { type: string, format: uuid }
responses:
"200":
description: User found
content:
application/json:
schema:
$ref: "#/components/schemas/User"
"404":
description: User not found
components:
schemas:
User:
type: object
required: [id, name, email, createdAt]
properties:
id: { type: string, format: uuid }
name: { type: string, minLength: 1, maxLength: 100 }
email: { type: string, format: email }
role: { type: string, enum: [user, admin] }
createdAt: { type: string, format: date-time }
CreateUserRequest:
type: object
required: [name, email, password]
properties:
name: { type: string, minLength: 1, maxLength: 100 }
email: { type: string, format: email }
password: { type: string, format: password, minLength: 8 }
responses:
ValidationError:
description: Validation failed
content:
application/json:
schema:
type: object
properties:
error: { type: string }
details:
type: array
items:
type: object
properties:
field: { type: string }
message: { type: string }
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
/users, /orders), HTTP methods as verbs/v1/ prefix or header-based versioning/users), single resource by ID (/users/{id})?page=1&limit=20.araya/plan/spec/openapi.yaml