com um clique
api-contract-design
Design REST/WebSocket API contracts with TypeScript types
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Design REST/WebSocket API contracts with TypeScript types
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
| name | api-contract-design |
| description | Design REST/WebSocket API contracts with TypeScript types |
| tier_tokens | {"minimal":150,"standard":300,"full":400} |
Generate TypeScript interfaces from software requirements.
Return ONLY valid JSON:
{
"types": [{"name": "...", "fields": {...}, "description": "..."}],
"endpoints": [{"path": "/api/...", "method": "GET", "response_type": "..."}],
"components": [{"name": "...", "props": {...}}],
"services": [{"name": "...", "methods": {...}}]
}
any types - be specificinterface TypeDefinition {
name: string
fields: Record<string, string> // fieldName: "TypeScript type"
description: string
optional_fields?: string[]
}
interface APIEndpoint {
path: string // "/api/v1/users"
method: "GET" | "POST" | "PUT" | "DELETE"
request_type?: string // Request body type
response_type: string // Response type
auth_required: boolean
tags: string[]
}
interface ComponentContract {
name: string
props: Record<string, string>
description: string
children?: boolean
events?: string[]
}
any typeFor each entity, generate:
| Method | Path | Action |
|---|---|---|
| GET | /api/v1/{resource}s | List all |
| GET | /api/v1/{resource}s/{id} | Get by ID |
| POST | /api/v1/{resource}s | Create |
| PUT | /api/v1/{resource}s/{id} | Update |
| DELETE | /api/v1/{resource}s/{id} | Delete |
interface ServiceContract {
name: string
methods: Record<string, {
params: Record<string, string>
return_type: string
description: string
}>
description: string
}
Generate REST APIs from TypeScript contracts with CRUD operations
Implements authentication (JWT, OAuth2) and authorization (RBAC) from requirements
Review quality of generated code. Checks for empty files, broken imports, missing modules, duplicate code, TypeScript errors, and rates overall quality. Identifies files that need regeneration.
Quick health check of all Coding Engine infrastructure. Checks containers, DB connectivity, API endpoints, Discord bot, sandbox preview, LLM API keys, and generation process. Takes 15 seconds.
Diagnoses pipeline problems and outputs actionable fix commands. Combines insights from status-report, code-quality, task-audit, and health-check into concrete recommendations with copy-paste-ready commands. Answers "what should I do next?" and "why is generation stuck?"
Generate a comprehensive Coding Engine status report in under 60 seconds. Covers DB task stats, generated files, generation loop progress, container health, Discord bot status, and error analysis.