fd-verify

A verification command that runs the project's tests and other checks for the active task. It can also run browser tests for web projects and reviews affected files before a task is closed.

In plain words
What is it for?
Use it after implementation and before closing a task. It detects common test runners, runs browser checks when configured, and reports explicitly when no test setup is available.
Why use it?
It prevents a task from being marked complete when tests fail, required checks are missing, or regressions have not been examined.

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/dvnghiem/flowdeck/fd-verify
Clone the repo
git clone --depth 1 https://github.com/DVNghiem/FlowDeck
Per session 25 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,408 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00025 $0.01408
Opus 5 $0.00013 $0.00704
Sonnet 5 $0.00005 $0.00282
Haiku 4.5 $0.00003 $0.00141

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

Security

Grade A, and why

fd-verify 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.

docs/commands/fd-verify.md · 166 lines

How it starts

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

Verify

Run the verification pipeline for the active topic. /fd-done will not close a task until this passes.

Input: $ARGUMENTS — optional --topic=<slug> to target a topic other than the active one.

Pre-flight

  1. Check ~/.fd-plan/<slug>/STATE.md exists — if not: "No planning workspace. Run /fd-task first."
  2. Resolve <topic> from --topic, else from topic in STATE.md.
  3. Confirm steps_complete is non-empty — if empty, warn: "No steps completed yet. Run /fd-execute first."

Step 1: Run tests

Run the project's full test suite. Detect the runner from the project manifest — npm test / bun test for Node, cargo test for Rust, pytest for Python, go test ./... for Go.

All tests must pass. No failures, no unexplained skips.

If no test runner is configured, the agent MUST report that explicitly. The agent MUST NOT pass silently: "No test script found — cannot verify. Configure a test runner before /fd-done."

Step 2: Browser tests for web projects

Detect a web project by the presence of a frontend framework in the manifest (react, vue, svelte, next, astro) or a public/index.html.

  • Playwright is configured (a playwright.config.* exists) → run the E2E suite and fold the result into the verdict.
  • Web project without Playwright → suggest adding it, and note that UI behavior is unverified in this run. The agent MUST NOT fail the verdict on its absence.
  • Not a web project → skip this step entirely.

Step 3: Regression check on affected files

Read ~/.fd-plan/<slug>/<topic>/affect.md and take the Affected Files list as the regression scope.

For each affected file:

  • Confirm it has test coverage. Uncovered changed files are a HIGH finding.
  • Use fdx-impact to find dependents not listed in affect.md, and verify their tests still pass.

Log any dependent that affect.md missed — that is a planning gap worth recording.

Step 4: Review and scan

Code review (@reviewer) — over the files changed since the task began:

  • Security: secrets, injection, auth gaps
  • Quality: critical bugs, missing error handling, TDD discipline
  • Conventions: naming, patterns, import style
  • Test coverage ≥ 80% for changed files — below that is a HIGH finding
  • Any override_log entries from /fd-execute --override

Read the full file on GitHub · 166 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 · 166 lines · 25 tokens per session scan A 876b141755da

Subscribe to this mod's changes

fd-verify is a command published in the GitHub repository DVNghiem/FlowDeck (24 stars, last pushed 14d ago), licensed MIT. It adds 25 tokens to every session and 1,408 once invoked, about $0.0001 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-08-30.