Skills Plugins MCP Prompt Model 博客 我的中心

variant-analysis

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.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=trailofbits-skills-plugins-variant-analysis-skills-variant-analysis-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
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. Variant Analysis Find the other instances of a bug you have already found. One root cause usually has several manifestations, and they are rarely in the module where you found the first one. When to Use 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 Analyzing how a single root cause manifests in different code paths When NOT to Use Initial vulnerability discovery — use audit-context-building or a domain-specific audit General code review with no known pattern to search for Writing fix recommendations — use issue-writer Understanding unfamiliar code — use audit-context-building first The Five Steps Read the reference for a step when you reach it. 1. Understand the original issue. Extract the root cause — why the code is wrong, not what it does — and enumerate the directions a variant could hide in: related identifiers, other manifestations of the same mistake, data-type edge cases. → references/root-cause.md 2. Create an exact match. Write a pattern matching ONLY the known instance and confirm it hits. A pattern that matches nothing means you have misunderstood the bug, and every search built on it is calibrated against the wrong code. 3–4. Generalize one element at a time. Climb from the exact match toward the pattern family, running and reading all matches after each single change. Stop when more than half the matches are noise. → references/searching.md — abstraction ladder, tool selection, false-positive filters 5. Triage. Decide which candidates are real, and say so with a severity attached. → references/triage.md Then write it up , including the patterns that failed and a CI rule to prevent regression. → references/reporting.md Running it as a Workflow This plugin ships /variant-analysis:variants , which runs the five steps across parallel subagents — one per expansion axis, looping until the sweep stops finding anything new. Each stage reads the reference above that matches its job. Use the workflow when the codebase is large or the root cause has many manifestations. Work the steps directly when the search is narrow or you want a say in each generalization. What Makes Hunts Fail Narrow scope — searching only the module the original bug was in Pattern too specific — searching one attribute and missing the family around it One vulnerability class — chasing a single manifestation of the root cause Happy-path testing — never trying the null, empty, and boundary cases Generalizing too fast — abstracting several elements at once, so noise cannot be attributed to any one of them The first three are covered in root-cause.md and searching.md, the fourth in triage.md. Resources CodeQL ( resources/codeql/ ): python.ql , javascript.ql , java.ql , go.ql , cpp.ql Semgrep ( resources/semgrep/ ): python.yaml , javascript.yaml , java.yaml , go.yaml , cpp.yaml Report : resources/variant-report-template.md
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。