input-validation

Validate external input data for type, range, format, and length.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Shah-Aayush/pr-reviewer --skill input-validation-shah-aayush
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: input-validation
Source: https://github.com/Shah-Aayush/pr-reviewer/tree/main/shared-skills/security-axes/input-validation
Command: npx skills add https://github.com/Shah-Aayush/pr-reviewer --skill input-validation-shah-aayush

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures that data crossing trust boundaries is properly validated for type, range, format, and length, improving security and robustness in code handling external inputs.

Core Features & Use Cases

  • Data Validation: Checks inputs like HTTP requests, database reads, and environment variables for type, range, format, and length.
  • Trust Boundary Checks: Identifies interfaces where data enters your process from less-trusted sources and applies necessary validations.
  • High-Signal Axes: Flags common vulnerabilities like missing schemas, unbounded reads, path operations on user-supplied paths, and command injection.
  • Severity Calibration: Categorizes potential security issues into severity levels (critical, high, medium, low).

Quick Start

To scan a code diff for input validation issues, run 'input-validation scan --path your_diff_file.diff'

Frequently Asked Questions about input-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate external input data across trust boundaries?

Validating external input data across trust boundaries requires checking HTTP requests, database reads, and environment variables for type, range, format, and length. This process identifies interfaces where less-trusted data enters and applies pattern matching to enforce code security.

What is trust boundary security and when do I need it?

Trust boundary security is the practice of validating data type, range, format, and length when it crosses from less-trusted sources into your process. You need it when processing external inputs from HTTP APIs, database interactions, and command-line operations to prevent missing schemas and unbounded reads.

How do I scan a code diff for input validation and command injection vulnerabilities?

Scanning a code diff for input validation and command injection vulnerabilities involves running an analysis script against your diff file. This checks for path operations on user-supplied paths and categorizes potential security issues into critical, high, medium, and low severity levels.

Does this input validation approach work with HTTP APIs and environment variables?

Yes, this input validation approach works with HTTP APIs and environment variables. It applies type checking, format validation, and range analysis to environments where external data is processed, including HTTP requests, database reads, and command-line operations.

What are the limitations of using pattern matching for data validation?

Pattern matching for data validation requires input analysis libraries and focuses on type, range, format, and length checks. It is limited to identifying high-signal vulnerabilities like missing schemas and unbounded reads, categorizing them into severity levels rather than automatically patching the code.