cdd: Command for Claude Code

.claude/commands/cdd-implement.md

cdd-implement is a command for Claude Code from drabaioli/cdd. It costs 0 tokens per session (1,071 once invoked), scanned A, original, MIT.

A command that implements an approved plan from its plan and handoff files. It reads the requirements, updates the code and documentation, and creates a local commit in the existing feature worktree.

In plain words
What is it for?
Use it as the implementation step after a planning command, when the approved plan file and its requirements are available.
Why use it?
It keeps implementation tied to a plan that a human has already approved instead of making new decisions during coding. The handoff requirements provide a concrete check for whether the work is complete.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is drabaioli/cdd's own configuration. It tells Claude Code how to work on cdd 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 cdd configures →

Reuse

Borrowing it

Nothing to install: this file belongs to drabaioli/cdd. 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/drabaioli/cdd/main/.claude/commands/cdd-implement.md
Clone the repo
git clone --depth 1 https://github.com/drabaioli/cdd

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 cdd-implement

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/drabaioli/cdd/cdd-implement"><img src="https://agentmods.dev/badge/commands/drabaioli/cdd/cdd-implement.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,071 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.01071
Opus 5.5 $0.00000 $0.00428
Sonnet 5.5 $0.00000 $0.00214
Haiku 4.5 $0.00000 $0.00107

Measured 6d ago against content hash 0edf6fbb9d1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cdd-implement 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 6d 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/cdd-implement.md · 69 lines

How it starts

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

Implement the task from its approved plan file, update the docs, and commit locally: /cdd-implement (takes no argument).

This is the second half of the implementation cycle, run in a fresh context in the same feature worktree that /cdd-plan ran in. Its input is the plan file. That file exists because a human approved it at checkpoint 3, which is why this session needs no gate of its own — and why it must not quietly decide something the plan does not say.

1. Read the plan

Derive the task's paths from git — no argument is passed:

repo="$(basename "$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")")"
branch="$(git rev-parse --abbrev-ref HEAD)"
echo "plan:    ~/.cdd/handoffs/$repo/$branch.plan.md"
echo "handoff: ~/.cdd/handoffs/$repo/$branch.md"

Read the plan first, in full. Its ## Summary is your orientation; the rest is the detail.

Then read the handoff, for its ## Requirements — those acceptance criteria are the done-test, and they survived both windows precisely so that a plan which misread the intent is still caught here.

The plan's sections carry different weights, by design:

  • ## File map names the files to open and the conclusion already reached about each. Re-read those files — the plan cites repo facts rather than copying them because they are cheap for you to re-derive.
  • ## External findings is quoted verbatim because it cannot be re-derived here. Trust it; do not go re-run the searches. Each finding names what it is for — act on its disposition, and check a "to verify" finding the way ## Verification says.
  • ## Dead ends records approaches already tried and rejected. Do not re-explore them.
  • ## Open questions resolved records what the handoff deferred and what was agreed. Those answers are settled; do not reopen them unilaterally.

2. Deviation rule: stop and report, never improvise

If reality contradicts the plan, stop and report to the human. Do not silently pick a different approach, and do not fall back to re-deriving the task from the handoff. The plan was the thing that was approved; departing from it unsupervised discards the checkpoint.

Read the full file on GitHub · 69 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. 6d ago Changed 0edf6fbb9d1f
  2. 1mo ago Changed 497d4e06dca6
  3. 1mo ago First seen · 69 lines · 0 tokens per session scan A 8d569b00196b

Subscribe to this mod's changes

cdd-implement is a command published in the GitHub repository drabaioli/cdd (2 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,071 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-09-16.