Agent skill

defensive-programming

Validate all external inputs at system boundaries (API endpoints, user input, file reads, environ... Use when enforcing code quality standards. Quality category skill.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/defensive-programming

Metadata

Additional technical details for this skill

category
Quality
priority
high
is built in
YES
session guardian id
builtin_defensive_programming

SKILL.md

Defensive Programming

Validate all external inputs at system boundaries (API endpoints, user input, file reads, environment variables). Use guard clauses to fail fast with clear error messages. Never trust data from external sources—always sanitize and validate. Consider what happens when dependencies are unavailable and handle those cases gracefully.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results