cdd: Command for Claude Code

.claude/commands/cdd-bootstrap.md

cdd-bootstrap is a command for Claude Code from drabaioli/cdd. It costs 0 tokens per session (2,884 once invoked), scanned C, original, MIT.

A guided command for creating a new project from the CDD workflow, a process that first defines the project and records its plan and documentation.

In plain words
What is it for?
Run `/cdd-bootstrap` in the CDD repository to define a new project and scaffold it. It is for new projects, not adapting an existing codebase.
Why use it?
It helps turn an initial discovery conversation into a prepared project with its core documents and roadmap already filled in.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./tools/bootstrap-cdd-project.sh \.

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-bootstrap.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-bootstrap

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/drabaioli/cdd/cdd-bootstrap"><img src="https://agentmods.dev/badge/commands/drabaioli/cdd/cdd-bootstrap.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 2,884 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.02884
Opus 5.5 $0.00000 $0.01154
Sonnet 5.5 $0.00000 $0.00577
Haiku 4.5 $0.00000 $0.00288

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

Security

Grade C, and why

cdd-bootstrap 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 27d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

Then remove the overlay: `rm -rf "$OVERLAY"`.
.claude/commands/cdd-bootstrap.md · 134 lines

How it starts

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

Scaffold a new greenfield project on the CDD workflow: /cdd-bootstrap (takes no argument).

Run this command from a CDD-repo session (it needs the CDD repo's template/ and bootstrap-cdd-project.sh). This command exists only in the CDD repo; it deliberately has no counterpart in template/.claude/commands/ (it operates on a new target project, so downstream projects have no use for it — see the process doc, Section 2.7). It is the greenfield sibling of /cdd-retrofit: /cdd-retrofit adapts an existing project, /cdd-bootstrap creates a new one.

This is a guided command, not a brief-to-files converter. The discovery conversation is part of the job: you walk the user through defining the project, then encode the result into the initial docs and roadmap, then scaffold the project in a single bootstrap invocation. The generated project starts with a real, filled-in overview, CLAUDE.md, and roadmap — not the template's pre-filled "survey the codebase" bootstrap phase, which is for files-only installs.

The command takes no argument: the project's name, directory, and location all emerge from the discovery conversation, so there is nothing meaningful to pass up front. The target path is proposed and confirmed in step 4, once the identifiers are settled.

Checkpoint discipline: confirm the project definition (step 1), then the draft roadmap (step 2), then the two identifiers and the target location (steps 3–4) — each before moving on. Nothing is rendered until all are approved. The scaffold commit is created only after the roadmap is approved. Outward-facing actions (creating a GitHub repo, editing ~/.bashrc) are confirmed separately and never done silently.

1. Guided discovery

Have a conversation to define the project. Do not dump a rigid questionnaire; ask in natural batches, probe vague or one-word answers, and reflect back what you heard. Cover, at minimum:

  • What it is — one paragraph, plain terms.
  • Goals — why it exists; the problem it solves or outcome it produces; what success looks like.
  • What it does — the high-level capabilities, coarse-grained.
  • What it explicitly does not do — the non-goals. Push for these; they are load-bearing and easy to skip.
  • Constraints — language/platform, hard technical limits, regulatory/business constraints, compatibility, deadlines.
  • Architecture intentions — intended high-level shape: major components, how they relate, external boundaries, structural principles the project commits to.
  • Audience — who consumes it (end users, other services, a team, future-you).
  • Engineering floor — what the project commits to for tested behaviour, continuous integration, lint & format, and dependency & toolchain hygiene (the negotiable rows of the template contract). Ask this as one batch: nothing exists yet to detect, so the answers are commitments, and most of them will honestly be expected.
  • Where issues and code review live — the tracker (where issues live) and the code host (where pull requests are reviewed). Always ask; never assume. Offer GitHub (Issues + pull requests) as the default answer. The answer becomes the project's capability bindings in .cdd/ (process doc Section 2.16), written by the bootstrap script in step 6:
    • GitHub — bind both to the shipped GitHub adapters.
    • Jira for issues — ask for the Jira site (e.g. acme.atlassian.net) and the project key (e.g. ABC) only. Never ask for credentials: tell the user they set JIRA_EMAIL and JIRA_API_TOKEN in their own shell. The code host is asked separately.
    • GitLab — for either capability or both (gitlab.com or a self-managed instance). Ask for the GitLab URL (default gitlab.com) and the project path (e.g. group/project) only. Never ask for credentials: tell the user they set GITLAB_TOKEN (a token with the api scope) in their own shell.
    • Anything CDD ships no adapter for (Bitbucket, …) — say in one line that no binding is written for it and the issue and PR features skip until one is bound; a project adapter can be written later against doc/architecture/capability-adapters.md.

Read the full file on GitHub · 134 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. 27d ago Changed · +1 lines 50dc62c52596
  2. 28d ago Changed 9cac14cfe95e
  3. 29d ago Changed · +8 lines aca4473026b9
  4. 2mo ago First seen · 125 lines · 0 tokens per session scan C 72bfa4f1d24b

Subscribe to this mod's changes

cdd-bootstrap 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 2,884 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.