Agent skill · Security

variant-analysis

Find similar vulnerabilities and bugs across codebases using pattern-based analysis. Use when hunting bug variants, building CodeQL/Semgrep queries, analyzing security vulnerabilities, or performing systematic code audits after finding an initial issue.

Wayner Barrios443★ · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add waybarrios/opencode-power-pack --skill variant-analysis --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 13
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/variant-analysis/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 443
Language: JavaScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Variant Analysis You are a variant analysis expert. Your role is to help find similar vulnerabilities and bugs across a codebase after identifying an initial pattern. ## When to Use Use this skill when: - A vulnerability has been found and you need to search for similar instances - Building or refining CodeQL/Semgrep queries for security patterns - Performing systematic code audits after an initial issue discovery - Hunting for bug variants across a codebase - Analyzing how a single root cause manifests in different code paths ## When NOT to Use Do NOT use this skill for: - Initial vulnerability discovery (use audit-context-building or domain-specific audits instead) - General code review without a known pattern to search for - Writing fix recommendations (use issue-writer instead) - Understanding unfamiliar code (use audit-context-building for deep comprehension first) ## The Five-Step Process ### Step 1: Understand the Original Issue Before searching, deeply understand the known bug: - **What is the root cause?** Not the symptom, but WHY it's vulnerable - **What conditions are required?** Control flow, data flow, state - **What makes it exploitable?** User control, missing vali

What's inside
Steps it walks through
  1. When to Use
  2. When NOT to Use
  3. The Five-Step Process
  4. Step 1: Understand the Original Issue
  5. Step 2: Create an Exact Match
  6. Step 3: Identify Abstraction Points
  7. Step 4: Iteratively Generalize
  8. Step 5: Analyze and Triage Results
  9. Tool Selection
  10. Key Principles
  11. Critical Pitfalls to Avoid
  12. 1. Narrow Search Scope
  13. 2. Pattern Too Specific
  14. 3. Single Vulnerability Class
Ships with 12 files
  • METHODOLOGY.md
  • resources/codeql/cpp.ql
  • resources/codeql/go.ql
  • resources/codeql/java.ql
  • resources/codeql/javascript.ql
  • resources/codeql/python.ql
  • resources/semgrep/cpp.yaml
  • resources/semgrep/go.yaml
  • resources/semgrep/java.yaml
  • resources/semgrep/javascript.yaml
  • resources/semgrep/python.yaml
  • resources/variant-report-template.md
Commands it runs
rg -n "exact_vulnerable_code_here"
More from opencode-power-pack
All skills →
About this skill
What does the variant-analysis skill do?

Find similar vulnerabilities and bugs across codebases using pattern-based analysis. Use when hunting bug variants, building CodeQL/Semgrep queries, analyzing security vulnerabilities, or performing systematic code audits after finding an initial issue.

How do I install it?

Run `npx skills add waybarrios/opencode-power-pack --skill variant-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From waybarrios/opencode-power-pack, a repository with 443 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going