bugs-are-annoying
它能做什么
这是一个用于查找编程代码中错误的 AI 代理。它会尝试“破坏”代码,以发现逻辑缺陷、安全问题或代码可能存在的其他问题。
适用场景
- ✓想确认代码运行正常时。
- ✓想找出其他工具可能漏掉的隐藏错误时。
- ✓在将代码用于重要项目之前。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/bugs-are-annoying/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“审查这段代码,找出所有可能的 bug。”
每周 5 个新技能,1 分钟读完。
工作原理
它会逐行分析代码,模拟出错场景,并检查代码在意外情况下是否仍能按预期运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Bugs Are Annoying
An adversarial QA pass for any codebase, in any language. AI IDEs are optimized to produce code that looks finished — they are not optimized to produce code that is correct. This skill exists to close that gap by actively trying to break the code instead of confirming it works.
Core Mindset
Treat all code as guilty until proven innocent. The default question when reading a builder agent's output is not "does this look right?" — it's "how would this break, and what did the author not think of?"
This is an adversarial pass, not a confirmatory one. Do not skim and approve. Do not skip a category because it "seems fine." Every category in the taxonomy below must be actively checked against the actual code, not assumed clean.
When To Use
Trigger on: "find bugs," "audit this code/codebase," "run bug hunter," "check for errors," "find flaws," "review this for bugs," "is this code solid," or any request for a deep correctness pass rather than a style/readability review.
Process — Run These Phases In Order
Do not skip phases or collapse them into a single skim. Each phase catches things the others miss.
- Determine scope — If the user named a specific file or folder, scope to that. Otherwise, ask before starting: confirm whether to audit the whole codebase, just files changed vs. the main branch (
git diff), or a specific area. Never silently guess the scope on a codebase of unknown size — an unscoped "exhaustive" pass on a large repo can blow context mid-audit. Within scope, always exclude generated and dependency directories (node_modules,vendor,dist,build,.git) and minified/bundled files — this isn't the user's authored code and auditing it wastes the pass. Lockfiles are excluded by default, but must be inspected when checking for Dependency Issues. - Map the codebase — Identify entry points, the overall data flow, and what calls what before hunting for anything. You can't find a cross-file bug without first knowing the file relationships.
- Static line-by-line pass — Read every relevant/changed file fully, not a skim. Check each line against the taxonomy below.
- Trace critical data paths — Follow data from input to output across file/function boundaries. Most real bugs live at the seams between functions and files, not inside a single function.
- Adversarial simulation — Mentally execute the code against hostile/edge inputs: null, undefined, empty string, empty array, zero, negative numbers, max-length input, duplicate calls, concurrent calls, malformed input, missing fields.
- Cross-reference pass — When a bug is found, actively check if the same mistake was repeated elsewhere. AI IDEs frequently copy-paste the same flawed pattern into multiple files.
- Severity triage — Classify every finding using the definitions below. Do not invent new severity labels.
- Write/update
bugs.md— Use the exact format below. This is the only output of a hunt — do not also narrate a long summary in chat; point the user to the file.
Bug Taxonomy
Language-agnostic. Check every category — these are patterns, not syntax, so they apply regardless of stack.
- Logic errors — off-by-one errors, inverted conditionals, wrong operator precedence, incorrect boolean logic
- Null/type safety — unhandled null/undefined, unsafe casts, missing optional-chaining, wrong assumed type
- Edge cases — empty input, zero, negative numbers, single-item vs multi-item collections, first/last iteration of a loop
- Error handling — swallowed exceptions, missing try/catch around fallible calls, errors caught but not logged or surfaced, wrong error propagated up the stack
- Concurrency/async — race conditions, unawaited promises, stale closures, state updated after a component/process has already torn down
- Security — injection points, hardcoded secrets/keys, auth or permission bypass, unsafe deserialization
- Resource leaks — unclosed file handles/streams/connections, listeners or subscriptions never removed
- Cross-file consistency — a function/type/field changed in one file but call sites elsewhere not updated (the single most common AI-IDE failure mode, since builder agents tend to edit one file at a time)
- API/contract mismatches — caller and callee disagree on a field name, type, or required parameter
- State management — mutation of state that should be immutable, derived state that goes stale, double-updates
…
常见问题
它能找出所有类型的错误吗?
它被设计用来找出多种类型的错误,比如逻辑缺陷、安全问题,以及极少出现的情况(即边界情况)下的问题。
它会检查代码的外观吗?
不会,它只关注代码能否正确运行,不关心代码看起来是否美观,或者在编码风格上是否写得好。
如果发现错误,它会怎么做?
它会列出发现的错误,对严重程度进行分类,并指出它们在代码中的位置,通常会写入一个名为 bugs.md 的文件中。
详情
作者的原始描述
Adversarial code auditor that hunts down bugs, logic errors, and security flaws. Use for deep correctness passes, not style reviews.
热度
- GitHub 星标
- 48k
- 排名
- #4079
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。