semgrep-rule-variant-creator

Official

Port Semgrep rules to new languages with variants.

AuthorSuperlend
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables teams to port existing Semgrep rules to new target languages by generating language-specific variants and ensuring robust test coverage.

Core Features & Use Cases

  • Independent language cycles: Each target language is ported through its own four-phase workflow (applicability analysis, test creation, rule creation, validation).
  • Per-language artifacts: Produces separate rule+test directories for every target language, with updated metadata linking back to the original rule.
  • Batch porting: Supports porting a single rule to multiple languages in one operation, while preserving language idioms and AST structures.

Quick Start

Run the semgrep-rule-variant-creator on an existing rule to port it to Go, Java, and Python, generating per-language variants and tests ready for validation.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: semgrep-rule-variant-creator
Download link: https://github.com/Superlend/superloop-core-contracts/archive/main.zip#semgrep-rule-variant-creator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.