check-input-validation

Scan Rust code for input validation issues like division-by-zero and pagination bounds.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Async-IO/pierre_mcp_server --skill check-input-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-input-validation
Source: https://github.com/Async-IO/pierre_mcp_server/tree/main/.claude/skills/check-input-validation
Command: npx skills add https://github.com/Async-IO/pierre_mcp_server --skill check-input-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill proactively identifies and mitigates security risks arising from improperly validated user inputs, preventing common vulnerabilities like division-by-zero errors, unbounded pagination, and incomplete cache keys.

Core Features & Use Cases

  • Division-by-Zero Prevention: Ensures that all division operations are guarded against zero divisors, especially in calculations involving user-supplied numbers.
  • Pagination Bounds Enforcement: Validates that limit and offset parameters for pagination are within safe and defined ranges, preventing excessive data retrieval.
  • Cache Key Integrity: Verifies that cache keys are complete and tenant-isolated, preventing data leakage between users.
  • Numeric Range Validation: Checks that numeric inputs (like fitness metrics) are within expected, safe ranges.
  • Use Case: Before deploying a new API endpoint that accepts user-defined pagination and performs calculations, run this skill to ensure all inputs are validated, preventing potential crashes and security breaches.

Quick Start

Run the check-input-validation skill to scan the codebase for potential input validation issues.

Frequently Asked Questions about check-input-validation

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

FAQPage Schema
How do I prevent division-by-zero errors in Rust code from user-supplied numbers?

To prevent division-by-zero errors in Rust, you need input validation that ensures all division operations are guarded against zero divisors, particularly when calculations involve user-supplied numeric inputs.

How do I enforce pagination bounds for API limit and offset parameters in Rust?

To enforce pagination bounds in Rust, apply input validation to ensure that limit and offset parameters fall within safe, defined ranges, which prevents excessive data retrieval and potential system overload.

What is the best way to check cache key completeness and tenant isolation in Rust?

Checking cache key completeness in Rust involves verifying that cache keys are complete and tenant-isolated, which prevents data leakage between users and ensures secure cache integrity.

Can I scan production Rust code for high-risk input validation patterns in routes and providers?

Yes, you can scan production Rust code for high-risk input validation patterns in intelligence, MCP tool handlers, routes, and providers to ensure compliance with security engineering rules.

How do I validate numeric ranges for inputs like fitness metrics in Rust?

To validate numeric ranges in Rust, enforce input validation checks that verify numeric inputs like fitness metrics are within expected, safe ranges before processing calculations.