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.
curl -O https://raw.githubusercontent.com/zd8899/TDAD/main/.claude/commands/review-commit.mdgit clone --depth 1 https://github.com/zd8899/TDADWrote 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.
[](https://agentmods.dev/commands/zd8899/tdad/review-commit)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
.mdfiles 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
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.
- 2mo ago First seen · 214 lines · 0 tokens per session scan A 37d5b9fac025
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.
Other commands, from other repositories
pr-reviewer
Review a Git branch as a PR against the base branch (auto-resolved — main/master) judged by THIS repo's contract (CLAUDE.md + .claude/skills/). Three-dot diff, route changed paths to skills, verify (eslint/prettier/tsc + tests), tiered report + confidence. Optional gated fix + commit after the report.
prp-commit
Quick commit with natural language file targeting: describe what to commit in plain English.
prepare-implementation-review
Post reviewer-facing evidence on a pull request.
pr-package
Prepare a GitHub PR delivery package (branch, commits, PR title and body, reviewer notes) from the real git diff against an explicit base branch, persisted as PRPACKAGE.md, never inventing work outside the diff. Use when scope is done and diff is stable. Do not use mid-implementation, for a branch name (use…
pr-description
Write a pull request description that helps reviewers: what changed, why, and how to verify, from a diff.
remove-deadcode
Remove unused code from this project with ultrawork mode, LSP-verified safety, atomic commits.