audit-input-validation
Skill4 starsChanged 2 months agoMITView on GitHub
Audit web application client forms and server endpoints for input validation. Use when reviewing forms, API handlers, controllers, schemas, route tests, or launch readiness for missing type, length, format, allowed-character, and server-side validation coverage; generate reviewable validation tests when server endpoint gaps are found.
In this repository25 other files it gives its agents.
- audit-asset-pipelineSkill
- audit-auth-and-access-controlSkill
- audit-corsSkill
- audit-database-performanceSkill
- audit-rate-limitingSkill
- audit-resilience-and-observabilitySkill
- audit-secrets-and-configSkill
- audit-type-safetySkill
- ios-prelaunch-checklistSkill
- security-reviewSkill
- code-review-loopSkill
- error-logging-reviewSkill
- hive-parallel-review-loopSkill
- hive-review-loopSkill
- input-contract-hardeningSkill
- microskills-review-generatorSkill
- microskills-review-runnerSkill
- parallel-code-review-loopSkill
- perf-optimizationSkill
- parallel-plan-implementationSkill
- phase-commit-reviewerSkill
- product-implementation-plannerSkill
- product-plan-compilerSkill
- test-quality-reviewSkill
- verified-commit-splitSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Treat server-side validation as mandatory even when client validation exists.
- Distinctive: line 24
When server validation tests are missing and the project has an established test pattern, add focused tests as a reviewable diff.
- Very specific: line 28
Use the repository's route definitions and framework conventions first.
- Distinctive: line 30
Do not count TypeScript types, UI placeholders, HTML input types, or OpenAPI documentation as server validation unless runtime code …
- Distinctive: line 40
After the table, list fixes in priority order.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Audit Input Validation
Audit every user-controlled input path from UI to server and report concrete validation gaps with file and line references.
Workflow
- Map the application surfaces:
- Find client forms, controlled inputs, file uploads, query builders, and API calls.
- Find server routes, controllers, handlers, schemas, serializers, background jobs fed by user input, and webhook-like endpoints.
- Build a route-to-form map where possible by following client API calls to server handlers.
- For each input, verify validation at both layers:
- Type: int, float, boolean, enum, string, array, object, file.
- Bounds: length, numeric ranges, item counts, file sizes.
- Format: email, URL, UUID, date/time, phone, slug, currency, etc.
- Allowed character set: especially for names, slugs, search, rich text, filenames, and identifiers.
- Required/optional behavior and default values.
- Treat server-side validation as mandatory even when client validation exists.
- Review tests for each endpoint that accepts user input. Look for invalid type, too long, malformed format, disallowed characters, missing required fields, and boundary values.
- When server validation tests are missing and the project has an established test pattern, add focused tests as a reviewable diff. Do not commit automatically.
Useful Searches
Use the repository's route definitions and framework conventions first. Useful search terms include route, router, controller, handler, schema, validate, changeset, zod, yup, joi, params, body, query, Form, input, textarea, select, upload, and multipart.
Do not count TypeScript types, UI placeholders, HTML input types, or OpenAPI documentation as server validation unless runtime code enforces them.
Output
Produce a table with one row per form or endpoint:
| Surface | Input | Client validation | Server validation | Test coverage | Findings |
path/file:line | field_name | present/missing/partial | present/missing/partial | present/missing/partial | concrete issue |
After the table, list fixes in priority order. Each finding must include:
- File and line reference.
- Risk in one sentence.
- Suggested fix, preferably matching the repository's validation style.
- Tests added or tests still needed.
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
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.

