smithery.ai

Global Validation

Implement secure, comprehensive input validation on both client and server sides using allowlists, type checking, and sanitization to prevent injection attacks. Use this skill when handling user input from forms, API requests, or any external data source. When implementing form validation logic with field-specific error messages. When validating data types, formats, ranges, and required fields. When sanitizing input to prevent SQL injection, XSS, or command injection. When validating business r…

Installation

$ npx skills add https://smithery.ai

Summary

  • Implement secure, comprehensive input validation on both client and server sides using allowlists, type checking, and sanitization to prevent injection attacks.
  • Use this skill when handling user input from forms, API requests, or any external data source.
  • When implementing form validation logic with field-specific error messages.
  • When validating data types, formats, ranges, and required fields.
  • When sanitizing input to prevent SQL injection, XSS, or command injection.
  • When validating business rules like sufficient balance or valid date ranges.
  • When implementing both client-side validation for user experience and mandatory server-side validation for security.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,874 B
  • docs SUMMARY.md 691 B

History

  1. First recorded snapshot · 5 installs

SKILL.md

Global Validation

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle global validation.

When to use this skill

  • When handling user input from forms, API endpoints, or external data sources
  • When implementing form validation with field-specific error messages
  • When validating data types, formats (email, phone, URL), ranges, and required fields
  • When sanitizing user input to prevent injection attacks (SQL, XSS, command injection)
  • When implementing client-side validation for immediate user feedback
  • When implementing mandatory server-side validation for security and data integrity
  • When validating business rules (sufficient balance, valid date ranges, stock availability)
  • When using allowlists to define what input is acceptable rather than blocklists
  • When applying validation consistently across all entry points (web, API, background jobs)
  • When failing early by rejecting invalid data before processing

Instructions

For details, refer to the information provided in this file: [global validation](../../../agent-os/standards/global/validation.md)