variant-analysis
Skill by sickn33
Finds similar vulnerabilities and bugs across codebases using pattern-based analysis. Built for security analysts who have found an initial issue and need to search for variants. The source limits it to authorized use.
Install variant-analysis
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-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/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-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 a skill that helps an assistant find similar vulnerabilities and bugs across a codebase after one instance has been identified. It follows a five-step process: understand the root cause, start with an exact match, identify abstraction points, generalize one element at a time, and triage the results. The source says to stop generalizing when the false positive rate exceeds about 50 percent.
Written from the project's SKILL.md and checked against it.
What it can do
- Five-step variant processGuides the assistant from understanding the original bug through to triaging matches.
- Exact match startBegins with a pattern that should match only the known instance, checked with ripgrep.
- Iterative generalizationChanges one element at a time and reviews new matches for false positives.
- Result triageRecords location, confidence, exploitability and priority for each match.
- Tool selection guidanceCompares ripgrep, Semgrep and CodeQL for different search and analysis needs.
- Critical pitfalls checklistWarns against narrow search scope, overly specific patterns, single classes and missing edge cases.
What you need
- ripgrep for quick surface search
- Semgrep for pattern matching on non-building code
- CodeQL for cross-function data flow analysis
- Supporting resources folder with CodeQL, Semgrep and report templates (external, not bundled)
Try asking
- Find variants of this auth bypass across the whole repository
- Help me write a Semgrep rule for this unchecked input pattern
- Triage these search matches by confidence and exploitability
Good to know
- Authorized use only, as stated in the source.
- Supporting CodeQL, Semgrep and report template files are not bundled in this copy.
- Stop generalizing when the false positive rate exceeds about 50 percent.
- Not a substitute for environment-specific validation or expert review.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/variant-analysis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
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
Does this copy include the CodeQL and Semgrep templates?
No. The source lists resources/codeql and resources/semgrep as external prerequisites that must come from an existing installation or the original supporting material.
When should I not use this skill?
The source says not to use it for initial vulnerability discovery, general code review without a known pattern, or writing fix recommendations.
When should the search stop widening?
The source says to stop when the false positive rate exceeds about 50 percent, then revert and try a different abstraction.
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 91 of 100. Grades: maintenance A, licence A, quality A. 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.
