input-validation-hardening

input-validation-hardening is a skill for Claude Code, Codex from Robotti-io/copilot-security-instructions. It costs 24 tokens per session (416 once invoked), scanned A, original, Apache-2.0.

A process for validating, normalizing, and safely parsing data at application entry points such as web requests, files, messages, environment variables, and command-line arguments.

In plain words
What is it for?
It helps define input schemas, enforce limits and allowed values, check ownership, protect database and code-execution boundaries, and add malformed-input tests.
Why use it?
It reduces injection risks and logic abuse caused by malformed, unexpected, or unauthorized input.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps define input schemas, enforce limits and allowed values, check ownership, protect database and code-execution boundaries, and add malformed-input tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robotti-io/copilot-security-instructions/input-validation-hardening
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Robotti-io/copilot-security-instructions --skill input-validation-hardening
Clone the repo
git clone --depth 1 https://github.com/Robotti-io/copilot-security-instructions

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for input-validation-hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/robotti-io/copilot-security-instructions/input-validation-hardening/github.svg)](https://agentmods.dev/skills/robotti-io/copilot-security-instructions/input-validation-hardening)
Your own site
<a href="https://agentmods.dev/skills/robotti-io/copilot-security-instructions/input-validation-hardening"><img src="https://agentmods.dev/badge/skills/robotti-io/copilot-security-instructions/input-validation-hardening/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for input-validation-hardening

Your own site · 80×15
<a href="https://agentmods.dev/skills/robotti-io/copilot-security-instructions/input-validation-hardening"><img src="https://agentmods.dev/badge/skills/robotti-io/copilot-security-instructions/input-validation-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 416 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00416
Opus 5.5 $0.00010 $0.00166
Sonnet 5.5 $0.00005 $0.00083
Haiku 4.5 $0.00002 $0.00042

Measured 3mo ago against content hash ff677ebea4b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

input-validation-hardening scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/input-validation-hardening/SKILL.md · 60 lines

What it actually says

Input Validation Hardening

When to use

Use this skill when asked to validate inputs, harden request parsing, or prevent injection/abuse.

Inputs to collect (if available)

  • Entry points (HTTP endpoints, consumers, file parsers)
  • Data sensitivity and trust boundaries
  • Existing validation libraries/patterns in the codebase
  • Known attack/abuse cases (payloads, bypass attempts)

Step-by-step process

  1. Inventory inputs
    • HTTP params/body/headers, file uploads, message payloads, env vars, CLI args
  2. Define schemas
    • Prefer typed schemas (DTOs) and allow-lists
    • Enforce length, charset, ranges, and required fields
  3. Canonicalize early
    • Normalize encoding, trim, and apply consistent parsing (dates, IDs, enums)
  4. Validate before use
    • Reject unknown fields if possible
    • Ensure IDs map to authorized resources (ownership/tenant checks)
  5. Protect sinks
    • Parameterize DB queries
    • Avoid dynamic execution (eval, shell, template injection)
  6. Add tests
    • Boundary tests (min/max), malformed inputs, and common payloads

Output

  • Proposed schema(s)
  • Where to enforce validation (middleware/controller boundary)
  • Tests added/updated

Repo integration (optional)

Related prompts:

  • validate-input-handling.prompt.md
  • scan-for-insecure-apis.prompt.md

Output format

  • Inventory: inputs and boundaries
  • Proposed schema(s) (high-level)
  • Enforcement point: where validation should occur
  • Test plan: boundary + malicious inputs

Examples

  • “Public JSON API” → reject unknown fields, enforce max sizes, and add negative tests for type confusion and oversized payloads.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 60 lines · 24 tokens per session scan A ff677ebea4b1

Subscribe to this mod's changes

input-validation-hardening is a skill published in the GitHub repository Robotti-io/copilot-security-instructions (44 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 24 tokens to every session and 416 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

input-validation-hardening compared with skills from other repositories

input-validation-hardening next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
input-validation-hardeningRobotti-io/copilot-security-instructionsSkill446mo agoApache-2.0A24Claude Code, Codex
dataverse-schema-architectpnp/copilot-promptsSkill912todayMITA93Claude Code, Codex
code-review-csharppnp/copilot-promptsSkill912todayMITA66Claude Code, Codex
clean-architecture-dotnetSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A50Claude Code, Codex
outside-in-tddSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A35Claude Code, Codex
setup-husky-dotnetSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A30Claude Code, Codex
finding-filesSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A28Claude Code, Codex