semgrep-skill
Skill by KimYx0207
Runs an installed local Semgrep CLI to scan a target directory with two bundled, non-secret rules. Built for developers and reviewers who have explicit authorization to scan the workspace.
Install semgrep-skill
Built from the published package, never by AI.
git clone --depth 1 https://github.com/KimYx0207/Kim_Service /tmp/Kim_Service && mkdir -p ~/.claude/skills && cp -r /tmp/Kim_Service/skills/semgrep-skill ~/.claude/skills/semgrep-skillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/KimYx0207/Kim_Service /tmp/Kim_Service && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Kim_Service/skills/semgrep-skill ~/.gemini/antigravity-cli/skills/semgrep-skillAntigravity 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
semgrep-skill is an agent skill that runs an already-installed local Semgrep CLI through a bounded JSON wrapper. It applies two bundled rules, python-subprocess-shell-true and javascript-eval. The caller must supply an explicit, authorized absolute workspaceRoot and a target directory inside it.
The wrapper calls the Semgrep CLI with an argv array and shell disabled, using isolated settings and no metrics or version checks. It does not fetch remote rules, upload code, install Semgrep, or apply autofixes, and it withholds raw source from its output. It suits developers and security reviewers who want a local, scoped scan of Python and JavaScript files.
Written from the project's SKILL.md and checked against it.
What it can do
- Local Semgrep scanRuns the installed local Semgrep CLI against an authorized directory inside a workspace root.
- Two bundled rulesChecks for python-subprocess-shell-true and javascript-eval patterns.
- Structured JSON resultReturns rule IDs, workspace-relative paths, spans, severity and rule messages as JSON.
- Bounded file selectionScans only visible .py, .js, .jsx, .ts and .tsx files, up to 512 eligible files.
- Read-only scanningDoes not use autofix, write reports or modify source files during a scan.
What you need
- An installed local Semgrep CLI
- Python to run scripts/scan.py
- An authorized absolute local workspace root
Try asking
- Scan the src folder in my authorized workspace for shell-true subprocess calls
- Check the js directory of this project for javascript-eval patterns
- Run the local Semgrep security scan on the api folder and summarize findings
Good to know
- Checks only two rule patterns, so other issues are not covered.
- Scans only visible Python and JavaScript/TypeScript files; excludes hidden paths, node_modules, venv and vendor.
- Not a sandbox for malicious binaries and not a security certification.
- Does not install Semgrep or fetch rules; the Semgrep CLI must already be installed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/semgrep-skill/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
CHANGELOG.md2 KB -
LICENSE1 KB -
NOTICE247 B -
README.md5 KB -
README_EN.md4 KB
Show all 22 files
-
SKILL.md5 KB -
capability.json13 KB -
images/二维码基础款.png825 KB -
images/微信.jpg70 KB -
images/支付宝.jpg163 KB -
install.ps11001 B -
install.sh399 B -
rules/local-security.yml996 B -
scripts/install.py14 KB -
scripts/scan.py18 KB -
tests/fixtures/safe.js86 B -
tests/fixtures/safe.py77 B -
tests/fixtures/vulnerable.js73 B -
tests/fixtures/vulnerable.py103 B -
tests/test_behavior.py3 KB -
tests/test_installer.py8 KB -
tests/test_scan.py10 KB
Alternatives to semgrep-skill
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
semgrep-skill: common questions
Does this skill upload my code to Semgrep Cloud?
No. The source says it does not use Semgrep Cloud, registry URLs, login or uploads. It also does not fetch remote rules.
Can it fix the issues it finds?
No. The source says it does not use --autofix, and remediation is provided only as advisory text.
Does it scan for leaked secrets or credentials?
No. The bundled legacy secret-pattern rule is not run by this skill, and credential checks are outside this capability.
How do I install semgrep-skill?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is semgrep-skill free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is semgrep-skill safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality B. 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 semgrep-skill?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
