Resources
1Install
npx skillscat add busirocket/agents-skills/busirocket-validation Install via the SkillsCat registry.
Here's a thinking process: 1. **Analyze the Request:** - **Goal:** Write a 2-3 sentence plain-text summary in English - **Subject:** An AI agent skill for a public software directory - **Source Material:** Provided description and SKILL.md excerpt about "busirocket-validation" - **Constraints:** - Objective, factual tone only - No marketing language, no superlatives, no calls to action - Natural prose, no bullet points, no headings, no markdown formatting - Do not wrap in quotes - At most 60 words - **Output:** ONLY the summary text 2.
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/<area>/
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/<area>/; infer types withz.infer<typeof Schema>. - Prefer
unknowninputs 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 withz.infer
Guard Helpers (Simple Runtime Checks)
validation-guard-helpers- Creating simple guard functions with type
predicatesvalidation-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 handlersbusirocket-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.mdEach rule file contains:
- Brief explanation of why it matters
- Code examples (correct and incorrect patterns)
- Additional context and best practices