jeffallan avatar

Secure Code Guardian

This is your go-to when you need to implement auth flows, hash passwords with bcrypt, set up JWT tokens, or harden endpoints against the OWASP Top 10. It ships with working examples for parameterized queries, Zod validation, rate limiting, and security headers, plus explicit validation checkpoints so you can actually test for SQL injection and privilege escalation before shipping. The constraint list is helpful: it forces bcrypt over MD5, parameterized queries over string interpolation, and secrets in env vars. One thing that stands out is the full-flow endpoint example that ties everything together, from input validation through to httpOnly cookies. If you're writing custom security code rather than plugging in an auth provider, this keeps you from missing the obvious holes.

skills.sh installs
5.4K
GitHub stars
12.3K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

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

More from jeffallan/claude-skills

All 66
1affaan-m avatarquarkus-securityaffaan-m/eccQuarkus Security best practices for authentication, authorization, JWT/OIDC, RBAC, input validation, CSRF, secrets management, and dependency security.5.4Kskills.sh installs
2starchild-ai-agent avatarproject-builderstarchild-ai-agent/official-skillsEnd-to-end project engineering: design, incremental build, verify, debug systematically. Use when building software, dashboards, scheduled jobs, or web apps the5.2Kskills.sh installs
3grafana avatartempografana/skillsStand up Grafana Tempo as a cost-efficient distributed-tracing backend that only needs object storage, and write TraceQL queries against it. Covers OTLP + Jaege5.2Kskills.sh installs
4forcedotcom avatardata360-schema-getforcedotcom/sf-skillsRetrieve Data Lake Object (DLO) and Data Model Object (DMO) schema information from Salesforce Data Cloud using REST APIs. Use this skill when you need to inspe5.1Kskills.sh installs
5ziniao-open avatarziniao-skill-makerziniao-open/skills创建 ziniao-cli 的自定义 Skill。当用户需要把紫鸟 API 操作封装成可复用的 Skill(包装原子 API 或编排多步流程)时使用。5Kskills.sh installs
6jeffallan avatardotnet-core-expertjeffallan/claude-skillsUse when building .NET 8 applications with minimal APIs, clean architecture, or cloud-native microservices. Invoke for Entity Framework Core, CQRS with MediatR,5Kskills.sh installs