implementing-semgrep-for-custom-sast-rules
Skill by plurigrid
Writes custom Semgrep SAST rules in YAML to find application-specific vulnerabilities, enforce coding standards, and run checks in CI/CD. Aimed at developers and security teams using static analysis.
Install implementing-semgrep-for-custom-sast-rules
Built from the published package, never by AI.
git clone --depth 1 https://github.com/plurigrid/asi /tmp/asi && mkdir -p ~/.claude/skills && cp -r /tmp/asi/plugins/asi/skills/implementing-semgrep-for-custom-sast-rules ~/.claude/skills/implementing-semgrep-for-custom-sast-rulRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install implementing-semgrep-for-custom-sast-rules in Claude Code
git clone --depth 1 https://github.com/plurigrid/asi /tmp/asi && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/asi/plugins/asi/skills/implementing-semgrep-for-custom-sast-rules ~/.gemini/antigravity-cli/skills/implementing-semgrep-for-custom-sast-rulAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install implementing-semgrep-for-custom-sast-rules in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill explains how to write custom Semgrep rules in YAML using Semgrep's pattern syntax. It covers basic pattern matching, pattern operators, taint analysis, multi-language rules, coding standard checks, and JWT security rules. Semgrep is described as an open-source static analysis tool that supports 30+ languages including Python, JavaScript, Go, Java, and C.
Written from the project's SKILL.md and checked against it.
What it can do
- Basic pattern matchingWrites YAML rules that match code patterns and can suggest a fix.
- Taint analysisTracks user input from sources to sinks, with sanitizers, to find data flow issues.
- Hardcoded secret detectionFlags assignments of passwords, secrets, API keys, or tokens in source code.
- Coding standard rulesProvides examples for Go error handling and removing console.log calls.
- JWT security rulesFlags JWT decoding with the none algorithm or with signature verification disabled.
- Rule testingUses ruleid and ok annotations in test files with semgrep --test.
- CI/CD integrationShows GitHub Actions and GitLab CI setups with SARIF or JSON output.
What you need
- Python 3.8+ or Docker
- Semgrep CLI installed
- Target codebase in a supported language
Try asking
- Write a Semgrep rule that flags SQL queries built with f-strings in Python.
- Add taint tracking rules for XSS in my Flask app.
- Set up a GitHub Actions workflow that runs Semgrep with my custom rules.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/asi/skills/implementing-semgrep-for-custom-sast-rules/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to implementing-semgrep-for-custom-sast-rules
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
implementing-semgrep-for-custom-sast-rules: common questions
What languages does Semgrep support?
The source says Semgrep supports 30+ languages, including Python, JavaScript, Go, Java, and C.
How do I test a custom Semgrep rule?
Add ruleid and ok comments to a test file, then run semgrep --test on the rules folder. The source shows this in its rule testing section.
Can Semgrep results appear in GitHub?
Yes. The source shows SARIF output being uploaded with the GitHub codeql-action upload-sarif step.
How do I install implementing-semgrep-for-custom-sast-rules?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is implementing-semgrep-for-custom-sast-rules free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is implementing-semgrep-for-custom-sast-rules safe to use?
It scores 65 of 100. Grades: maintenance B, 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 implementing-semgrep-for-custom-sast-rules?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
