Toolverse
All skills

zod-patterns

by mx-space

MX Space project Zod schema patterns. Apply when creating DTOs, validation schemas, or handling request validation.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
mx-space
Category
Mobile
Views
4

About this skill

MX Space project Zod schema patterns. Apply when creating DTOs, validation schemas, or handling request validation.

How to use

  1. Zaimportuj Zod i funkcję createZodDto z biblioteki nestjs-zod do swojego pliku schematów. 2. Zdefiniuj schemat za pomocą z.object(), określając pola i ich reguły walidacji (np. z.string().email() dla emaila, z.number().int().positive() dla liczb dodatnich). 3. Utwórz klasę DTO rozszerzającą createZodDto z Twoim schematem – będzie to Twój typ danych do transferu. 4. Dla operacji aktualizacyjnych stwórz PartialDto rozszerzające createZodDto ze schematem .partial(), aby pola były opcjonalne. 5. Jeśli potrzebujesz niestandardowych walidatorów (jak zMongoId, zNonEmptyString czy zArrayUnique), zaimportuj je z apps/core/src/shared/schema/base.schema.ts i użyj w swoim schemacie. 6. Rozszerzaj istniejące schematy bazowe (np. WriteBaseSchema) za pomocą .extend(), aby dodać nowe pola do już zdefiniowanych struktur – oszczędza to powtarzanie kodu.

Related skills

liquid-glass-developer

by anyproto

Context-aware routing to iOS 26 Liquid Glass implementation patterns. Use when working with glass effects, GlassEffectContainer, morphing transitions, or iOS 26 visual effects.

Mobile
2061

openscad

by mitsuhiko

Create and render OpenSCAD 3D models. Generate preview images from multiple angles, extract customizable parameters, validate syntax, and export STL files for 3D printing platforms like MakerWorld.

Mobile
4291

xcodebuildmcp

by cameroncooke

Official skill for XcodeBuildMCP. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation).

Mobile
2225

create-plan

by antinomyhq

Generate detailed implementation plans for complex tasks. Creates comprehensive strategic plans in Markdown format with objectives, step-by-step implementation tasks using checkbox format, verification criteria, risk assessments, and alternative approaches. Use when users need

Mobile
13108

vercel-react-native-skills

by vercel-labs

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or

Mobile
1745

swift-best-practices

by sammcj

This skill should be used when writing or reviewing Swift code for iOS or macOS projects. Apply modern Swift 6+ best practices, concurrency patterns, API design guidelines, and migration strategies. Covers async/await, actors, MainActor, Sendable, typed throws, and Swift 6

Mobile
36140