Setup & Installation
What This Skill Does
Takes an existing Semgrep rule and ports it to one or more target languages. For each language, it runs applicability analysis, writes test cases first, translates the rule syntax to match target language AST and idioms, then validates until all tests pass. Outputs an independent rule and test file directory per language. Manually porting Semgrep rules across languages means guessing at AST structure and idioms — this skill dumps the actual AST, validates applicability per language, and enforces test-first so errors surface early rather than after writing five broken variants.
When to use it
- Working with semgrep rule variant creator functionality
- Implementing semgrep rule variant creator features
- Debugging semgrep rule variant creator related issues
