Adversarial Bug Huntのロゴ

Adversarial Bug Hunt

組織
TSS-Blue-AI-Lab
adversarial-bug-hunt

Use when reviewing code for bugs with finder, challenger, and referee roles, especially when independent review is needed to reduce false positives.

概要

公開者TSS-Blue-AI-Lab
リポジトリai-lab-agent-skills
スキル名adversarial-bug-hunt
スター
26
フォーク
3
同梱ファイル
7
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 7個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    TSS-Blue-AI-LabがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Adversarial Bug Hunt」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills/tree/main/skills/adversarial-bug-hunt
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills.git /tmp/ai-lab-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-lab-agent-skills/skills/adversarial-bug-hunt .claude/skills/adversarial-bug-hunt
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAdversarial Bug Huntを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAdversarial Bug Huntを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Adversarial Bug Huntは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Adversarial Bug Hunt

Three-role bug discovery pipeline. A bug-finder over-reports, an adversarial reviewer challenges, and a referee resolves. Prefer clean, isolated contexts; when the runtime cannot provide them, use the documented reduced-assurance fallback instead of inventing platform-specific tools.

Constraints

  • Read gotchas.md before starting
  • Select an execution mode before reviewing; use the strongest mode the current runtime actually supports
  • Prefer a separate clean context for each role to prevent cross-contamination
  • Same-context sequential execution is allowed only as the disclosed reduced-assurance fallback
  • Scoring numbers are a prompt technique — they bias agent behavior via sycophancy, they are not tracked
  • The referee is told "ground truth exists" — this is intentional design that makes it more careful, not a mistake
  • Do not add an extra, unstructured review outside the selected three-role pipeline
  • All roles must produce structured JSON output

Runtime Mode

Choose the first available mode. Do not assume tool names or ask the user to install another agent runtime.

ModeHow to run the rolesAssurance
Isolated workersLaunch each role with the runtime's native delegation mechanism in a separate clean contextPreferred
External isolated sessionsRun each role in a separate available process or session that can read the review scopePreferred
Sequential fallbackRun the three prompt templates as separate passes in the current context, preserving each JSON handoffReduced

For sequential fallback, tell the user before Phase 1:

This runtime cannot isolate the three reviewers. I can run the same finder → adversarial → referee pipeline sequentially, but the roles may influence one another, so the result has reduced assurance.

Record the selected mode in the final report. Never describe sequential fallback as independent or clean-context review.


Phase 0 — Determine Scope

If the user provided a scope (files, directory, "uncommitted changes"), use it. Otherwise ask. Default: uncommitted changes.


Phase 1 — Bug-Finder Agent

Read references/agent-prompts.md for the bug-finder prompt template.

Run the bug-finder prompt with the selected execution mode, passing the scope. In an isolated mode, start a fresh worker or session. In sequential fallback, run it as the first pass. The role is incentivized to over-report and produces the superset of possible bugs.

Receives: JSON array of findings using the schema in templates/finding-schema.json.


Phase 2 — Adversarial Agent

Read references/agent-prompts.md for the adversarial prompt template.

Run the adversarial prompt with the selected execution mode, passing the bug-finder's full JSON output. Use a fresh context in either isolated mode; otherwise run it as the second sequential pass. The role is incentivized to disprove and produces the subset of likely real bugs.

Receives: same findings array, each annotated with adversarial_verdict and adversarial_reasoning.


Phase 3 — Referee Agent

Read references/agent-prompts.md for the referee prompt template.

Run the referee prompt with the selected execution mode, passing both prior outputs. Use a fresh context in either isolated mode; otherwise run it as the third sequential pass. The referee resolves each dispute.

Receives: same findings array, each annotated with referee_verdict and referee_reasoning.


Phase 4 — Present Results

Read references/report-format.md for display format. See examples/ for concrete samples.

Show only CONFIRMED + UNCERTAIN findings. If all findings are DISPROVED: say "No confirmed issues found in the reviewed code." and stop.

Otherwise, ask the user which finding IDs to fix:

"Which issues would you like me to fix? You can list IDs (e.g., BUG-001, BUG-003) or say 'all'."

When the user replies, prepare a fix plan before editing. Use the runtime's native planning mode when one exists; otherwise present the plan directly in chat and wait for approval. The plan must reference the selected findings, evidence, and fix recommendations from the report.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Adversarial Bug Hunt」では何ができますか?

Use when reviewing code for bugs with finder, challenger, and referee roles, especially when independent review is needed to reduce false positives.

TypingMindでAdversarial Bug Huntを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Adversarial Bug Huntはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAdversarial Bug Huntをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/TSS-Blue-AI-Lab/ai-lab-agent-skills/tree/main/skills/adversarial-bug-huntを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Adversarial Bug Huntを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Adversarial Bug Huntで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAdversarial Bug Huntを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Adversarial Bug Hunt」は無料ですか?

TSS-Blue-AI-LabがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