Skip to content
SkillModel-led1,464 tokens in use

Secure Code Guardian

Implements authentication, authorization and input validation with OWASP Top 10 protections, plus checkpoints to test each control.

12,471 stars on the repository MIT LicenseJeffallan/claude-skills · skills/secure-code-guardian
/plugin install fullstack-dev-skills@fullstack-dev-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing Secure Code Guardian costs

113tokens idle
1,464tokens in use
5,699tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

shelldetectednetworkdetectedcredentialsdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter15/15
  • Structure22/25
  • Examples12/15
  • Output15/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Reads credentials−15

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 126

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Excellent
  • Development activity100
  • Maintenance100
  • Community60
  • Maturity36
  • Momentum40

Secure Code Guardian helps the agent write security controls into an application: password hashing, parameterized queries, input validation, JWT handling, security headers and rate limiting. It starts from a threat model and ends with explicit validation checkpoints for authentication, authorization, input handling and headers.

Code examples in TypeScript show bcrypt, pg parameter binding, Zod schemas, JWT verification with an algorithm allowlist and a full login endpoint with helmet and express-rate-limit.

What You Get

  • A five-step workflow from threat model to documented security decisions
  • Validation checkpoints for authentication, authorization, input handling and headers
  • TypeScript examples for bcrypt hashing, parameterized pg queries, Zod validation and JWT verification
  • A full login endpoint example with helmet, rate limiting, generic errors and an httpOnly cookie
  • A must-do and must-not-do list covering hashing, secrets, logging and weak algorithms
  • Reference files for OWASP prevention, authentication, input validation, XSS and CSRF, and security headers

Common Use Cases

  • Adding login with rate limiting and short-lived tokens to an Express API
  • Replacing string-built SQL with parameterized queries
  • Adding CSP, HSTS and CORS allowlists to a web service
  • Checking that error messages do not reveal whether an account exists

What Makes It Unique

It focuses on writing secure code during implementation. Its sibling Security Reviewer audits finished code and produces reports, and this skill says so in its description by pointing standalone audits elsewhere. The validation checkpoints give the agent specific payloads and behaviors to test, which many security skills leave out.

Under The Hood

The skill is a SKILL.md with five reference files that the agent loads by topic. It ships no scripts. The examples are TypeScript for Node and Express that you adapt into your own code. The validation checkpoints mention running curl -I against a running service and using a header scanner such as Mozilla Observatory, so the agent may send requests to your own application during testing. It writes code and configuration into your project and reads environment variables for secrets.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers