Knowledge skill for API contracts and endpoint patterns. Injected into Builder and Validator agents during engage to enforce consistent API design, error handling, and request/response schemas. Not user-invocable.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Knowledge skill for API contracts and endpoint patterns. Injected into Builder and Validator agents during engage to enforce consistent API design, error handling, and request/response schemas. Not user-invocable.
user-invocable
false
Knowledge: API Contracts
This knowledge skill provides context about API design patterns and contracts. Injected into Builder (Scotty) and Validator (McCoy) agents during engage.
Endpoint Patterns
Route Structure
// Routes follow RESTful conventionsGET /api/{resource} -- List resources
GET /api/{resource}/:id -- Get single resource
POST /api/{resource} -- Create resource
PUT /api/{resource}/:id -- Updateresource (full replace)
PATCH /api/{resource}/:id -- Updateresource (partial)
DELETE /api/{resource}/:id -- Delete resource
Handler Shape
exportconst handleGetResource = async (req: Request): Promise<Response> => {
// 1. Parse and validate inputconst params = validateParams(req);
// 2. Execute business logicconst result = await service.getResource(params.id);
// 3. Return structured responsereturnResponse.json({ data: result });
};