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 aibot88

Finds similar vulnerabilities and bugs across a codebase by generalizing a known bug pattern. It is for security analysts and developers who need to hunt bug variants after finding an initial issue.

  • Score 43
  • 6 stars
  • 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/aibot88/sec_skill_store /tmp/sec_skill_store && mkdir -p ~/.claude/skills && cp -r /tmp/sec_skill_store/skills/claudskills/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 a skill for finding bugs that share a root cause with a known issue. It guides the assistant through a five-step process: understanding the original bug, writing a pattern that matches only that instance, identifying which parts to abstract, generalizing one element at a time, and triaging the matches. The skill tells the assistant to stop generalizing when the false positive rate exceeds about 50%.

The skill recommends ripgrep for quick searches, Semgrep for simple pattern matching, and CodeQL or Semgrep taint analysis for data flow. It also lists common pitfalls, such as searching only one module or missing related constructs. Templates for CodeQL and Semgrep are provided for Python, JavaScript, Java, Go and C++, along with a report template. It is intended for security auditors and developers doing systematic code audits.

Written from the project's SKILL.md and checked against it.

What it can do

  • Root cause analysisGuides the assistant to understand why a known bug is vulnerable before searching.
  • Iterative pattern generalizationChanges one element of a search pattern at a time and reviews new matches.
  • Match triageRecords location, confidence, exploitability and priority for each match.
  • Tool selection guidanceRecommends ripgrep, Semgrep or CodeQL depending on the search scenario.
  • Variant pitfall checklistLists common mistakes such as narrow search scope and missing edge cases.
  • CodeQL and Semgrep templatesProvides query templates for Python, JavaScript, Java, Go and C++.
  • Variant report templateProvides a report template for documenting variant findings.

What you need

  • ripgrep, Semgrep or CodeQL for running searches

Try asking

  • Find variants of this missing auth check across the whole repo
  • Help me write a Semgrep rule for this unsafe deserialization pattern
  • Generalize this bug pattern and report the false positive rate

Good to know

  • Stop generalizing when the false positive rate exceeds about 50%.
  • Not for initial vulnerability discovery or general code review.
  • Not a substitute for environment-specific validation, testing or expert review.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/claudskills/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

When should I use Variant Analysis?

Use it after a vulnerability has been found and you need to search for similar instances across the codebase. The source says it is not for initial discovery.

Which languages have query templates?

The source lists CodeQL and Semgrep templates for Python, JavaScript, Java, Go and C++.

What tools does the skill use?

It recommends ripgrep for quick searches, Semgrep for simple pattern matching, and CodeQL for cross-function analysis.

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 public, but no licence file was found, so check the repository before commercial use.

Is variant-analysis safe to use?

It scores 43 of 100. Grades: maintenance D, licence F, quality C. 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.