Secure Code Guardian

Implement secure coding practices for authentication, input validation, and encryption.

Updated Oct 22, 2025
One-click install
npx skills add https://github.com/franroa/chezmoi --skill secure-code-guardian-franroa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Secure Code Guardian
Source: https://github.com/franroa/chezmoi/tree/main/private_dot_config/opencode/skills/secure-code-guardian
Command: npx skills add https://github.com/franroa/chezmoi --skill secure-code-guardian-franroa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill focuses on secure coding practices to prevent common vulnerabilities, with emphasis on authentication, input validation, encryption, and secure configuration.

Core Features & Use Cases

  • Authentication & authorization hardening: IAM roles, token validation.
  • Input validation & sanitization: Prevent injection and XSS.
  • Security controls: Encryption, TLS, headers, and secrets management.

Quick Start

Implement a secure login flow with password hashing and input validation.

Frequently Asked Questions about Secure Code Guardian

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement secure authentication with password hashing?

Secure authentication uses bcrypt or argon2 to hash passwords, preventing plain-text exposure. This Skill enforces these algorithms alongside token validation and IAM roles to harden login flows and protect user credentials across web and API codebases.

What's the best way to prevent SQL injection and XSS attacks?

Input validation and sanitization prevent injection and XSS by filtering untrusted data before processing. Parameterized queries separate SQL commands from user input, and input sanitization removes malicious scripts, blocking common OWASP vulnerabilities.

How do I secure session management and API endpoints?

Secure session management enforces HTTPS, security headers, rate limiting, and secret management to protect sensitive data in transit and at rest. This Skill applies these controls to authentication tokens, session cookies, and API credentials.

What encryption and TLS practices should I implement?

Encryption secures data in transit and at rest using TLS for network communication and encryption algorithms for stored secrets. This Skill enforces TLS configuration, secret management, and secure key handling across web and API applications.

Can I apply OWASP secure coding practices to my existing codebase?

Yes. This Skill targets existing web and API codebases, hardening authentication, authorization, input validation, and encryption without requiring architectural changes. It integrates bcrypt, argon2, parameterized queries, and security headers into your current stack.

Why is input validation critical for API security?

Input validation blocks malicious payloads at the entry point, preventing injection, XSS, and data corruption. Sanitizing and validating all user inputs—especially in APIs—stops attackers from exploiting trust boundaries and reduces OWASP attack surface.