一键导入
api-contract-design
Design REST/WebSocket API contracts with TypeScript types
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design REST/WebSocket API contracts with TypeScript types
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.
| 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
}