PlanGate TDD Evidence Review

PlanGate TDD Evidence Review is a skill for Claude Code from s977043/river-review. It costs 68 tokens per session (3,067 once invoked), scanned A, original, MIT.

A checker for TDD evidence. TDD, or test-driven development, means writing a failing test before the implementation, making it pass, and then improving the code; this checker verifies records of those stages.

In plain words
What is it for?
It is for reviewing a TDD ledger alongside code changes and test cases to verify RED, GREEN, REFACTOR, and VERIFY evidence.
Why use it?
It detects claims of TDD that lack a real failing-test record, have incorrect stage order, or cannot be matched to the test cases.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the river-review plugin — 138 skills, 18 commands, 5 agents, 3 hooks shipped together

Good fit It is for reviewing a TDD ledger alongside code changes and test cases to verify RED, GREEN, REFACTOR, and VERIFY evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/plangate-tdd-evidence
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.

Any agent
npx skills add s977043/river-review --skill plangate-tdd-evidence
Clone the repo
git clone --depth 1 https://github.com/s977043/river-review

Made for: Claude Code.

Or install river-review, the plugin that ships this one along with the rest of its 138 skills, 18 commands, 5 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for PlanGate TDD Evidence Review

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/plangate-tdd-evidence/github.svg)](https://agentmods.dev/skills/s977043/river-review/plangate-tdd-evidence)
Your own site
<a href="https://agentmods.dev/skills/s977043/river-review/plangate-tdd-evidence"><img src="https://agentmods.dev/badge/skills/s977043/river-review/plangate-tdd-evidence/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for PlanGate TDD Evidence Review

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/river-review/plangate-tdd-evidence"><img src="https://agentmods.dev/badge/skills/s977043/river-review/plangate-tdd-evidence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,067 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.1 $0.00068 $0.03067
Opus 5 $0.00034 $0.01533
Sonnet 5 $0.00014 $0.00613
Haiku 4.5 $0.00007 $0.00307

Measured 8d ago against content hash 7d8fcc1ae859, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

PlanGate TDD Evidence Review 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 8d 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.

skills/upstream/plangate-tdd-evidence/SKILL.md · 151 lines

How it starts

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

Pattern declaration

Primary pattern: Reviewer Secondary patterns: Inversion Why: tdd-ledger のフェーズ別証跡を基準として妥当性を突き合わせる照合型レビューであり、必須 artifact(tdd-ledger)が揃わない場合は実行を止めるゲート(Inversion)も要する。

Goal / 目的

  • TDD を主張する実装について、tdd-ledger に記録された RED/GREEN/REFACTOR VERIFY フェーズの証跡が妥当かを検査する。
  • 「TDD したと主張するが RED 証跡が無い」「RED が偶然 pass している」「証跡が test-cases に対応しない」といった証跡の欠落・偽装を検知する。

Non-goals / 扱わないこと

  • テストコードの書き方・命名・カバレッジ品質(code-* 系 test scaffold skill の領域)。
  • plan / todo / test-cases と差分の整合(姉妹 skill plangate-exec-conformance の領域)。
  • 既存レビュー文書の W チェック(plangate-verification-audit の領域)。
  • すべての PR に TDD を要求すること(TDD が宣言・要求された変更のみが対象)。

Pre-execution Gate / 実行前ゲート

このスキルは、以下の条件のいずれか 1 つでも満たされない場合NO_REVIEW を返す(すべて満たされたときのみレビューを実行する)。

  • artifact として tdd-ledger が解決できている
  • tdd-ledger に 1 つ以上の phases[] エントリが含まれている
  • inputContext に diff が含まれ、レビュー対象の差分が空でない

ゲート不成立時の出力: NO_REVIEW: plangate-tdd-evidence — tdd-ledger artifact または差分が揃っていない

Gate と抑制条件の違い:

  • Gate = 実行するかどうかの判定(tdd-ledger が欠損していれば一切レビューしない)。
  • 抑制条件 = 実行した上で黙るかどうかの判定。

False-positive guards / 抑制条件

  • TDD が要求されない変更(ドキュメント・設定・生成物のみの差分で、ledger も TDD フェーズを記録していない)は指摘しない。
  • refactor_verifyrefactor が行われた場合のみ必須。リファクタを伴わない差分での欠如は指摘しない。
  • ledger が「TDD 対象外」と明記したフェーズ・タスクは対象外とする。
  • 証跡の妥当性が ledger だけでは判断できない場合は、断定せず [q] で確認する(推測で「偽装」と断定しない)。

抑制時の出力: 該当する指摘を出力しない(黙る)。

Rule / ルール

tdd-ledger.jsonphases[] を読み、各フェーズの妥当性を次のルールで検査する。

  1. RED の存在と妥当性
    • high-risk / TDD 宣言のある変更に tdd_red フェーズが存在するか確認する。
    • tdd_redexitCode != 0(テストが先に失敗した)であること。exitCode == 0 は「RED が偶然 pass」= 偽の RED として指摘する。
    • conclusion が、期待された失敗(対象機能の未実装)を説明しているか確認する。無関係なランタイムエラー・import 失敗での失敗は無効な RED として指摘する。
  2. GREEN の存在と対応
    • tdd_green フェーズが存在し exitCode == 0 であること。
    • tdd_green の対象が tdd_red と同じ挙動(同じ testCaseRefs / コマンド)を指しているか確認する。RED と無関係な GREEN は指摘する。
  3. REFACTOR VERIFY
    • 差分に整理・リファクタが含まれる場合、refactor_verifyexitCode == 0)が存在するか確認する。
  4. verification(TDD 以外の最終検証)
    • verification フェーズが記録されている場合は exitCode == 0 であることを確認する。exitCode != 0 は最終検証の失敗として指摘する。
    • verification は RED/GREEN を置き換えない。verification のみが存在し tdd_red / tdd_green を欠く場合は missing-tdd-red / missing-tdd-green の対象とする。
  5. test-cases との対応
    • phases[].testCaseRefstest-cases artifact のケース ID に対応づくか確認する。対応づかない証跡は tdd-evidence-not-linked-to-test-case として指摘する。
    • test-cases の受入挙動に対し、テストが mock のみを検証してビジネス境界を見ていないと読み取れる場合は指摘する。
  6. 不確実性の扱い
    • ledger の記述が曖昧でフェーズ妥当性が判断できない場合は、断定せず [q] として質問形式で返す。

