go-create-validator
CommunityBuild modular Go validators for clean design.
System Documentation
What problem does it solve?
Generate Go validator implementations following modular architecture conventions (interface-first design, Fx DI, stateless validation). Use when creating validation logic in internal/modules/<module>/validator/ - password validation, email validation, input sanitization, business rule validation, or any domain validation that encapsulates validation rules and returns typed errors.
Core Features & Use Cases
- Two-file pattern: Port interface at internal/modules/<module>/ports/<validator_name>_validator.go and implementation at internal/modules/<module>/validator/<validator_name>_validator.go.
- Fx wiring and dependency management: ready for DI and modular wiring.
- Typed errors: integrates with module errs for domain-specific error handling.
- Use Case: quickly scaffold validation layers for new domain modules.
Quick Start
Create a new validator for a module by generating the port interface and the validator implementation following the two-file pattern.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-create-validator Download link: https://github.com/cristiano-pacheco/ai-rules/archive/main.zip#go-create-validator Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.