agentleFS
JeremyMorganJeremyMorgan/code-review-skills/skills/input-validation/SKILL.md

input-validation

Skill15 starsChanged 5 months agoCC0-1.0View on GitHub

Reviews input validation and sanitization across the application for injection and malformed-input risks. Use when auditing how untrusted input is handled.

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no target path is given above, review the entire codebase.

    line 14
  2. Distinctive:

    Create a validation matrix showing each endpoint and its validation status.

    line 55
  3. Distinctive:

    Prefer minimal, drop-in fix snippets over prose.

    line 75
  4. Distinctive:

    Do not invent files or functions that aren’t present.

    line 77
  5. Distinctive:

    Write this into a markdown file and place it in the audits/ folder.

    line 79

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Target: $ARGUMENTS

If no target path is given above, review the entire codebase.


Input Validation

Review all input validation across the application.

Check for:

  1. SQL Injection vulnerabilities
    • Raw SQL queries without parameterization
    • Dynamic query building
    • Stored procedure calls
  2. NoSQL Injection (if using MongoDB)
    • Unvalidated query operators ($where, $ne, $gt)
    • JavaScript execution in queries
  3. Command Injection
    • Child process spawning
    • System command execution
  4. XSS Prevention
    • Input sanitization
    • Output encoding
    • Content-Type headers
  5. XXE (XML External Entity) attacks
    • XML parsing configuration
    • File upload handling
  6. Path Traversal
    • File system operations
    • Directory listing prevention
  7. Request validation
    • Body size limits
    • Parameter pollution
    • Type checking
    • Required field validation

Create a validation matrix showing each endpoint and its validation status.

Provide:

A structured finding report with the following for each issue:

Title, Severity (Critical/High/Medium/Low), CWE (if applicable), Evidence (file, function, line ranges), and a short Why it matters.

Exploitability notes and, where safe, a minimal PoC or reproduction steps (no real secrets).

Remediation: precise code-level fix or config change (snippets welcome), plus defense-in-depth guidance.

A summary risk score (0–10) and top 3–5 prioritized fixes that reduce risk fastest.

A checklist diff: which items from the “Check for” list are Pass/Fail/Not Applicable.

Constraints & style:

Be concrete and cite exact code locations and identifiers.

Prefer minimal, drop-in fix snippets over prose.

Do not invent files or functions that aren’t present; if context is missing, mark as Unable to verify and say what code would prove it.

Write this into a markdown file and place it in the audits/ folder.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.