skeletorflet/opencode-supreme-setup/zod
Claude Code and agent skill by skeletorflet/opencode-supreme-setup
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Zod — schema validation, type inference, parsing, refinement, transforms, integration.
Install
npx vskill@latest install skeletorflet/opencode-supreme-setup/zodSKILL.md
zod
Schema Definitions
- Primitives:
z.string(),z.number(),z.boolean(),z.bigint(),z.date(),z.null(),z.undefined(). - Objects:
z.object({ name: z.string() })— nested, optional.optional(), nullable.nullable(). - Arrays/Tuples:
z.array(z.string()),z.tuple([z.string(), z.number()]). - Unions/Discriminated:
z.union([...]),z.discriminatedUnion('type', [...])for tagged unions. - Literal/Enum:
z.literal('foo'),z.enum(['A', 'B']),z.nativeEnum(ColorEnum).
Type Inference
z.infer<typeof schema>— extract TS type from schema;z.input<T>/z.output<T>for input/output variants.z.ZodType<T>— class generic for extending or wrapping schemas.
Parsing
schema.parse(data)— throwsZodErroron failure;schema.safeParse(data)— returns{ success, data, error }.schema.parseAsync(data)/schema.safeParseAsync(data)for async refinements.- Partial/deep partial:
schema.partial(),.deepPartial(),.pick({ k: true }),.omit({ k: true }).
Refinement & Transform
.refine((val) => val.length > 5, "too short")— custom sync/async validation..superRefine((val, ctx) => { ctx.addIssue(...) })— multi-issue additions..transform((val) => val.toUpperCase())— post-parse value transformation..preprocess((val) => typeof val === 'string' ? JSON.parse(val) : val)— pre-parse hooks.
Integration
- React Hook Form:
zodResolver(z.object({...}))from@hookform/resolvers/zod. - tRPC: schemas as procedure input/output validators.
- OpenAPI generation via
zod-to-json-schemaor@anatine/zod-openapi.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingconfig/skills/zod/SKILL.md
Popularity
- Repository stars
- 48
- Repository forks
- 2
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/skeletorflet/opencode-supreme-setup/zod)