Back to Skills

secure-code-guardian

Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities — including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-

9,291stars785forksUpdated 5/24/2026

Security Assessment

Critical Risk(0/100)

Detected risks:

Remote Code Execution([references/input-validation.md] exec(, [references/owasp-prevention.md] exec()
Secret Exposure([references/authentication.md] SECRET =, [references/authentication.md] token =, [SKILL.md] SECRET =)
Sensitive File Access([references/authentication.md] .env, [references/owasp-prevention.md] .env, [SKILL.md] .env)
Command Injection([references/input-validation.md] child_process)
Security Score0/100

About secure-code-guardian

The secure-code-guardian skill is designed to help developers implement secure software practices when building authentication systems, authorization logic, and input-handling mechanisms. It focuses on preventing common security issues aligned with the OWASP Top 10, such as injection attacks, cross-site scripting (XSS), and insecure authentication flows. The skill provides structured guidance for building systems that reduce vulnerabilities by enforcing secure-by-default implementation patterns rather than relying on post-hoc fixes.

This skill emphasizes a defense-in-depth approach, covering multiple layers of application security. Key capabilities include secure password handling using strong hashing algorithms like bcrypt or Argon2, enforcing parameterized queries to prevent SQL injection, validating and sanitizing user input, configuring security headers such as CSP and HSTS, and implementing JWT-based session management. It also includes validation checkpoints to verify authentication robustness (such as rate limiting and token expiration), authorization boundaries (preventing privilege escalation), and input safety against malicious payloads.

It is intended for developers and engineering teams building production systems that require robust security controls. Typical users include backend and full-stack engineers implementing login systems, API authentication, and role-based access control, as well as teams hardening existing applications against vulnerabilities. The skill is particularly useful during implementation phases where secure coding practices must be applied consistently, but it explicitly defers specialized needs like full security audits or pre-built OAuth/SSO integrations to more focused tools.

FAQ

When should I use the secure-code-guardian skill?

Use it when implementing authentication, authorization, input validation, or when addressing common web security risks such as injection attacks, XSS, and insecure session handling.

Does this skill support OAuth or full security audits?

It is not intended for standalone security audits or pre-built OAuth/SSO integrations. Those scenarios should use more specialized security-focused skills.

What security practices does this skill enforce?

It enforces practices like password hashing with bcrypt or Argon2, parameterized database queries, input validation and sanitization, secure session handling with JWT, and proper security headers configuration.

Is this skill compatible with all programming stacks?

Yes, it is framework-agnostic and can be applied across backend and full-stack environments, as long as secure coding principles are followed in the implementation.

What validation steps are included?

It includes checkpoints for authentication robustness, authorization boundary testing, input attack resistance, and verification of security headers and CORS configuration.

All Files

6 files
references/input-validation.md3.3 KB
View
references/authentication.md3.3 KB
View
references/owasp-prevention.md3.2 KB
View
SKILL.md6.9 KB
View
references/security-headers.md2.9 KB
View
references/xss-csrf.md3.1 KB
View

Install secure-code-guardian

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill