cdd: Command for Claude Code

.claude/commands/cdd-next-step.md

cdd-next-step is a command for Claude Code from drabaioli/cdd. It costs 0 tokens per session (5,433 once invoked), scanned C, original, MIT.

A command that chooses the next roadmap or issue task and writes a handoff file for a later coding session.

In plain words
What is it for?
Use it to select a roadmap item, work from an issue number, or describe a new task without changing repository files in the current session.
Why use it?
It separates planning from implementation so a fresh session can start with a clear description of the intended work.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. 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-next-step.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-next-step

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/drabaioli/cdd/cdd-next-step"><img src="https://agentmods.dev/badge/commands/drabaioli/cdd/cdd-next-step.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 5,433 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.05433
Opus 5.5 $0.00000 $0.02173
Sonnet 5.5 $0.00000 $0.01087
Haiku 4.5 $0.00000 $0.00543

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

Security

Grade C, and why

cdd-next-step scanned grade C with 1 finding 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

**Recommend one lane in a single line**, naming which bound decided it — then do as the user says, in either direction, unconditionally. This is checkpoint 2, and the posture is the same as every other structural choice
.claude/commands/cdd-next-step.md · 290 lines

How it starts

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

Scope the next roadmap task and produce a handoff file for a fresh plan session.

This is the exploratory-session command. Run on the main worktree. Output is a handoff file that a later, isolated plan session (/cdd-plan) will consume. This session does not modify any file in the repo; the only artifact it produces is the handoff file under ~/.cdd/handoffs/cdd/.

0. Mode: roadmap-driven, intent-driven, or issue-driven

This command has one optional argument. Dispatch on its shape, trying the rows in order:

$ARGUMENTS Mode Branches at
empty roadmap-driven §3
issue or issues issue-driven, browse §0b
every whitespace-separated token matches the tracker's ref_pattern issue-driven, direct §0b
anything else intent-driven §3-intent

issue / issues is a fixed keyword and is checked before the pattern, so browsing stays available whatever the backend calls its references.

The argument splits on whitespace, and the direct row matches only when every token matches — one task may be sourced from several issues (/cdd-next-step 97 12). A single token is the common case and behaves exactly as before; a mixed argument (one token matching, one not) is not issue-driven and falls to intent-driven, where the whole string is read as a task prompt.

What a reference looks like is the tracker's decision, not this command's. Resolve the tracker down the ladder — project, then machine — and take the first file present:

for c in .cdd/tracker ~/.cdd/adapters/tracker; do [ -e "$c" ] && { echo "$c"; break; }; done

If one resolved, run describe and take .ref_pattern — an ERE — as the shape of a reference:

<adapter> describe    # JSON on stdout; hermetic, so it needs no network and no credentials

Use it only if the file is executable and describe exits 0, parses as JSON, reports capability tracker, and reports a contract this CDD supports (currently 1). Otherwise — not executable, a non-zero exit, unparseable, another capability, or wrong version — the adapter is installed but broken: say so in one line naming its path, and stop the command. Do not try a lower rung: an installed adapter declares which tracker this project uses, so a lower rung would answer from the wrong system. With nothing resolved there is no ref_pattern, so no argument is issue-shaped: the direct row never matches, and issue / issues still dispatches to §0b, which stops with the install line.

Resolution done only to classify the argument is otherwise silent. The line naming which rung served is printed in §0b, where a tracker call is actually made: a line in every session in every repo is noise, and noise is how a load-bearing line stops being read.

Every mode first runs §0a (checkout freshness), §1 (read context) and §2 (stale-handoff sweep); the "Branches at" column is only where the mode-specific path begins after that.

  • Roadmap-driven: pick the next item off the roadmap. Run §1–§8 as written.
  • Intent-driven: the task is already chosen by the user, so skip candidate proposal (§3 is replaced by §3-intent below). Use this when the user wants to start something off-roadmap rather than picking the next checkbox.
  • Issue-driven: a thin front-end onto intent-driven mode — the intent text comes from a tracker item instead of being typed. §0b resolves the item, then the flow is exactly intent-driven (§1 adaptive load, §3-intent, §4 onward).

All modes converge on the same machinery from §4 onward (stale-handoff sweep in §2 runs in all of them). Do not fork the flow beyond what §0b, §1, and §3 describe.

Read the full file on GitHub · 290 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 · +18 lines 87f2e283fe4a
  2. 28d ago Changed · -10 lines f3322e7d768d
  3. 1mo ago Changed 60b177c50af0
  4. 1mo ago Changed · +39 lines e6d0c9c43913
  5. 1mo ago Changed · -5 lines scan E → C 6ce286d6501f
  6. 1mo ago Changed · +19 lines scan C → E 33a26cfd3d50
  7. 1mo ago Changed · +21 lines d43b48d96c22
  8. 2mo ago First seen · 208 lines · 0 tokens per session scan C 24ba2d8549e5

Subscribe to this mod's changes

cdd-next-step 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 5,433 tokens. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.