🎯

busirocket-validation

🎯Skill

from busirocket/agents-skills

VibeIndex|
What it does

busirocket-validation skill from busirocket/agents-skills

πŸ“¦

Part of

busirocket/agents-skills(15 items)

busirocket-validation

Installation

Quick InstallInstall with npx
npx skills add BusiRocket/agents-skills
Quick InstallInstall with npx
npx add-skill BusiRocket/agents-skills
Quick InstallInstall with npx
npx skills add
πŸ“– Extracted from docs: busirocket/agents-skills
1Installs
-
Last UpdatedFeb 3, 2026

Skill Details

SKILL.md

Overview

# Validation (Zod + Guards)

Consistent validation at boundaries: Zod for complex schemas, small guards for

simple runtime checks.

When to Use

Use this skill when:

  • Validating API responses or external data in services
  • Validating request/input shapes at boundaries (e.g. route handlers, SDK)
  • Adding or refactoring utils/validation/ helpers
  • Defining Zod schemas alongside types in types//

Non-Negotiables (MUST)

  • Services: validate API/external data with Zod schemas (e.g.

.safeParse()).

  • Utils: keep small coercion/guard helpers under utils/validation/ (one

function per file).

  • Types: Zod schemas can live in types//; infer types with

z.infer.

  • Prefer unknown inputs at boundaries + explicit narrowing.
  • No inline validation logic inside components/hooks.

Rules

Boundaries & Placement

  • validation-boundaries - Where validation lives (services, utils, types)

Zod Schemas (Complex Validation)

  • validation-zod-schemas - Using Zod for complex validation with

.safeParse()

  • validation-zod-types - Inferring types from Zod schemas with z.infer

Guard Helpers (Simple Runtime Checks)

  • validation-guard-helpers - Creating simple guard functions with type

predicates

  • validation-guard-examples - Recommended guard helpers (isRecord,

isNonEmptyString, etc.)

Anti-Patterns

  • validation-no-inline - No inline validation logic in components/hooks

Related Skills

  • busirocket-nextjs - Validation in route handlers
  • busirocket-core-conventions - File boundaries and structure

How to Use

Read individual rule files for detailed explanations and code examples:

```

rules/validation-boundaries.md

rules/validation-zod-schemas.md

rules/validation-guard-helpers.md

```

Each rule file contains:

  • Brief explanation of why it matters
  • Code examples (correct and incorrect patterns)
  • Additional context and best practices

More from this repository10

🎯
busirocket-tailwindcss-v4🎯Skill

busirocket-tailwindcss-v4 skill from busirocket/agents-skills

🎯
busirocket-refactor-workflow🎯Skill

Enforces strict TypeScript/React refactoring workflow with quality gates, file splitting rules, and mandatory post-refactor checks.

🎯
busirocket-tauri🎯Skill

Enforces Tauri desktop app standards by guiding command creation, invoke handler configuration, and Rust project layout.

🎯
busirocket-typescript-standards🎯Skill

Enforces strict TypeScript standards for maintainable codebases, focusing on one-thing-per-file, type conventions, and Next.js export exceptions.

🎯
busirocket-nextjs🎯Skill

Generates standardized, thin Next.js route handlers with input validation, proper HTTP status codes, and consistent JSON response patterns.

🎯
busirocket-supabase🎯Skill

Enforces strict Supabase access boundaries by centralizing database interactions in a dedicated service layer, preventing direct external calls.

🎯
busirocket-react🎯Skill

Applies React best practices with Zustand state management, enforcing component structure, hook extraction, and efficient state handling across React applications.

🎯
busirocket-rust🎯Skill

Enforces strict Rust coding standards, ensuring maintainable codebases with modular, clean, and separated concerns.

🎯
busirocket-nextjs-route-handlers🎯Skill

Generates and structures thin, type-safe Next.js route handlers with standardized validation, error handling, and consistent response patterns for API endpoints.

🎯
busirocket-react-state-management-zustand🎯Skill

Provides opinionated Zustand state management conventions and best practices for React applications, focusing on clean, scalable store creation, state manipulation, and predictable global state han...