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.
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-securityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/KimYx0207/SkillSemgrep /tmp/SkillSemgrep && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/SkillSemgrep ~/.gemini/antigravity-cli/skills/code-securityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
