Request validation error contract
Skill jukrap/ai-agent-playbook/skills/backend/request-validation-error-contract
Reusable AI agent skills, project templates, and guardrails for safer software maintenance and delivery.
npx -y skills add jukrap/ai-agent-playbook --skill request-validation-error-contractAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when changing backend request parsing, validation, error responses, exception mapping, or client-visible failure contracts.
SKILL.md
1.2 KB, as published. Nobody here has run it
Request Validation Error Contract
Protect request and failure contracts before changing backend validation or error handling.
Workflow
- Identify route, handler, schema, DTO, middleware, exception mapper, client callers, and documented error shape.
- Separate parsing, validation, authorization, business rule failure, conflict, rate limit, and unexpected error paths.
- Preserve stable status codes, error codes, field paths, localization keys, and retry semantics unless the change is explicitly versioned.
- Keep sensitive values out of error bodies, logs, traces, and validation messages.
- Verify success, invalid input, missing permission, conflict, not found, and unexpected failure paths.
- Pair with
api-contract-boundarywhen frontend mocks, generated clients, OpenAPI, or external consumers depend on the shape.
Reference
Read references/request-error-contract.md before editing validators, DTOs, exception filters, middleware, or error response schemas.