security-best-practices

Identify and apply security best practices across languages, frameworks, and tooling.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/Canepro/codex-skills --skill security-best-practices-canepro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-best-practices
Source: https://github.com/Canepro/codex-skills/tree/main/skills/security-best-practices
Command: npx skills add https://github.com/Canepro/codex-skills --skill security-best-practices-canepro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill consolidates security best-practices guidance across languages and frameworks to help teams build safer software by default.

Core Features & Use Cases

  • Provides a structured catalog of security guidelines (input validation, secure cookies, CSRF, CSP, SRI, SSRF, secrets management) across major stacks.
  • Supports proactive reviews and automated checks during development, reviews, and deployment.
  • Use case: when securing a Node.js or Python backend, CSRF protections and strict content-security headers are implemented and validated.

Quick Start

Run a quick audit against a codebase to surface top security improvements recommended by the skill.

Frequently Asked Questions about security-best-practices

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

FAQPage Schema
How do I prevent XSS and CSRF vulnerabilities in my web application?

Securing a backend requires enforcing strict CSRF protections, secure cookies, and robust input validation. The guidance provides mitigations across Node.js, Python, and Go stacks to implement secure defaults and harden software during development and code reviews.

What is the best way to apply threat modeling during architecture decisions?

Threat modeling during architecture decisions involves systematically identifying risks and applying security best practices to harden software. This guidance enforces threat modeling prompts and structured mitigations for risks like SSRF and secrets handling across Go, JavaScript/TypeScript, and Python stacks.

Does this secure coding guidance work with Python and Go backend frameworks?

Yes, this secure coding guidance works with Python and Go backend frameworks, as well as JavaScript and TypeScript. It provides a structured catalog of security guidelines applicable during development, code reviews, and security assessments across these major programming stacks.

How do I run a security audit to surface top code improvements?

To run a security audit and surface top code improvements, you can quickly audit your codebase against the structured catalog of security guidelines. This surfaces recommended improvements for input validation, secrets handling, and secure deployment configurations across supported stacks.

How do I mitigate SSRF risks and manage secrets in my deployment configurations?

Mitigating SSRF risks and managing secrets requires enforcing secure defaults and applying specific security best practices in your deployment configurations. The guidance offers a structured catalog to validate these risks across major backend stacks during security assessments and reviews.