Request Validation

🌐Community
by dadbodgeoff Β· vlatest Β· Repository

Checks user requests against predefined rules to ensure feasibility, safety, and adherence to guidelines.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add request-validation npx -- -y @trustedskills/request-validation
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "request-validation": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/request-validation"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The request-validation skill validates incoming requests against a predefined schema. It ensures that data conforms to expected formats and constraints, preventing errors and improving reliability. This skill is particularly useful when interacting with external APIs or processing user input where data integrity is critical.

When to use it

  • API Integration: Validate data received from an external API before further processing.
  • User Input Sanitization: Ensure user-provided data adheres to specific rules and formats (e.g., email addresses, phone numbers).
  • Data Transformation Pipelines: Verify the structure of data at various stages within a transformation process.
  • Form Submission Handling: Validate form submissions to prevent invalid or malicious data from being stored.

Key capabilities

  • Schema definition
  • Request validation against schema
  • Error reporting on validation failures

Example prompts

  • "Validate this request: {\"name\": \"John Doe\", \"email\": \"invalid-email\"} against the user registration schema."
  • "Check if this API response is valid according to the product details schema."
  • β€œIs this form data, {\"age\": -5} valid based on the age field constraints?”

Tips & gotchas

The skill requires a clearly defined schema for validation. Ensure that your schemas are accurate and comprehensive to effectively catch potential errors.

Tags

πŸ›‘οΈ

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates β€” what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
dadbodgeoff
Installs
15

🌐 Community

Passed automated security scans.