本文へスキップ
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に貼り付けるだけ。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をインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このコードを監査して、考えられるバグをすべて見つけてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

コードを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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル