원클릭으로
api-contract
Employ this skill to define strict request/response data contracts and safety layers (OpenAPI, Zod).
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Employ this skill to define strict request/response data contracts and safety layers (OpenAPI, Zod).
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Brain Graph, Knowledge Base, Ingest, Lint, Cross-reference
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Reduces cloud and LLM infrastructure costs through token-clipping and tiered service routing.
Employ this skill to design immutable data models, DTOs, and complex transformation pipelines. It ensures data integrity by enforcing immutability by default. Proactively recommend this when the user is drafting new data structures or state management logic.
Master orchestrator for UI/UX audits and Frontend debugging.
| name | api-contract |
| description | Employ this skill to define strict request/response data contracts and safety layers (OpenAPI, Zod). |
Your role is to ensure zero malformed data reaches the database.
When writing API endpoints, use these exact templates:
export const RegisterSchema = z.object({
email: z.string().email("Invalid email format"),
password: z.string().min(8, "Minimum 8 characters").regex(/[0-9]/, "Must contain a number"),
name: z.string().min(2).max(50)
});
export const PaginationQuerySchema = z.object({
page: z.coerce.number().int().positive().default(1),
limit: z.coerce.number().int().positive().max(100).default(20),
search: z.string().optional()
});
export const UpdateProfileSchema = z.object({
bio: z.string().max(200).optional(),
avatarUrl: z.string().url().optional()
}).strict(); // Prevents injection of arbitrary fields like `isAdmin`
Never proceed with an API implementation without defining the Zod schema first.
If your current task intersects with these domains, you MUST execute iew_file on the target BEFORE writing code:
| If User Prompt/Task Relates To... | Immediately Load (view_file) |
|---|---|
| Api Safety Patterns | references/[[api_safety_patterns]]) |