br-write-schema
CommunityEnforce payload validation with writeSchema
AuthorLonsdale201
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables developers to enforce consistent payload validation for WordPress Resource endpoints by applying a per-field schema via writeSchema and payloadSchema, ensuring data is coerced, sanitized, and validated before handlers run.
Core Features & Use Cases
- Per-field rule shapes that drive type coercion, sanitization, and constraint checks.
- Flat enum shape support with explicit 'values' list.
- Aliases for common types to keep code consistent (int ↔ integer, float ↔ number, bool ↔ boolean).
- Error reporting via validation_failed with details.fieldErrors.
- Usage across create (POST) and update (PUT/PATCH) workflows; reuse across resources via writeSchema / payloadSchema.
Quick Start
Define a writeSchema on your Resource to validate incoming payloads and ensure errors surface as fieldErrors on failure.
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: br-write-schema Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#br-write-schema 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 471,000+ vetted skills library on demand.