Agent skill · Trail of Bits

Semgrep Rule Creator

Writes custom Semgrep rules to catch specific bug or vulnerability patterns.

Officialname: semgrep-rule-creator★ 7.8k (repo)pushed 2026-10-24CC-BY-SA-4.0SKILL.md on GitHubchecked 2026-10-24

Install

The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs

npx skills add trailofbits/skills --skill semgrep-rule-creator

More from trailofbits/skills

  • Agentic Actions Auditor: Audits GitHub Actions workflows that run AI agents for prompt-injection and privilege risks.
  • CodeQL Scan: Builds a CodeQL database and runs data-flow and taint analysis to find vulnerabilities.
  • Constant-Time Analysis: Finds timing side channels in cryptographic code, such as branches on secret values.
  • Differential Security Review: Security review of a diff that weighs blast radius, call sites and test coverage of changed code.
  • Modern Python Tooling: Sets up Python projects with uv, ruff and ty, or migrates from pip, Poetry and mypy.
  • Property-Based Testing: Writes and debugs property-based tests with Hypothesis, fast-check, proptest and similar tools.
  • Sharp Edges: Flags error-prone APIs, risky defaults and footgun designs that invite security mistakes.

Other security & auth skills

FAQ

How do I install the semgrep-rule-creator skill?+

Run npx skills add trailofbits/skills --skill semgrep-rule-creator and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/semgrep-rule-creator/SKILL.md.

Which agents can use Semgrep Rule Creator?+

Any agent that reads the Agent Skills format (SKILL.md): Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.

Who maintains Semgrep Rule Creator?+

Trail of Bits, the company or project behind it, in the trailofbits/skills repo on GitHub, last pushed 2026-10-24.

Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. All agent skills · MCP servers