variant-analysis
Skill by henryalouf
Finds bug variants across a codebase once an initial vulnerability is known. It guides pattern-based searches with ripgrep, Semgrep and CodeQL, for security researchers and developers doing code audits.
Install variant-analysis
Built from the published package, never by AI.
git clone --depth 1 https://github.com/henryalouf/ruflow /tmp/ruflow && mkdir -p ~/.claude/skills && cp -r /tmp/ruflow/.agents/skills/antigravity-awesome-skills/skills/variant-analysis ~/.claude/skills/variant-analysisRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/henryalouf/ruflow /tmp/ruflow && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ruflow/.agents/skills/antigravity-awesome-skills/skills/variant-analysis ~/.gemini/antigravity-cli/skills/variant-analysisAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Variant Analysis is an agent skill for finding vulnerabilities and bugs that are similar to one already identified. It guides the assistant through a five-step process: understanding the root cause, starting with an exact-match pattern, identifying abstraction points, generalizing one element at a time, and triaging the matches. Tool guidance covers ripgrep, Semgrep and CodeQL, and the skill lists common pitfalls such as narrow search scope and missing edge cases.
The skill includes starter CodeQL and Semgrep templates for Python, JavaScript, Java, Go and C++, plus a variant report template. It is intended for security researchers and developers who need to search for bug variants after an initial issue is found. The source says it is not meant for initial vulnerability discovery or general code review.
Written from the project's SKILL.md and checked against it.
What it can do
- Root cause analysisGuides understanding why a known bug is vulnerable before searching for it.
- Exact match patternsStarts with a search pattern that matches only the known instance.
- Iterative generalizationBroadens one pattern element at a time and checks false positive rates.
- Result triageDocuments location, confidence, exploitability and priority for each match.
- Tool selection guidanceAdvises when to use ripgrep, Semgrep taint analysis or CodeQL.
- Pitfall checklistLists common misses such as narrow scope, overly specific patterns and edge cases.
- CodeQL and Semgrep templatesProvides starter query files for Python, JavaScript, Java, Go and C++.
- Variant report templateProvides a report template for recording variant analysis results.
Try asking
- Find variants of this auth check bypass across the whole repository
- Help me write a Semgrep rule for this null comparison bug
- Generalize this ripgrep pattern and triage the matches by exploitability
Good to know
- Not for initial vulnerability discovery; the source points to other skills for that.
- Stop generalizing a pattern when the false positive rate exceeds about 50%.
- Source says to search the entire codebase root, not only the module with the original bug.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/antigravity-awesome-skills/skills/variant-analysis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to variant-analysis
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
variant-analysis: common questions
What does variant analysis mean in this skill?
The source describes it as finding similar vulnerabilities and bugs across a codebase after identifying an initial pattern. It is used after an initial issue has been found.
Which tools does the skill use?
The source names ripgrep for quick searches, Semgrep for simple pattern and taint matching, and CodeQL for cross-function analysis. It also includes query templates for CodeQL and Semgrep.
Does this skill find new vulnerabilities from scratch?
No. The source says not to use it for initial vulnerability discovery and recommends other audit skills for that.
How do I install variant-analysis?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is variant-analysis free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is variant-analysis safe to use?
It scores 71 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to variant-analysis?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
