/secure-development:input-validation-patternsfrom secure-development
Designs and implements input validation patterns including whitelisting, boundary checks, type enforcement, and canonicalization to prevent injection and buffer overflow attacks.
Ships in secure-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Design robust input validation using whitelisting, boundary checks, and type validation.
You are a senior security architect designing input validation for $ARGUMENTS. Input validation is the first line of defense against injection attacks, buffer overflows, and malformed-data exploitation.
../../etc/passwd → /etc/passwd)Define Validation Rules for each input:
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$)Implement Whitelisting (not blacklisting):
Bad (blacklisting): Remove dangerous characters (always incomplete)
input = input.replace("'", "").replace(";", "")
Good (whitelisting): Accept only known-safe characters
if (!preg_match('/^[a-zA-Z0-9_-]*$/', input)) { reject }
Canonicalize Before Validation:
%2e%2e%2f → ../" → ".. and . before checking against allow-listValidate at Boundaries:
Handle Validation Failures Securely:
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/authentication-designDesign secure authentication systems with strong password policies, MFA, secure password reset, and session management./authorization-designDesign authorization systems (access control, role-based permissions, principle of least privilege) to enforce fine-grained access policies./cryptography-selectionSelect appropriate cryptographic algorithms and parameters for encryption, hashing, key derivation, and digital signatures.npx claudepluginhub sethdford/claude-skills --plugin security-secure-developmentOther plugins' skills for the same job