input-validation-skill

input-validation-skill is a skill for Claude Code, Codex from pantheon-org/tekhne. It costs 48 tokens per session (687 once invoked), scanned A, original, MIT.

A coding practice that checks, cleans, and standardizes outside data before the rest of a program uses it.

In plain words
What is it for?
Use it at entry points for forms, APIs, command-line arguments, files, configuration, webhooks, and third-party integrations.
Why use it?
It reduces errors, corrupted data, and security problems caused by accepting malformed or untrusted input.

Skill for Claude CodeCodex

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

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is bun run validate --input ./data/input.json.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/pantheon-org/tekhne/skill-full.svg)](https://agentmods.dev/skills/pantheon-org/tekhne/skill-full)
Your own site
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/skill-full"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/skill-full.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 687 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00048 $0.00687
Opus 5 $0.00024 $0.00344
Sonnet 5 $0.00010 $0.00137
Haiku 4.5 $0.00005 $0.00069

Measured 6d ago against content hash 6b93ba29f650, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

input-validation-skill 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 6d 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.

crates/skill-auditor/testdata/fixtures/skill-full/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Input Validation Skill

Enforce strict input validation before any processing to prevent security vulnerabilities and data corruption. See references/deep-reference.md for schema details.

Mindset

ALWAYS treat external input as untrusted. Validate at the boundary, not deep in business logic. Every gotcha in production traces back to skipped validation.

Core rules:

  1. Validate at entry points, not deep in business logic
  2. Reject early — fail fast on malformed input
  3. NEVER assume internal callers are trusted without proof
  4. ALWAYS return a structured error with the validation failure reason

When to Use

  • Processing user-supplied data from forms, APIs, or CLI arguments
  • Ingesting files or configuration from external sources
  • Handling webhook payloads or third-party integrations

When NOT to Use

  • Validating internal constants or compile-time values
  • Re-validating data that has already passed a trusted validation boundary in the same request lifecycle
  • skip for internal microservice calls behind a trusted network boundary verified at the infrastructure layer

NEVER bypass the validation boundary for performance reasons without an explicit security review.

Procedures

1. Define the schema

import { z } from "zod";

const InputSchema = z.object({
  name: z.string().min(1).max(100),
  email: z.string().email(),
  age: z.number().int().min(0).max(150),
});

2. Parse and validate at the entry point

export const validateInput = (raw: unknown) => {
  const result = InputSchema.safeParse(raw);
  if (!result.success) {
    throw new Error(`Validation failed: ${result.error.message}`);
  }
  return result.data;
};

3. Run validation before processing

bun run validate --input ./data/input.json

4. Handle errors explicitly

try {
  const validated = validateInput(req.body);
  await process(validated);
} catch (err) {
  return res.status(400).json({ error: err.message });
}

Read the full file on GitHub · 112 lines

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. 6d ago First seen · 112 lines · 48 tokens per session scan A 6b93ba29f650

Subscribe to this mod's changes

input-validation-skill is a skill published in the GitHub repository pantheon-org/tekhne (10 stars, last pushed 5d ago), licensed MIT. It adds 48 tokens to every session and 687 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other skills, from other repositories

gke-reliability

Improves GKE workload reliability, using PDBs, health probes, and topology spread constraints. Use when configuring GKE workload reliability, setting up PDBs, or configuring GKE health probes (liveness, readiness, startup). Don't use for disaster recovery setup or full cluster backups (use gke-backup-dr instead).

google/skills · 73 tokens

gke-workload-security

Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running cluster security audits (auditcluster.sh), configuring Workload Identity Federation (impersonation, KSA/GSA binding, and pod setup), enforcing Network Policies (default-deny…

google/skills · 181 tokens

atlas-obscura

Search Atlas Obscura for weird, wonderful, and hidden gem places near any destination. Find the interesting stuff, not boring plaques. Search by coordinates, get full details with descriptions and images.

borski/travel-hacking-toolkit · 44 tokens

cf-validate

Валидация конфигурации 1С. Используй после создания или модификации конфигурации для проверки корректности.

Nikolay-Shirokov/cc-1c-skills · 31 tokens

agent-code-generator

Generates Agent definitions (.md files) based on user intent and standard templates.

majiayu000/claude-skill-registry · 20 tokens

content-creation

Comprehensive guide to strategic content creation covering content strategy, writing frameworks, optimization techniques, distribution channels, performance measurement, and AI-assisted content workflows. Designed for marketers and content professionals building audience-focused content programs.

cosmicstack-labs/mercury-agent-skills · 45 tokens