跳到正文
Skillpedia
安全48k · #4079

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/bugs-are-annoying/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

  1. 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.
  2. 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.
  3. Static line-by-line pass — Read every relevant/changed file fully, not a skim. Check each line against the taxonomy below.
  4. 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.
  5. 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.
  6. 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.
  7. Severity triage — Classify every finding using the definitions below. Do not invent new severity labels.
  8. 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4079
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能