code-security

A vendor-maintained rule corpus for secure code review — one reference file per vulnerability class, from SQL injection to Terraform misconfiguration.

Score 0(?)VerifiedCodeby SemgrepSourceDocs
Verified for:

Install

$ npx skills add semgrep/skills

No CLI or API key needed — this skill is guidance only.

Best for

Secure-code review with real depth behind each finding: the skill ships separate references for SQL injection, XSS, SSRF, XXE, CSRF, secrets, regex DoS, memory safety, Docker, Kubernetes, and Terraform on AWS and GCP.

Not ideal for

Running an actual scan — this is guidance, not a scanner. Pair it with the semgrep skill when you need findings rather than review standards.

About this skill

Security guidelines for writing secure code. Use when writing code, reviewing code for vulnerabilities, or asking about secure coding practices like 'check for SQL injection' or 'review security'. Always consult this skill when writing or reviewing any code that handles user input, authentication, file operations, database queries, network requests, cryptography, or infrastructure configuration (Terraform, Kubernetes, Docker, GitHub Actions) — even if the user doesn't explicitly mention security.

Secure codingOWASPCode review

Score breakdown

Score breakdown

rubric 1.0
Install count
0/20
Provenance
12.8/15
GitHub stars
6.9/15
Recency
8.5/10
Compatibility
2/10
Documentation depth
10/10
Install ergonomics
10/10
License
1.5/5
Verification freshness
0.5/5

Composite 0–100 score derived from 9 verifiable signals. See the rubric →

Security audits run by a real security firm. CodeQL + Semgrep + audit workflows.

CodeQLSemgrepAudit
Code
Medium3 min

Kubernetes hardening by the book. NetworkPolicies, RBAC, OPA, service mesh.

KubernetesRBACOPA
Code
Medium4 min

Real exploits, no false positives. 96.15% exploit success across 50+ vuln types.

PentestExploitationAction-taking
Code
High15 min

Ranked #4 in Security

Publish the ranking in your README. The badge reads the live score, so it updates when the ranking does.

code-security — ranked #4 in Security on Top Agent Skills
Markdown
[![code-security — ranked #4 in Security on Top Agent Skills](https://top-agent-skills.com/badge/semgrep-code-security.svg)](https://top-agent-skills.com/skill/semgrep-code-security)
HTML
<a href="https://top-agent-skills.com/skill/semgrep-code-security"><img src="https://top-agent-skills.com/badge/semgrep-code-security.svg" alt="code-security — ranked #4 in Security on Top Agent Skills"></a>

Skill FAQ

About code-security

What is the code-security skill?

Security guidelines for writing secure code. Use when writing code, reviewing code for vulnerabilities, or asking about secure coding practices like 'check for SQL injection' or 'review security'. Always consult this skill when writing or reviewing any code that handles user input, authentication, file operations, database queries, network requests, cryptography, or infrastructure configuration (Terraform, Kubernetes, Docker, GitHub Actions) — even if the user doesn't explicitly mention security.

Which agents does code-security work with?

Claude Code.

How do I install code-security?

Run `npx skills add semgrep/skills` for Claude Code. See the install panel for per-agent commands.

Is code-security free to use?

code-security is Semgrep Rules License v1.0. Check the source for licensing terms.

Who maintains code-security?

code-security is published by Semgrep and was last updated on 2026-07-28.

What is code-security best for?

Secure-code review with real depth behind each finding: the skill ships separate references for SQL injection, XSS, SSRF, XXE, CSRF, secrets, regex DoS, memory safety, Docker, Kubernetes, and Terraform on AWS and GCP.