Home / Skills / semgrep-rule-creator

semgrep-rule-creator

security

Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections.

License
CC-BY-SA-4.0
SKILL.md tokens
1,823
Bundled files
4
Bundled tokens (estimated)
4,176

Cost per 1,000 loads

Estimated input cost per 1,000 loads of SKILL.md only (characters ÷ 4). Bundled files, output tokens and execution are excluded.

ModelInput / 1M tokens1,000 loads
Claude Opus 5$5.00$9.12
Claude Sonnet 5$2.00$3.65
Claude Haiku 4.5$1.00$1.82
Anthropic pricing source

Safety flags

Detected automatically from files; not a security audit.

Runs scripts
No
Network access
Yes
Shell commands
No

Works with

Open SKILL.md format

  • Claude Code
  • Codex
  • Cursor
  • GitHub Copilot
  • Gemini CLI
  • OpenCode
  • Goose

Install

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

Last verified:

semgrep-rule-creator FAQ

What does the semgrep-rule-creator skill do?

Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections. Source: https://github.com/trailofbits/skills/blob/main/plugins/semgrep-rule-creator/skills/semgrep-rule-creator/SKILL.md

What does the semgrep-rule-creator skill cost to load?

SKILL.md is about 1,823 tokens. Estimated input cost per 1,000 loads: Claude Opus 5 $9.12; Claude Sonnet 5 $3.65; Claude Haiku 4.5 $1.82. Estimated input cost per 1,000 loads of SKILL.md only (characters ÷ 4). Bundled files, output tokens and execution are excluded. Prices: https://docs.anthropic.com/en/docs/about-claude/pricing

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

Skills CLI: npx skills add trailofbits/skills --skill semgrep-rule-creator. Claude Code: /plugin marketplace add trailofbits/skills, then install the plugin from that marketplace. Download the semgrep-rule-creator skill folder as a ZIP and upload it in Claude.ai skills settings.

Is the semgrep-rule-creator skill safe?

Automatically detected flags: network access. Flags are detected automatically from the skill's files and are not a security audit; review the SKILL.md before installing.

Related security skills

All skillsAll security skills

My AI Stack