Skip to content
  1. Home
  2. Agent skills
  3. Semgrep Rule Creator (Trail of Bits)

Semgrep Rule Creator (Trail of Bits)

Guides writing and testing custom Semgrep rules, tests first

What it is

A Trail of Bits plugin that walks the agent through building a Semgrep rule for a specific bug pattern: write test cases first, inspect the AST, then iterate until the rule passes. Supports taint-mode rules for data-flow issues as well as pattern rules.

Good for

  • Write a rule for a recurring bug pattern
  • Build a taint rule for an injection flaw
  • Add tests to an existing rule

Install or run

/plugin marketplace add trailofbits/skills

Command as given in the project README. Read the repository before you run anything on your machine.

What you need

Semgrep installed locally

Worth knowingRules still need tuning on real code to keep false positives down.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for security & quality

See the topic →
  • verification-loop

    affaan-m/ECC

    Six-phase check of an agent's work ending in a PASS or FAIL report

    SkillGitHub stars: 302k
  • Requesting Code Review

    NousResearch/hermes-agent

    Pre-commit review with security scan, quality gates and auto-fix

    SkillGitHub stars: 263k
  • Web Pentest

    NousResearch/hermes-agent

    Authorized web pentest: recon, proof-based exploits and a report

    SkillGitHub stars: 263k
  • webapp-testing

    anthropics/skills

    Test local web apps with Playwright scripts

    SkillGitHub stars: 194k