TDAD: Command for Claude Code

.claude/commands/review-commit.md

review-commit is a command for Claude Code from zd8899/TDAD. It costs 0 tokens per session (1,823 once invoked), scanned A, original, MIT.

A review-and-commit procedure for the TDAD VS Code extension, a tool for building apps inside Microsoft’s code editor. TDAD means Test-Driven AI Development and follows a Plan, Spec, Test, Fix cycle across core logic, technical services, user interface, and VS Code integration.

In plain words
What is it for?
It helps inspect changes, report architectural findings, verify tests and layer boundaries, and commit approved work.
Why use it?
It provides an ordered architecture review before changes are committed. This helps catch incorrect imports, missing tests, and violations between software layers.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is zd8899/TDAD's own configuration. It tells Claude Code how to work on TDAD itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TDAD configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zd8899/TDAD. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zd8899/TDAD/main/.claude/commands/review-commit.md
Clone the repo
git clone --depth 1 https://github.com/zd8899/TDAD

Made for: Claude Code.

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 review-commit

README.md
[![agentmods](https://agentmods.dev/badge/commands/zd8899/tdad/review-commit/github.svg)](https://agentmods.dev/commands/zd8899/tdad/review-commit)
Your own site
<a href="https://agentmods.dev/commands/zd8899/tdad/review-commit"><img src="https://agentmods.dev/badge/commands/zd8899/tdad/review-commit/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 review-commit

Your own site · 80×15
<a href="https://agentmods.dev/commands/zd8899/tdad/review-commit"><img src="https://agentmods.dev/badge/commands/zd8899/tdad/review-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,823 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.00000 $0.01823
Opus 5.5 $0.00000 $0.00729
Sonnet 5.5 $0.00000 $0.00365
Haiku 4.5 $0.00000 $0.00182

Measured 2mo ago against content hash 37d5b9fac025, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review-commit 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 2mo 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.

.claude/commands/review-commit.md · 214 lines

How it starts

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

Review & Commit — TDAD VS Code Extension

You are an expert software architect reviewing and committing changes to the TDAD (Test-Driven AI Development) VS Code extension.

Follow every phase below in order. Do NOT skip phases. Report findings clearly to the user before making any changes.


CONTEXT: TDAD Architecture

What This Project Is

TDAD is a VS Code extension for workflow-based app building with multi-model AI code generation. It enforces a Plan > Spec > Test > Fix cycle where automated tests validate every line, ensuring working software.

Clean Architecture Layers

Layer Path Purpose Import Rules
Core /src/core/ Business logic (ai, nodes, templates, testing, workflows, prompts) NEVER imports from infrastructure/presentation/vscode-integration
Infrastructure /src/infrastructure/ Technical implementations (database, parsing, storage, navigation) MAY import from core
Presentation /src/presentation/webview/ React UI components (.tsx, handlers, hooks, utils) MAY import from core and infrastructure
VSCode Integration /src/vscode-integration/ VSCode APIs (bootstrap, controllers, providers) Coordinates all layers
Shared /src/shared/ Cross-layer code (config, types, utils) Imported by ALL layers
Styles /src/styles/ All CSS files (.css) go here ONLY N/A
Entry /src/extension.ts Extension entry point N/A

Key Subsystems

  • Prompt System: Template-based .md files in /src/core/prompts/ with Handlebars-like syntax. Copied to .tdad/prompts/ for user customization.
  • Autopilot: Automated BDD > Test > Run+Fix pipeline. Supports single-node and multi-feature (regression) modes.
  • Golden Packet: The context packet sent to AI agents with specs, test results, traces, and rules.
  • Canvas: React-based workflow editor rendered in a VSCode webview.

PHASE 1: DISCOVERY

Run in parallel:

git status
git diff --stat
git diff
git log --oneline -5

Read the full file on GitHub · 214 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. 2mo ago First seen · 214 lines · 0 tokens per session scan A 37d5b9fac025

Subscribe to this mod's changes

review-commit is a command published in the GitHub repository zd8899/TDAD (80 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,823 tokens. 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-08-30.