Verification Disciplineのロゴ

Verification Discipline

コミュニティ
rlaope
verification-discipline

Invoke before claiming any task is done — defines what counts as evidence of completion (execution, not inspection) and how to verify at the layer the requirement actually lives at.

概要

公開者rlaope
リポジトリultraprompt
スキル名verification-discipline
スター
36
フォーク
6
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rlaope/ultraprompt.git /tmp/ultraprompt
mkdir -p .claude/skills
cp -r /tmp/ultraprompt/skills/verification-discipline .claude/skills/verification-discipline
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Verification Discipline

Status: v0.1 baseline draft — derived from the case catalog and axis definitions; awaiting trace evidence from Fable 5.1 case runs.

When to apply

  • You are about to say "done", "fixed", "implemented", or "this should work" in any form.
  • You wrote or changed code but have not yet executed the changed path.
  • The requirement is stated in terms of runtime behavior: performance, concurrency, crash recovery, rendering, protocol compliance, or a user-visible flow.
  • A bug fix exists but the original failure has not been re-triggered against the fixed code.
  • Tests pass, but the requirement lives above the unit level (e.g., "the page loads fast", "no duplicate charge under load").
  • You feel confident from reading the code alone. That feeling is the trigger, not the evidence.

Core loop

  1. State the completion claim as an observable. Before verifying anything, write down what "done" means as something the world can show you: "GET /orders returns 200 with the new field", "loss decreases for 500 steps", "the shell survives kill -9 of a child process". If you cannot phrase the claim as an observation, the requirement is not yet understood — go pin it down first.
  2. Identify the layer the requirement lives at, and verify at that layer.
    • User-visible behavior → drive the UI or hit the API end-to-end.
    • Throughput / latency → benchmark under representative load, not a single request.
    • Durability / crash safety → actually crash the process and restart it.
    • Algorithm correctness → property tests or adversarial inputs, not one example. A unit test only closes a unit-level claim. Never let it close a claim from a higher layer.
  3. Choose the strongest evidence tier you can afford. In descending strength:
    • (a) reproduction of the original failing scenario, now passing;
    • (b) end-to-end execution of the real flow with observed output;
    • (c) integration test exercising the changed path;
    • (d) unit test of the changed logic;
    • (e) type-check / lint / build success. Tier (e) alone never supports a completion claim; it only supports "it compiles".
  4. Run the actual thing. Execute the command, start the server, send the request, render the page, launch the training run. Capture real output — exit codes, response bodies, timings, screenshots, log lines. Quote or reference the observed output, never a paraphrase of what it should be.
  5. For bug fixes: reproduce first, then confirm the flip. Demonstrate the failure on the pre-fix code (or a minimal repro), apply the fix, re-run the identical repro, and show the state change fail → pass. A fix without a reproduction is a hypothesis, not a fix, and must be reported as one.
  6. Probe the boundary, not just the happy path. Run at least one input at the edge of the claim: empty input, concurrent access, the rotation/truncation case, the retry path, the largest realistic size. One happy-path run verifies existence, not correctness.
  7. Check for negative side effects. Re-run the existing test suite, or the adjacent flows sharing code with your change. "My new thing works" and "I broke nothing else" are separate claims needing separate evidence.
  8. Report exactly what you observed, including the gaps. State the evidence tier reached ("verified end-to-end", "unit-tested only, no load test run") and enumerate what remains unverified. If verification failed or was impossible in this environment, say so plainly and label the work "unverified" — never "should work".
  9. If any observation contradicts the claim, the claim is false. Do not rationalize the discrepancy away, and do not soften the report to "mostly working". Return to the fix loop with the contradicting observation as the new failing case.

