Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Forge Input Validation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-forge-input-validation)
---
name: forge-input-validation
description: Validate and normalize all untrusted input at system boundaries with allow-lists and typed parsing
---
<!-- Generated from catalog/skills/input-validation/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->
# Input validation
Parse, don't validate: turn untrusted input into typed values once, at the edge.
## At every boundary
- HTTP bodies, query strings, headers, CLI args, env vars, files, queue messages, webhook payloads and LLM output.
- Use a schema library; reject unknown fields where mass assignment is a risk.
## Rules
- Allow-lists over block-lists (enums, regexes anchored with `^...$`, length limits).
- Normalize before checking (Unicode, case, paths with `path.resolve` + prefix check).
- Parameterized queries and argument arrays for shell; never string-concatenated SQL or commands.
## Verify
Tests send oversized, wrong-type, extra-field and path-traversal inputs to the changed boundary and assert clean 4xx rejections.