Read the full file on GitHub · 151 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. 8d ago First seen · 151 lines · 68 tokens per session scan A 7d8fcc1ae859

Subscribe to this mod's changes

PlanGate TDD Evidence Review is a skill published in the GitHub repository s977043/river-review (3 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 3,067 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

testing-strategy

Design test strategies and test plans with coverage targets. Complements /draft:coverage which measures what this skill plans. Auto-loaded by /draft:implement before TDD.

drafthq/draft · 38 tokens

test-audit

Audit test suites for T1-T4 violations using AST analysis, mock detection, and multi-stage synthesis. Invoke when user asks to audit tests, check test quality, find mock violations, review test effectiveness, or inspect test suites for over-mocking. Triggers automatic rewrites when quality gates fail.

QBall-Inc/the-bulwark · 0 tokens

plan

Analyzes architecture, selects patterns, assesses testability, then decomposes work into ordered TDD tasks with exact verification commands and explicit acceptance mapping. Works from an approved spec (zuvo:brainstorm output) or directly from a user-provided description.

greglas75/zuvo · 53 tokens

deep-plan

Creates detailed, sectionized, TDD-oriented implementation plans through research, stakeholder interviews, and multi-LLM review. Use when planning features that need thorough pre-implementation analysis.

piercelamb/deep-plan · 39 tokens

clean-code

This skill should be used when the user asks to "refactor code", "review code quality", "apply clean code principles", "check for code smells", "improve code design", "do a clean code review", "apply SOLID principles", "fix naming", "reduce complexity", or when performing the refactor phase of a TDD cycle.

t1/tdder · 75 tokens

deep-implement

Implements code from /deep-plan section files with TDD methodology, code review, and git workflow. Use when implementing plans created by /deep-plan.

piercelamb/deep-implement · 35 tokens