Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

code-security

Skill by KimYx0207

Runs Semgrep security scans on a project to find vulnerabilities, hardcoded secrets and OWASP Top 10 issues. Built for developers who want a code security audit triggered from their AI assistant.

  • Score 58
  • 37 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install code-security

Built from the published package, never by AI.

git clone --depth 1 https://github.com/KimYx0207/SkillSemgrep /tmp/SkillSemgrep && mkdir -p ~/.claude/skills && cp -r /tmp/SkillSemgrep ~/.claude/skills/code-security

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install code-security in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Code Security is an agent skill that runs Semgrep scans on the current project to detect vulnerabilities, leaked secrets and OWASP Top 10 issues. Before scanning, it checks whether Semgrep is installed and installs it with pip if it is missing. It chooses a rule set based on the project language, such as Python, JavaScript, TypeScript or Go, and groups the findings by severity.

The skill produces a structured report with a scan summary, issues sorted as high, medium, or low and info, and fix suggestions for high and medium findings. It can also scan a specific file or directory. It is aimed at developers who want a security check of their code, triggered by plain requests or phrases such as 安全扫描 and 漏洞检测. The source notes that Semgrep is rule-based and can produce false positives.

Written from the project's SKILL.md and checked against it.

What it can do

  • Full security scanScans the current project with Semgrep's recommended rule set, with optional JSON output.
  • OWASP security auditFocuses the Semgrep scan on OWASP Top 10 vulnerabilities using the security-audit rule set.
  • Language-specific scansSelects Semgrep rule sets for Python, JavaScript/TypeScript and Go projects.
  • Secrets leakage detectionChecks code for hardcoded API keys, passwords and tokens using the secrets rule set.
  • Targeted directory scanRuns the Semgrep scan on a chosen file or directory instead of the whole project.
  • Structured security reportOutputs a scan summary and issues grouped by severity with fix suggestions.

What you need

  • Semgrep installed (the skill installs it with pip if missing)
  • Access to the project files to scan

Try asking

  • Run a security scan on this project and list the high severity issues.
  • Check the src directory for hardcoded secrets or API keys.
  • Audit this codebase against the OWASP Top 10 and suggest fixes.

Good to know

  • Semgrep is rule-based and only finds known vulnerability patterns.
  • It cannot understand code logic the way a full code reasoning review can.
  • Scan results may include false positives that need manual review.
  • Large projects can take a long time, so scanning a subdirectory is suggested.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to code-security

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

code-security: common questions

Does Code Security find all vulnerabilities in my code?

No. The source says Semgrep is a rule matching tool that finds known patterns and cannot understand code logic. Results may also include false positives.

Does it check for leaked API keys and passwords?

Yes. It runs the Semgrep secrets rule set to check for hardcoded API keys, passwords and tokens, and the source suggests running it before each commit.

Which programming languages does it support?

The source describes language-specific rule sets for Python, JavaScript and TypeScript, and Go. Other projects use the general auto or security-audit scans.

How do I install code-security?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is code-security free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is code-security safe to use?

It scores 58 of 100. Grades: maintenance C, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to code-security?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

code-security Install

Add to stack

Loading.