Heuristics

  • "The code looks right" has zero evidentiary weight; rank it below a passing build.
  • If you never saw a code path execute, assume it has a bug; a large fraction of unexecuted new paths do.
  • Match evidence scope to claim scope: a p99 latency claim needs a percentile from many requests, not one timing.
  • Prefer the failing case as the permanent test fixture: the strongest regression test is the exact repro that used to fail.
  • A test written after the fix must be shown to fail when the fix is reverted; otherwise it may test nothing.
  • Benchmarks need a baseline: report before/after from the same machine and run count, never a lone "after" number.
  • Flaky evidence is not evidence: if a verification run passes intermittently, the flakiness itself is the next bug.
  • Concurrency claims need repetition: one clean concurrent run proves little; run the race N times (N ≥ 5) before trusting it.
  • Time-box environment fights: if you cannot execute after ~15 minutes of setup attempts, stop, report "unverified" with the concrete blocker, and hand the user the exact verification command to run.
  • Silence is not success for long-running processes: verify servers/training/consumers by positive signals (health endpoint, loss curve, consumed offsets), not by absence of errors in the first seconds.
  • One command the user can run to see the result themselves beats three paragraphs of explanation.
  • When output is visual (UI, chart, TUI), the evidence is a rendered artifact — a screenshot or dumped frame — not the CSS.

Anti-patterns

  • Completion by inspection. Declaring done after reading the diff and reasoning it through mentally. → Corrective: run the changed path and quote its actual output before writing any completion sentence.
  • Layer mismatch. Unit tests pass, so the user-facing feature is declared working — though nothing ever rendered the page or hit the endpoint. → Corrective: add one verification at the layer where the requirement was stated; treat lower-layer green as necessary but insufficient.
  • Fixing without reproducing. Patching the suspected cause and closing the bug without ever having seen the failure fire. → Corrective: build the minimal repro first; if the failure cannot be triggered, the diagnosis is unconfirmed and the report must say exactly that.
  • Hedged completion language. "This should now work", "I believe this resolves it" — hedges that smuggle an unverified claim past the reader. → Corrective: replace the hedge with the precise state: either "verified: " or "unverified: ".
  • Happy-path-only verification. One clean run on the default input, then done — while the requirement was about load, concurrency, or failure handling. → Corrective: derive verification inputs from the requirement's stress words (concurrent, large, crash, retry, rotate) and run those cases.
  • Suppressing bad news. A verification run half-failed, and the report leads with the passing half. → Corrective: report failures first, verbatim, with the failing command; a faithful failure report is a successful verification outcome, not a defeat.

Worked example

Illustrative construction, not a recorded run.

Task: "Fix the double-decrement bug — two concurrent purchases of the last item both succeed."

  • Agent restates the claim as an observable: with stock=1, firing 2 concurrent purchase requests must yield exactly one 200 and one 409, and final stock must be 0.
  • Agent identifies the layer: this is a concurrency requirement, so a single-threaded unit test cannot close it. Evidence must come from actual concurrent execution against the real store.
  • Agent reproduces first: writes a 20-line script firing 50 parallel requests at stock=10 against the current code. Observes final stock = -7 and 17 successes over 10 items. Failure confirmed and quantified — this script is now the fixture.
  • Agent applies the fix (SELECT ... FOR UPDATE around the read-decrement-write).
  • Agent re-runs the identical script: 10 successes, 40 rejections, final stock = 0. Runs it 5 more times because race outcomes are probabilistic — all clean.
  • Agent probes the boundary: stock=1 with 2 requests, and stock=0 with 1 request. Both behave exactly as specified.
  • Agent checks side effects: row locking could hurt throughput. Benchmarks the endpoint before/after under the same 50-way load: p50 12ms → 14ms. Re-runs the full order-service test suite: green.
  • Agent reports: "Verified by concurrent repro: pre-fix oversell of 17/10 reproduced; post-fix, 6 consecutive runs sold exactly 10/10 with final stock 0. Cost: p50 +2ms under 50-way contention. Not verified: behavior across DB failover — repro script is at scripts/oversell_repro.sh if you want to run it against that setup."
  • Note the shape of the final claim: every assertion is tied to an observed number, and the unverified remainder is named explicitly instead of hidden.

Trace evidence

CaseSessionWhat it showed
awaiting case runs——

同梱ファイル

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

よくある質問

AIスキル「Verification Discipline」では何ができますか?

Invoke before claiming any task is done — defines what counts as evidence of completion (execution, not inspection) and how to verify at the layer the requirement actually lives at.

TypingMindでVerification Disciplineを使うメリットは何ですか?

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

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

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

Verification Disciplineを使えるAIモデルはどれですか?

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

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

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

AIスキル「Verification Discipline」は無料ですか?

はい。rlaopeがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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