fd-done

A task-closing command that compares completed work with the requested requirements, then can commit and push after confirmation.

In plain words
What is it for?
Use it after the required planning and verification steps to review changed files, summarize the result, and optionally commit and push.
Why use it?
It adds checks before closing a planned task and prevents closing when verification has not passed or blockers remain.

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-done
Clone the repo
git clone --depth 1 https://github.com/DVNghiem/FlowDeck
Per session 15 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,494 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.00015 $0.01494
Opus 5 $0.00008 $0.00747
Sonnet 5 $0.00003 $0.00299
Haiku 4.5 $0.00002 $0.00149

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

Security

Grade A, and why

fd-done 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 3d 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-done.md · 209 lines

How it starts

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

Done

Close the task: summarize what was built against what was asked, then commit and push.

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

Step 0: 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. Read STATE.md via planning-state action=read. Record status, plan_confirmed, blockers, steps_complete.

Step 1: Verify gate

/fd-done only runs after /fd-verify passed.

If status != "verified":

❌ Cannot close — /fd-verify has not passed for "<topic>".

Run /fd-verify first. If it reported failures, fix them and re-run it.

The agent MUST stop. The agent MUST NOT commit and MUST NOT update state.

The agent MUST also stop if blockers is non-empty, listing each blocker.

Step 2: Summarize built vs required

Read ~/.fd-plan/<slug>/<topic>/task.md and check every requirement and acceptance criterion against what actually landed.

Collect the changed files:

git diff --name-only HEAD
git log --oneline --no-merges <base>..HEAD

Present:

════════════════════════════════════════════════════
SUMMARY: <topic>
════════════════════════════════════════════════════

Requirements
  ✅ R-01: <requirement> — <where it landed>
  ✅ R-02: <requirement> — <where it landed>
  ⚠️  R-03: <requirement> — not implemented: <reason>

Acceptance Criteria
  ✅ <criterion>
  ⚠️  <criterion> — <gap>

Changed files: <N>
  <file 1>
  <file 2>
════════════════════════════════════════════════════

The agent MUST report gaps honestly. A requirement that was dropped or deferred MUST be stated as such. The agent MUST NOT quietly omit it.

Step 3: Ask for the commit message

Propose one in Conventional Commits form, derived from task.md:

Proposed commit message:

  <type>: <description>

  <body — what changed and why>

Use this message, edit it, or type SKIP to stop without committing.

Read the full file on GitHub · 209 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. 3d ago First seen · 209 lines · 15 tokens per session scan A 4197609ce332

Subscribe to this mod's changes

fd-done is a command published in the GitHub repository DVNghiem/FlowDeck (24 stars, last pushed 14d ago), licensed MIT. It adds 15 tokens to every session and 1,494 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.