tdd-verify-complete

A TDD completion-check command that verifies whether a feature's planned test cases and implementation are finished. It reviews the earlier development records and checks that the tests pass.

In plain words
What is it for?
Use it at the end of a TDD task to review the requirements, test cases, refactoring record, task note, and test results for completion.
Why use it?
It helps catch unfinished test cases or incomplete work before a task is treated as done.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/classmethod/tsumiki/tdd-verify-complete
Clone the repo
git clone --depth 1 https://github.com/classmethod/tsumiki
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,096 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00046 $0.05096
Opus 5 $0.00023 $0.02548
Sonnet 5 $0.00009 $0.01019
Haiku 4.5 $0.00005 $0.00510

Measured 2d ago against content hash aa2c1c3ee661, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tdd-verify-complete scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to tdd-refactor — 582 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

legacy/commands/tdd-verify-complete.md · 409 lines

How it starts

The opening of the file, as written. The whole thing — 409 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TDD開発でテストケースの実装が完全に完了しているかを検証します。

context

出力ディレクトリ="./docs/implements" 機能名={{feature_name}} タスクID={{task_id}} 要件名={{requirement_name}} メモファイル=./docs/implements/{要件名}/{{task_id}}/{feature_name}-memo.md 要件定義ファイル=./docs/implements/{要件名}/{{task_id}}/{feature_name}-requirements.md テストケースファイル=./docs/implements/{要件名}/{{task_id}}/{feature_name}-testcases.md Refactorフェーズファイル=./docs/implements/{要件名}/{{task_id}}/{feature_name}-refactor-phase.md 元タスクファイル=docs/tasks/{taskfile}.md

step

  • $ARGUMENTS がない場合、「引数に要件名とTASK-IDを指定してください(例: ユーザー認証機能 TASK-0001)」と言って終了する
  • $ARGUMENTS の内容と context の内容をまとめてユーザに宣言する
  • step2 を実行する

step2: コンテキスト準備

検証コンテキストの準備を実行する:

  1. タスクノートの読み込み(唯一のコンテキストソース)

    • ./docs/implements/{要件名}/{{task_id}}/note.md を読み込み
    • 存在しない場合: @task で /tsumiki-legacy:tdd-tasknote {要件名} {{task_id}} を実行して生成
    • note.mdには技術スタック、開発ルール、関連実装、設計文書、テスト関連情報、注意事項が集約済み
  2. 直前フェーズの出力を読み込み

    • ./docs/implements/{要件名}/{{task_id}}/{feature_name}-requirements.md - 要件定義
    • ./docs/implements/{要件名}/{{task_id}}/{feature_name}-testcases.md - テストケース定義
    • ./docs/implements/{要件名}/{{task_id}}/{feature_name}-refactor-phase.md - Refactorフェーズの結果
    • ./docs/implements/{要件名}/{{task_id}}/{feature_name}-memo.md - 開発履歴メモ(存在する場合)
  3. 元タスクファイルを直接読み込み

    • docs/tasks/{taskfile}.md - タスクの完了状態を確認
    • プロジェクト全体のタスク進捗を把握

読み込み完了後、step3 を実行する

step3: 既存テストのグリーン状態確認

  • 必須: @task で全ての既存テストが成功していることを確認
  • テスト結果のスコープ分類:
    • テストケースファイル({feature_name}-testcases.md)に記載されたテストファイルを「スコープ内」とする
    • それ以外の失敗テストは「スコープ外」として分類
  • スコープ内テスト失敗がある場合: 要改善として記録(後のstep7で差し戻し判定に使用)
  • スコープ外テスト失敗がある場合: memoファイルに記録し、auto-debug対応を推奨として記録
  • この工程では修正禁止: テスト失敗を発見してもここでは修正しない
  • テスト実行時間の確認:
    • 総実行時間が30秒以上の場合は記録
    • 2秒以上かかるテストファイルを特定して記録
    • 遅いテストがある場合は以下を推奨として記録:
      📝 推奨事項: テスト実行速度の改善
      
      総実行時間: XX秒(30秒以上)
      遅いテストファイル:
      - test/user.test.js: 15秒
      - test/integration.test.js: 8秒
      
      改善方法:
      1. `/tsumiki:dcs:test-performance-analysis` で詳細分析
      2. `/tsumiki:test-optimization-patterns` でパターンを確認
      3. 次のTDDサイクルで段階的に改善
      
  • テスト状態(スコープ内/スコープ外それぞれ)を記録し、step4 に進む

Read the full file on GitHub · 409 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 409 lines · 46 tokens per session scan A aa2c1c3ee661

Subscribe to this mod's changes

tdd-verify-complete is a command published in the GitHub repository classmethod/tsumiki (974 stars, last pushed 26d ago), licensed MIT. It adds 46 tokens to every session and 5,096 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to tdd-refactor, differing in 582 lines, and is treated as a copy.