Skip to main content
Back to registry

code-security

semgrep/skills

Comprehensive security rules for writing secure code across 15+ languages. Covers OWASP Top 10, infrastructure security, and coding best practices with 28 rule categories.

Installs239
Install command
npx skills add https://github.com/semgrep/skills --skill code-security
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Comprehensive security rules for writing secure code across 15+ languages. Covers OWASP Top 10, infrastructure security, and coding best practices with 28 rule categories. Proactive mode — When writing or reviewing code, automatically check for relevant vulnerabilities based on the language and patterns present. You don't need to wait for the user to ask about security. Reactive mode — When the user asks about security, use the categories below to find the relevant rule file, then read it for detailed vulnerable/secure code examples. When writing code in these languages, check these rules first: See rules/_sections.md for the full index with CWE/OWASP references. - Identify the language and what the code does (handles input? queries a DB? reads files?) - Check the relevant rules below — focus on Critical and High impact first - Read the specific rule file from rules/ for detailed code examples in that language - Apply the secure patterns, or flag the vulnerable patterns if reviewing - SQL Injection ( rules/sql-injection.md ) - Use parameterized queries, never concatenate user input - Command Injection ( rules/command-injection.md ) - Avoid shell commands with user input, use safe APIs - XSS ( rules/xss.md ) - Escape output, use framework protections - XXE ( rules/xxe.md ) - Disable external entities in XML parsers - Path Traversal ( rules/path-traversal.md ) - Validate and...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does code-security do?

Comprehensive security rules for writing secure code across 15+ languages. Covers OWASP Top 10, infrastructure security, and coding best practices with 28 rule categories.

Is code-security good?

code-security does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does code-security work with?

code-security currently lists compatibility with codex, gemini-cli, opencode, amp, github-copilot, claude-code.

What are alternatives to code-security?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install code-security?

npx skills add https://github.com/semgrep/skills --skill code-security

Related skills

More from semgrep/skills

Related skills

Alternatives in Software Engineering