Agent skill
owasp
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/owasp
SKILL.md
OWASP Security
Description
OWASP Top 10 security practices and secure coding patterns.
When to Use
- Security code reviews
- Implementing authentication
- Handling user input
Core Patterns
Input Validation
# Always validate and sanitize
from pydantic import BaseModel, EmailStr
class UserInput(BaseModel):
email: EmailStr
name: str = Field(min_length=1, max_length=100)
SQL Injection Prevention
# Never concatenate user input
# Bad
query = f"SELECT * FROM users WHERE id = {user_id}"
# Good - parameterized
cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))
XSS Prevention
// Never use innerHTML with user data
// Bad
element.innerHTML = userInput;
// Good
element.textContent = userInput;
Authentication
# Hash passwords properly
from passlib.hash import argon2
hashed = argon2.hash(password)
verified = argon2.verify(password, hashed)
Security Checklist
- Input validation on all user data
- Parameterized queries
- Output encoding
- Strong password hashing
- Secure session management
- HTTPS everywhere
- Security headers configured
Common Pitfalls
- Trusting user input: Always validate
- SQL concatenation: Use parameters
- Storing plain passwords: Use argon2/bcrypt
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?