一键导入
spinder-type-creation
Create new Zod-based type definitions for the Spinder expense tracking app, following the project's type organization patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create new Zod-based type definitions for the Spinder expense tracking app, following the project's type organization patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create and manage expense categorization buckets in the Spinder app, including filtering logic and data aggregation.
Create new Lit-based components for the Spinder expense tracking app, following the project's coding standards and architecture patterns.
Debug issues in the Spinder expense tracking app, including transaction processing, UI rendering, and data flow problems.
Create, dispatch, and listen to custom events in the Spinder app using the Zod-validated event system.
Create new pages and routes in the Spinder application, following the routing architecture and page component patterns.
Handle CSV parsing, transaction validation, and data processing for the Spinder expense tracking app.
| name | spinder-type-creation |
| description | Create new Zod-based type definitions for the Spinder expense tracking app, following the project's type organization patterns. |
This skill helps create new type definitions using Zod for the Spinder application, ensuring type safety and validation throughout the codebase.
Use this skill when you need to:
All types must be created following these rules:
src/shared/type.<type-name>.tssrc/shared/type.<type-name>.ts.optional() when applicablez.object()import { z } from "zod";
export const ExampleType = z.object({
id: z.string(),
name: z.string().min(1, "Name is required"),
amount: z.number().positive("Amount must be positive"),
category: z.enum(["income", "expense", "transfer"]),
date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/, "Invalid date format"),
tags: z.array(z.string()).optional(),
});
export type ExampleType = z.infer<typeof ExampleType>;
.email(), .url(), .uuid(), etc..transform() for data conversion.and(), .or(), .merge().refine() for complex validation logic.optional() or .nullable()Once defined, import and use types in:
parse() or safeParse()safeParse() in user-facing code to handle validation errors gracefully