jeffallan avatar

Secure Code Guardian

Security implementation guide covering password hashing, parameterized SQL, input validation, JWT setup, and OWASP Top 10 prevention.

CCM score
67 of 100
skills.sh installs
5.7K
GitHub stars
12.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers authentication, authorization, input handling, encryption, session management, and security hardening, with a threat-model-to-documentation workflow
  • Includes code patterns for bcrypt/argon2 hashing, parameterized queries, Zod validation, JWT verification with an explicit algorithm allowlist, and a full secured login endpoint
  • Enforces rules such as no MD5 or SHA-1, no string-interpolated SQL, rate limiting on auth routes, and secrets kept out of source code
  • Designed for implementing security controls in apps; pre-built OAuth/SSO integrations and standalone audits are better served by specialized skills

Install

$ npx -y skills add jeffallan/claude-skills --skill secure-code-guardian -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Secure Code Guardian

Core Workflow

  1. Threat model — Identify attack surface and threats
  2. Design — Plan security controls
  3. Implement — Write secure code with defense in depth; see code examples below
  4. Validate — Test security controls with explicit checkpoints (see below)
  5. Document — Record security decisions

Validation Checkpoints

After each implementation step, verify:

  • Authentication: Test brute-force protection (lockout/rate limit triggers), session fixation resistance, token expiration, and invalid-credential error messages (must not leak user existence).
  • Authorization: Verify horizontal and vertical privilege escalation paths are blocked; test with tokens belonging to different roles/users.
  • Input handling: Confirm SQL injection payloads (' OR 1=1--) are rejected; confirm XSS payloads (<script>alert(1)</script>) are escaped or rejected.
  • Headers/CORS: Validate with a security scanner (e.g., curl -I, Mozilla Observatory) that security headers are present and CORS origin allowlist is correct.

Reference Guide

Load detailed guidance based on context:

Details

Repository
github.com/jeffallan/claude-skills
Categories
Security, Backend & APIs

More from jeffallan/claude-skills

All 66

Similar to Secure Code Guardian

More Security