claude-vibe-squad: Skill for Claude Code

.agents/skills/variant-analysis/SKILL.md

variant-analysis is a skill for Claude Code, Codex from mtarcure/claude-vibe-squad. It costs 57 tokens per session (498 once invoked), scanned A, original, MIT.

A systematic search for copies of a confirmed software defect in related code, older versions, vendored code, services, or other programming languages.

In plain words
What is it for?
Use it to create a repeatable Semgrep or abstract syntax tree query, review each match separately, and suggest a fix for the shared underlying cause.
Why use it?
It reduces the chance of fixing one occurrence while leaving structurally similar problems elsewhere.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is mtarcure/claude-vibe-squad's own configuration. It tells Claude Code and Codex how to work on claude-vibe-squad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-vibe-squad configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mtarcure/claude-vibe-squad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mtarcure/claude-vibe-squad/main/.agents/skills/variant-analysis/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for variant-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/variant-analysis/github.svg)](https://agentmods.dev/skills/mtarcure/claude-vibe-squad/variant-analysis)
Your own site
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/variant-analysis"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/variant-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for variant-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/variant-analysis"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/variant-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 498 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.00498
Opus 5 $0.00028 $0.00249
Sonnet 5 $0.00011 $0.00100
Haiku 4.5 $0.00006 $0.00050

Measured 9d ago against content hash 33a1f37ac6e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

variant-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/variant-analysis/SKILL.md · 28 lines

How it starts

The opening of the file, as written. The whole thing — 28 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Variant Analysis

After one defect is confirmed, find every sibling of it in the codebase before closing the issue — the first instance is rarely the only one.

Steps

  1. Characterize the root cause precisely: the unsafe primitive, the missing check, and the condition that makes it exploitable. A vague characterization finds nothing.
  2. Decide the variant axes to sweep: same primitive elsewhere, same call site with a different input source, same missing check in sibling handlers, and the same idiom in other languages or services in the repo.
  3. Search structurally, not textually. Encode the pattern as a Semgrep rule via semgrep-rule-author or an AST query; grep misses reformatted and refactored instances, which are the ones that survive.
  4. Sweep history as well as the working tree: the same defect frequently exists in a copied file, a vendored fork, or a branch that was never merged back.
  5. For each candidate hit, run the reachability and impact gates from findings-filter — a variant is only a finding if it is independently reachable.
  6. Group confirmed variants under the single root cause and propose one structural fix, such as a safe wrapper or a type that makes the unsafe state unrepresentable, rather than N local patches.
  7. Where a local patch is unavoidable, add the rule to the repo's static-analysis config so future instances are caught at review time.
  8. Record the sweep's coverage explicitly: which axes were swept, which paths were excluded, and what would still be missed. An unbounded "we looked" claim is not coverage.

Acceptance

  • The root cause is stated as primitive + missing check + exploitability condition.
  • The sweep is structural (rule or AST query), with the query recorded and re-runnable.
  • Vendored, copied, and historical instances were searched, not just the working tree.
  • Each variant passed reachability and impact gates independently.
  • A single structural fix is proposed where possible, and a detection rule is added to prevent regression.
  • Sweep coverage and known gaps are stated explicitly.

Read the full file on GitHub · 28 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 28 lines · 57 tokens per session scan A 33a1f37ac6e1

Subscribe to this mod's changes

variant-analysis is a skill published in the GitHub repository mtarcure/claude-vibe-squad (122 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 498 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories