Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 71
  • 201 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-analysis

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install variant-analysis in Claude Code

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

A

No 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 →

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.

variant-analysis Install

Add to stack

Loading.