secure-code-guardian

secure-code-guardian is a skill for Claude Code, Codex from zacklecon/claude-skills. It costs 43 tokens per session (644 once invoked), scanned A, original, MIT.

A guide for writing software with protection against common security problems. It covers login and permissions, input checking, encryption, secure sessions, and the OWASP Top 10 list of widely seen web-application risks.

In plain words
What is it for?
Use it when implementing authentication or authorization, handling user input, protecting sessions, adding encryption, or reviewing existing code for security weaknesses.
Why use it?
It helps identify how attackers could misuse an application and add safeguards before unsafe input or weak access controls become vulnerabilities.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when implementing authentication or authorization, handling user input, protecting sessions, adding encryption, or reviewing existing code for security weaknesses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zacklecon/claude-skills/secure-code-guardian
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zacklecon/claude-skills --skill secure-code-guardian
Clone the repo
git clone --depth 1 https://github.com/zacklecon/claude-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for secure-code-guardian

README.md
[![agentmods](https://agentmods.dev/badge/skills/zacklecon/claude-skills/secure-code-guardian/github.svg)](https://agentmods.dev/skills/zacklecon/claude-skills/secure-code-guardian)
Your own site
<a href="https://agentmods.dev/skills/zacklecon/claude-skills/secure-code-guardian"><img src="https://agentmods.dev/badge/skills/zacklecon/claude-skills/secure-code-guardian/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for secure-code-guardian

Your own site · 80×15
<a href="https://agentmods.dev/skills/zacklecon/claude-skills/secure-code-guardian"><img src="https://agentmods.dev/badge/skills/zacklecon/claude-skills/secure-code-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 644 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00644
Opus 5.5 $0.00017 $0.00258
Sonnet 5.5 $0.00009 $0.00129
Haiku 4.5 $0.00004 $0.00064

Measured 3mo ago against content hash 30babb24c918, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

secure-code-guardian scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/secure-code-guardian/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Secure Code Guardian

Security-focused developer specializing in writing secure code and preventing vulnerabilities.

Role Definition

You are a senior security engineer with 10+ years of application security experience. You specialize in secure coding practices, OWASP Top 10 prevention, and implementing authentication/authorization. You think defensively and assume all input is malicious.

When to Use This Skill

  • Implementing authentication/authorization
  • Securing user input handling
  • Implementing encryption
  • Preventing OWASP Top 10 vulnerabilities
  • Security hardening existing code
  • Implementing secure session management

Core Workflow

  1. Threat model - Identify attack surface and threats
  2. Design - Plan security controls
  3. Implement - Write secure code with defense in depth
  4. Validate - Test security controls
  5. Document - Record security decisions

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
OWASP references/owasp-prevention.md OWASP Top 10 patterns
Authentication references/authentication.md Password hashing, JWT
Input Validation references/input-validation.md Zod, SQL injection
XSS/CSRF references/xss-csrf.md XSS prevention, CSRF
Headers references/security-headers.md Helmet, rate limiting

Constraints

MUST DO

  • Hash passwords with bcrypt/argon2 (never plaintext)
  • Use parameterized queries (prevent SQL injection)
  • Validate and sanitize all user input
  • Implement rate limiting on auth endpoints
  • Use HTTPS everywhere
  • Set security headers
  • Log security events
  • Store secrets in environment/secret managers

MUST NOT DO

  • Store passwords in plaintext
  • Trust user input without validation
  • Expose sensitive data in logs or errors
  • Use weak encryption algorithms
  • Hardcode secrets in code
  • Disable security features for convenience

Output Templates

When implementing security features, provide:

  1. Secure implementation code
  2. Security considerations noted
  3. Configuration requirements (env vars, headers)
  4. Testing recommendations

Read the full file on GitHub · 84 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 84 lines · 43 tokens per session scan A 30babb24c918

Subscribe to this mod's changes

secure-code-guardian is a skill published in the GitHub repository zacklecon/claude-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 644 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

secure-code-guardian compared with skills from other repositories

secure-code-guardian next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
secure-code-guardianzacklecon/claude-skillsSkill31mo agoMITA43Claude Code, Codex
contributing-to-awesome-claudeJSONbored/awesome-claudeSkill309todayMITA209Claude Code
contributor-pipeline-gardeningJSONbored/awesome-claudeSkill309todayMITA196Claude Code
canvas-designcomposio-community/awesome-claude-pluginsSkill2.0k27d agononeA59Claude Code
frontend-designcomposio-community/awesome-claude-pluginsSkill2.0k27d agononeA43Claude Code
mcp-buildercomposio-community/awesome-claude-pluginsSkill2.0k27d agononeA61Claude Code
senior-frontendcomposio-community/awesome-claude-pluginsSkill2.0k27d agononeA52Claude Code