Semgrep
vigolium/piolium
Run Semgrep static analysis scan on a codebase using parallel subagents.
Hunts for the other instances of a bug already found — the variants of one root cause across a codebase.
$ npx skills add trailofbits/skills --skill variant-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install trailofbits/skills variant-analysis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/variant-analysis/skills/variant-analysis .claude/skills/variant-analysis && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "variant-analysis" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/variant-analysis/skills/variant-analysis into .claude/skills/variant-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "variant-analysis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/trailofbits/skills/tree/main/plugins/variant-analysis/skills/variant-analysisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add trailofbits/skills --skill variant-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install trailofbits/skills variant-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/variant-analysis/skills/variant-analysis .agents/skills/variant-analysis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "variant-analysis" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/variant-analysis/skills/variant-analysis into .agents/skills/variant-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "variant-analysis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add trailofbits/skills --skill variant-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install trailofbits/skills variant-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/variant-analysis/skills/variant-analysis .cursor/skills/variant-analysis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "variant-analysis" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/variant-analysis/skills/variant-analysis into .cursor/skills/variant-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "variant-analysis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/trailofbits/skills.git --path plugins/variant-analysis/skills/variant-analysis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add trailofbits/skills --skill variant-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install trailofbits/skills variant-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/variant-analysis/skills/variant-analysis .gemini/skills/variant-analysis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "variant-analysis" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/variant-analysis/skills/variant-analysis into .gemini/skills/variant-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "variant-analysis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install trailofbits/skills variant-analysisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add trailofbits/skills --skill variant-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/variant-analysis/skills/variant-analysis .github/skills/variant-analysis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "variant-analysis" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/variant-analysis/skills/variant-analysis into .github/skills/variant-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "variant-analysis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add trailofbits/skills --skill variant-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install trailofbits/skills variant-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trailofbits/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/variant-analysis/skills/variant-analysis .opencode/skills/variant-analysis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "variant-analysis" agent skill from https://github.com/trailofbits/skills/tree/main/plugins/variant-analysis/skills/variant-analysis into .opencode/skills/variant-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "variant-analysis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
variant-analysisHunts for the other instances of a bug already found — the variants of one root cause across a codebase.
Variant Analysis is an agent skill from trailofbits/skills, published by the product's own GitHub organization. Hunts for the other instances of a bug already found — the variants of one root cause across a codebase. Use immediately after a vulnerability, logic bug, or bad pattern turns up in a specific file and the question becomes where else it occurs, including the bare conversational form ("are there others like this?", "is this the same bug?"). Also for generalizing one known instance into a CodeQL or Semgrep query for its whole pattern family, and for triaging a set of look-alike candidates against a known root…
Its SKILL.md is about 970 tokens, which your agent loads only when the skill is triggered. The skill folder holds 23 other files, including reference files and assets (for example `agents/openai.yaml`, `references/reporting.md` and `references/root-cause.md`).
It sits in Security, covering Static analysis and SAST and Root cause analysis. It works with Semgrep. The repository describes itself as: Trail of Bits Claude Code skills for security research, vulnerability detection, and audit workflows. The licence is CC-BY-SA-4.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 82fe822. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Variant Analysis loads about 967 tokens when it runs, and up to ~4.4k if it reads all its reference files. Until then it costs about 146 tokens; SKILL.md has 448 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from trailofbits/skills at commit 82fe822, republished under its CC-BY-SA-4.0 licence (© trailofbits). 448 words, ~967 tokens.
.claude/skills/variant-analysis/SKILL.md (or your agent's skills folder). This skill also uses 17 other files; get the full folder from GitHub.Find the other instances of a bug you have already found. One root cause usually has several manifestations, and they are rarely in the module where you found the first one.
Read the reference for a step when you reach it.
1. Understand the original issue. Extract the root cause — why the code is wrong, not what it does — and enumerate the directions a variant could hide in: related identifiers, other manifestations of the same mistake, data-type edge cases. → references/root-cause.md
2. Create an exact match. Write a pattern matching ONLY the known instance and confirm it hits. A pattern that matches nothing means you have misunderstood the bug, and every search built on it is calibrated against the wrong code.
3–4. Generalize one element at a time. Climb from the exact match toward the pattern family, running and reading all matches after each single change. Stop when more than half the matches are noise. → references/searching.md — abstraction ladder, tool selection, false-positive filters
5. Triage. Decide which candidates are real, and say so with a severity attached. → references/triage.md
Then write it up, including the patterns that failed and a CI rule to prevent regression. → references/reporting.md
This plugin ships /variant-analysis:variants, which runs the five steps across parallel
subagents — one per expansion axis, looping until the sweep stops finding anything new.
Each stage reads the reference above that matches its job.
Use the workflow when the codebase is large or the root cause has many manifestations. Work the steps directly when the search is narrow or you want a say in each generalization.
The first three are covered in root-cause.md and searching.md, the fourth in triage.md.
CodeQL (resources/codeql/): python.ql, javascript.ql, java.ql, go.ql, cpp.ql
Semgrep (resources/semgrep/): python.yaml, javascript.yaml, java.yaml, go.yaml, cpp.yaml
Report: resources/variant-report-template.md
© trailofbits, CC-BY-SA-4.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 17 other files (references, assets) in plugins/variant-analysis/skills/variant-analysis of trailofbits/skills.
Open the folder on GitHubat commit 82fe822
Variant Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Variant Analysis this skilltrailofbits/skills | 7.4k | — | ~967 | Automated safety check: Pass | CC-BY-SA-4.0 | |
| Semgrepvigolium/piolium | 138 | 1 repos | ~2.4k | Automated safety check: Notes | MIT | |
| Sast SemgrepAgentSecOps/SecOpsAgentKit | 219 | 2 repos | ~2.4k | Automated safety check: Pass | Custom licence | |
| Semgrepwaybarrios/opencode-power-pack | 533 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Semgrepsemgrep/skills | 322 | — | ~2.3k | Automated safety check: Pass | Custom licence | |
| Code Auditzhaoxuya520/reverse-skill | 40k | 2 repos | ~374 | Automated safety check: Warn | MIT |
vigolium/piolium
Run Semgrep static analysis scan on a codebase using parallel subagents.
AgentSecOps/SecOpsAgentKit
Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.
waybarrios/opencode-power-pack
Run Semgrep static analysis across a codebase, optionally using Semgrep Pro for cross-file taint analysis.
semgrep/skills
Run Semgrep static analysis scans and create custom detection rules.
zhaoxuya520/reverse-skill
A skill your agent uses for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.
davila7/claude-code-templates
Static Application Security Testing (SAST) tool setup, configuration, and custom rule creation for comprehensive security scanning across multiple programming languages.
trailofbits/skills
Scans a codebase for vulnerabilities with CodeQL's data flow and taint tracking in run-all or important-only modes, including data extensions for project-specific sources and sinks.
trailofbits/skills
Generates Mermaid diagrams from Trailmark code graphs, including call graphs, class hierarchies, module dependency maps, complexity heatmaps and attack surface data flows.
trailofbits/skills
Compares Trailmark code graphs at two snapshots, such as commits, tags or directories, to surface attack paths, blast radius and taint changes that text diffs miss.
trailofbits/skills
Draws a 12 Houses tarot spread to break ties when a request is vague or casually delegated, then reads the cards to pick the next step.
trailofbits/skills
Detects languages, proposes rulesets for approval, then runs the approved Semgrep scan across a codebase and merges the output into one SARIF file.
trailofbits/skills
Searches and extracts data from Burp Suite project files on the command line: regex searches over responses, audit findings, proxy history and site map data.
Works with
Categories
Hunts for the other instances of a bug already found — the variants of one root cause across a codebase. Variant Analysis is an agent skill from trailofbits/skills, published by the product's own GitHub organization. Hunts for the other instances of a bug already found — the variants of one root cause across a codebase.
Variant Analysis fits situations like: tasks that involve Static analysis and SAST; tasks that involve Root cause analysis.
Run `npx skills add trailofbits/skills --skill variant-analysis -a claude-code`. Or copy the skill folder (plugins/variant-analysis/skills/variant-analysis in trailofbits/skills) into .claude/skills/variant-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add trailofbits/skills --skill variant-analysis -a codex`. Or copy the skill folder (plugins/variant-analysis/skills/variant-analysis in trailofbits/skills) into .agents/skills/variant-analysis in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add trailofbits/skills --skill variant-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/variant-analysis, .gemini/skills/variant-analysis, .github/skills/variant-analysis and .opencode/skills/variant-analysis in your project.
SKILL.md names no scripts, command-line tools or credentials: Variant Analysis is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Variant Analysis is published under the CC-BY-SA-4.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 967 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Variant Analysis: Semgrep (vigolium/piolium, 138 stars), Sast Semgrep (AgentSecOps/SecOpsAgentKit, 219 stars), Semgrep (waybarrios/opencode-power-pack, 533 stars) and Semgrep (semgrep/skills, 322 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
trailofbits (a GitHub organization, an official publisher) maintains it in trailofbits/skills, which has 7,400 GitHub stars. The repository holds 79 skills in this directory. The repository was last updated on October 2, 2026.
Source: trailofbits/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.