zod 是做什麼的?
Zod 模式驗證最佳實踐,用於型別安全、解析和錯誤處理。此技能應在定義 z.object 模式、使用 z.string 驗證、safeParse 或 z.infer 時使用。此技能不涵蓋 React Hook Form 整合模式(請使用 react-hook-form 技能)或 OpenAPI 用戶端生成(請使用 orval 技能)。
Zod 模式驗證最佳實踐,用於型別安全、解析和錯誤處理。此技能適用於定義 z.object 模式、使用 z.string 驗證、safeParse 或 z.infer。此技能不涵蓋 React Hook Form 整合模式(請使用 react-hook-form 技能)或 OpenAPI 用戶端生成(請使用 orval 技能)。
這項「pproenca/zod」技能提供基於 Zod 函式庫的模式驗證最佳實踐指南,專注於型別安全、資料解析與錯誤處理。對於使用 Zod 定義 z.object 模式、執行 z.string 驗證、調用 safeParse 進行安全解析,或透過 z.infer 推斷型別的開發者而言,此技能極具價值。它能協助您撰寫更穩固、型別安全的驗證邏輯,避免常見的陷阱,並確保與 TypeScript 型別系統無縫整合。此技能適用於任何支援 Zod 的開發環境(例如 Node.js、Deno、瀏覽器),且在 AI 代理(如 Claude Code、Cursor)中能根據您的需求自動生成或建議 Zod 驗證程式碼。其運作方式是透過解析 SKILL.md 文件中定義的最佳實踐,在您使用 Zod 時提供語境相關的建議,從而提升程式碼品質與開發效率。請注意,此技能不涵蓋 React Hook Form 的整合模式或 OpenAPI 用戶端生成,這些相關需求應分別使用對應的技能。
npx skills add https://github.com/pproenca/dot-skills/tree/main/skills/zodInstalled? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
Zod 模式驗證最佳實踐,用於型別安全、解析和錯誤處理。此技能應在定義 z.object 模式、使用 z.string 驗證、safeParse 或 z.infer 時使用。此技能不涵蓋 React Hook Form 整合模式(請使用 react-hook-form 技能)或 OpenAPI 用戶端生成(請使用 orval 技能)。
This repo contains 7 individual skills — each has its own dedicated page.
Clean Architecture principles and best practices from Robert C. Martin's book. This skill should be used when designing software systems, reviewing code structure, or refactoring applications to achieve better separation of concerns. Triggers on tasks involving layers, boundaries, dependency direction, entities, use cases, or system architecture.
Code simplification skill for improving clarity, consistency, and maintainability while preserving exact behavior. Use when simplifying code, reducing complexity, cleaning up recent changes, applying refactoring patterns, or improving readability. Triggers on tasks involving code cleanup, simplification, refactoring, or readability improvements.
Emil Kowalski's animation best practices for web interfaces. Use when writing, reviewing, or implementing animations in React, CSS, or Framer Motion. Triggers on tasks involving transitions, easing, gestures, toasts, drawers, or motion.
nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management. Triggers on tasks involving useQueryState, useQueryStates, search params, URL state, query parameters, nuqs parsers, limitUrlUpdates, Standard Schema, NuqsAdapter, or Next.js routing with state.
React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, and the v7.55+ subscribe() API. This skill should be used when building client-side controlled forms with React Hook Form library. This skill does NOT cover React 19 Server Actions, useActionState, or server-side form handling (use react-19 skill for those).
TypeScript performance, tsconfig, type errors, async patterns — triggered when the user asks to "optimize TypeScript performance", "speed up tsc compilation", "configure tsconfig.json", "fix type errors", "improve async patterns", or encounters TS errors (TS2322, TS2339, "is not assignable to"). Also triggers on .ts, .tsx, .d.ts file work involving type definitions, module organization, or memory management. Does NOT cover TypeScript basics, framework-specific patterns, or testing.
Vitest testing framework patterns for test setup, async testing, mocking with vi.*, snapshots, and test performance (formerly test-vitest). This skill should be used when writing or debugging Vitest tests. This skill does NOT cover TDD methodology (use test-tdd skill), API mocking with MSW (use test-msw skill), or Jest-specific APIs.
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.