agentsclimarketplace

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.

Install
npx -y skills add jukrap/ai-agent-playbook --skill request-validation-error-contract

Assembled 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

  1. Identify route, handler, schema, DTO, middleware, exception mapper, client callers, and documented error shape.
  2. Separate parsing, validation, authorization, business rule failure, conflict, rate limit, and unexpected error paths.
  3. Preserve stable status codes, error codes, field paths, localization keys, and retry semantics unless the change is explicitly versioned.
  4. Keep sensitive values out of error bodies, logs, traces, and validation messages.
  5. Verify success, invalid input, missing permission, conflict, not found, and unexpected failure paths.
  6. Pair with api-contract-boundary when 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.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.