---
name: "variant-analysis"
description: "Hunts for the other instances of a bug already found — the variants of one root cause across a codebase. Use immediately after a vulnerability, logic bug, or bad pattern turns up in a specific file and the question becomes where else it occurs, including the bare conversational form (\"are there others like this?\", \"is this the same bug?\"). Also for generalizing one known instance into a CodeQL or Semgrep query for its whole pattern family, and for triaging a set of look-alike candidates against a known root cause. Not for initial discovery with no bug in hand."
version: "123037e"
license: "CC-BY-SA-4.0"
difficulty: null
est_time: null
agents: ["claude", "cursor", "codex", "kiro", "copilot", "gemini"]
requires: []
declared_permissions: []
source: "https://github.com/trailofbits/skills/tree/123037ec8aed26f0d86327cc39137ee5043e5deb/plugins/variant-analysis/skills/variant-analysis"
commit: "123037ec8aed26f0d86327cc39137ee5043e5deb"
scan_state: "not_scanned"
demo: false
---

# variant-analysis


> TASFT note (not part of the skill): Share-alike license: adaptations must use the same license. Attribution: trailofbits, https://github.com/trailofbits/skills/tree/123037ec8aed26f0d86327cc39137ee5043e5deb/plugins/variant-analysis/skills/variant-analysis. License file: https://github.com/trailofbits/skills/blob/123037ec8aed26f0d86327cc39137ee5043e5deb/LICENSE.
