Zod helps you check that your data is correct and safe. It works with TypeScript to make sure numbers are numbers and emails are valid. These best practices show you how to use Zod properly without mistakes.
Schema validation is important for catching errors early. You can use safeParse to avoid crashes when checking user input. Always apply string validations right in your schema definition.
Follow these rules to write cleaner code and avoid common pitfalls. They cover everything from defining schemas to handling errors. Your team will thank you for using these best practices.
Global
mkdir -p ~/.claude/skills/zodProject
mkdir -p .claude/skills/zodSource Repository
Typescript Advanced Typeswshobson/agents
Master advanced TypeScript types for safer and more flexible code
Python Executorqu-skills/skills
Execute Python code safely with 100+ libraries for data, scraping, and media
Golang Error Handlingsamber/cc-skills-golang
Learn to create, wrap, inspect, and log Go errors like a professional engineer
Golang Performancesamber/cc-skills-golang
Speed up your Go code using proven patterns for allocation reduction and CPU efficiency
Golang Design Patternssamber/cc-skills-golang
Idiomatic Go patterns for clean constructors error handling and graceful shutdown
Golang Concurrencysamber/cc-skills-golang
Write safe Go concurrency with goroutines, channels, and sync primitives
Golang Contextsamber/cc-skills-golang
Master Go context for cancellations, timeouts, and request values
Golang Data Structuressamber/cc-skills-golang
Optimize Go data structures for speed and memory efficiency with internals knowledge