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

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.

  • Score 65
  • 73 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-rul

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

Step-by-step: install implementing-semgrep-for-custom-sast-rules in Claude Code

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

A

No 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 →

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.

implementing-semgrep-for-custom-sast-rules Install

Add to stack

Loading.