cdd: Command for Claude Code

.claude/commands/cdd-small-change.md

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

A command for completing a small, already-defined code change in one session, using a feature worktree. A worktree is a separate working copy of a Git repository for isolated changes.

In plain words
What is it for?
Use it for a pre-scoped small change from its handoff through implementation. It fits Git-based development workflows and leaves merging, pull requests, and review as separate steps.
Why use it?
It avoids the longer planning stage for tasks that were explicitly judged small, while keeping the later merge and review steps. It provides an approval point before implementation.

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-small-change.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-small-change

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/drabaioli/cdd/cdd-small-change"><img src="https://agentmods.dev/badge/commands/drabaioli/cdd/cdd-small-change.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,334 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.01334
Opus 5.5 $0.00000 $0.00534
Sonnet 5.5 $0.00000 $0.00267
Haiku 4.5 $0.00000 $0.00133

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

Security

Grade A, and why

cdd-small-change 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-small-change.md · 82 lines

How it starts

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

Make a small, pre-stated change end to end in one session: /cdd-small-change (takes no argument).

This is the whole build half of the small-change lane — it replaces /cdd-plan and /cdd-implement for a task the human declared small at scoping. It runs in the task's feature worktree, which cdd-worktree <branch> opened on this command because the task's state record marks the lane.

There is no plan file on this lane, and there will not be one. That is why this session carries its own approval gate (step 3) rather than inheriting one: the standard lane's implementing session needs no gate because the plan was already approved, and nothing was approved here yet.

The tail of the cycle is unchanged: /cdd-merge-base if the base moved, then /cdd-pre-pr, the PR, and /cdd-process-pr. This lane shortens the middle, not the review.

1. Read the handoff

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 "handoff: ~/.cdd/handoffs/$repo/$branch.md"

Read it in full. A small-change handoff is deliberately thin: its ## Requirements are the done-test (normally one or two criteria), and ## Notes carries any caveat or roadmap edit agreed at scoping. It carries no ## Implementation prompt — on this lane there is nothing to say that the requirements do not already say — and no ## Research, because this lane never researches.

Then read only what the change itself touches. Do not rebuild the project's full context: a task that needs it is not small, which is what step 2 is for.

2. Confirm the task is still small (the off-ramp)

The eligibility heuristic, as it was applied at scoping:

If you can state the finished diff in one sentence, before any exploration, it's small. If in doubt, take the standard lane.

Two bounds, and both must hold. Discovery: there is nothing to find out — that is the one-sentence test. Durability: there is no reasoning worth carrying into the next window, because this lane writes no plan file and only the requirements plus the diff reach /cdd-pre-pr and the reviewer. The bar is not line count.

Read the full file on GitHub · 82 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 36c641dacaec
  2. 25d ago Changed e8ec5d825b7b
  3. 1mo ago First seen · 82 lines · 0 tokens per session scan A f341054ca3c1

Subscribe to this mod's changes

cdd-small-change 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,334 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-19.