Communityコーディング&開発github.com

完了前検証

作業の完了、修正、テスト合格を主張する前に、検証コマンドを実行し、その出力を確認してから主張することを要求するスキル。証拠のない主張を禁止します。

完了前検証 とは?

このスキルは、開発者が作業の完了や成功を主張する前に、必ず検証コマンドを実行し、その出力を確認することを徹底するための厳格なルールを提供します。特にClaude Code, Cursor, CodexなどのAIエージェントを使用する環境において、エージェントが「動作するはず」「テストは通るはず」といった根拠のない主張を防ぎ、証拠に基づいた報告を強制します。SKILL.mdでは「鉄則」として「証拠なしに完了を主張してはならない」と明記され、具体的なゲート関数(特定→実行→確認→検証→主張)が定義されています。テスト、リント、ビルド、バグ修正、回帰テスト、エージェント委任など、あらゆる状況で適用され、「べき」「おそらく」「問題ない」といった曖昧な表現や、検証前の満足表現をレッドフラグとして検出します。このルールに違反することは、ルールの精神に反する重大な問題とみなされます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/obra/superpowers/tree/main/skills/verification-before-completion

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

完了前検証 は何をしますか?

概要

基本原則: 証拠なくして主張なし。常に。

このルールの文言に違反することは、このルールの精神に違反することです。

鉄則

新しい検証証拠なしに完了を主張してはならない

このメッセージ内で検証コマンドを実行していないなら、それが合格すると主張することはできません。

ゲート関数

ステータスや満足を表明する前に:

1. 特定: どのコマンドがこの主張を証明するか?
2. 実行: 完全なコマンドを(新しく、完全に)実行する
3. 読み取り: 完全な出力を読み、終了コードを確認し、失敗数を数える
4. 検証: 出力は主張を確認するか?
   - いいえの場合: 証拠とともに実際のステータスを述べる
   - はいの場合: 証拠とともに主張を述べる
5. その後にのみ: 主張を行う

どのステップもスキップすることは、検証ではなく嘘をつくことです

よくある失敗

主張必要不十分
テスト合格テストコマンド出力: 0件の失敗前回の実行、「合格するはず」
リンター正常リンター出力: 0件のエラー部分チェック、推測
ビルド成功ビルドコマンド: 終了コード0リンター合格、ログが良さそう
バグ修正元の症状をテスト: 合格コード変更、修正したと想定
回帰テスト動作レッドグリーンサイクル確認済みテストが1回合格
エージェント完了VCS差分が変更を示すエージェントが「成功」と報告
要件達成項目ごとのチェックリストテスト合格

レッドフラグ - 停止

  • 「べき」「おそらく」「~のように見える」を使用している
  • 検証前に満足を表明する(「素晴らしい!」「完璧!」「できた!」など)
  • 検証なしにコミット/プッシュ/PRを作成しようとしている
  • エージェントの成功報告を信頼している
  • 部分的な検証に依存している
  • 「今回だけ」と考えている
  • 疲れていて作業を終わらせたい
  • 検証を実行せずに成功を暗示するいかなる表現

合理化防止

言い訳現実
「今は動作するはず」検証コマンドを実行せよ
「確信している」確信は証拠ではない
「今回だけ」例外はない
「リンターは通った」リンターはコンパイラではない
「エージェントが成功と言った」独立して検証せよ
「疲れている」疲労は言い訳にならない
「部分チェックで十分」部分は何も証明しない
「別の言葉だからルールは適用されない」精神は文言に優先する

重要なパターン

テスト:

✅ [テストコマンドを実行] [確認: 34/34合格] 「すべてのテストが合格」
❌ 「今は通るはず」/「正しく見える」

回帰テスト (TDD レッドグリーン):

✅ 記述 → 実行 (合格) → 修正を戻す → 実行 (必ず失敗する) → 復元 → 実行 (合格)
❌ 「回帰テストを書いた」(レッドグリーン検証なし)

ビルド:

✅ [ビルドを実行] [確認: 終了コード0] 「ビルド合格」
❌ 「リンターは通った」(リンターはコンパイルをチェックしない)

要件:

✅ 計画を再読 → チェックリスト作成 → 各項目を検証 → ギャップまたは完了を報告
❌ 「テスト合格、フェーズ完了」

エージェント委任:

✅ エージェントが成功を報告 → VCS差分を確認 → 変更を検証 → 実際の状態を報告
❌ エージェント報告を信頼

適用タイミング

常に以下の前:

  • 成功/完了の主張のあらゆるバリエーション
  • 満足のあらゆる表現
  • 作業状態に関するあらゆる肯定的な記述
  • コミット、PR作成、タスク完了
  • 次のタスクへの移動
  • エージェントへの委任

ルールは以下に適用される:

  • 正確なフレーズ
  • 言い換えや同義語
  • 成功の暗示
  • 完了や正しさを示唆するあらゆるコミュニケーション

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

diagnosing-superpowers

Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

dispatching-parallel-agents

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

executing-plans

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

finishing-a-development-branch

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

receiving-code-review

Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation

requesting-code-review

Use when completing tasks, implementing major features, or before merging to verify work meets requirements

subagent-driven-development

Use when executing implementation plans with independent tasks in the current session

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

test-driven-development

Use when implementing any feature or bugfix, before writing implementation code

using-git-worktrees

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback

using-superpowers

Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions

writing-plans

Use when you have a spec or requirements for a multi-step task, before touching code

writing-skills

Use when creating new skills, editing existing skills, or verifying skills work before deployment

関連スキル