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.
curl -O https://raw.githubusercontent.com/drabaioli/cdd/main/.claude/commands/cdd-pre-pr.mdgit clone --depth 1 https://github.com/drabaioli/cddWrote 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.
[](https://agentmods.dev/commands/drabaioli/cdd/cdd-pre-pr)<a href="https://agentmods.dev/commands/drabaioli/cdd/cdd-pre-pr"><img src="https://agentmods.dev/badge/commands/drabaioli/cdd/cdd-pre-pr/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.
<a href="https://agentmods.dev/commands/drabaioli/cdd/cdd-pre-pr"><img src="https://agentmods.dev/badge/commands/drabaioli/cdd/cdd-pre-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.05936 |
| Opus 5.5 | $0.00000 | $0.02374 |
| Sonnet 5.5 | $0.00000 | $0.01187 |
| Haiku 4.5 | $0.00000 | $0.00594 |
Grade A, and why
cdd-pre-pr 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.
How it starts
The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Run a pre-PR checklist for the current branch. Compare against the base branch to identify all changes. This is a verification session: it runs CI gates, code-reviews the diff, and reconciles documentation against the changes.
This session is fresh and separate from the implementation session by design, so that the verification work is not biased by the context that produced the change. Any "propose to the user" step in this command is a proposal to the user running this session.
0. Resolve the base branch
BASE_BRANCH=$(cdd-state get base_branch 2>/dev/null)
# With no base recorded, look for a code-host adapter: project, then machine; the first file present wins.
[ -z "$BASE_BRANCH" ] && for c in .cdd/code-host ~/.cdd/adapters/code-host; do [ -e "$c" ] && { CODE_HOST="$c"; break; }; done
If $CODE_HOST is set, check it before using it: the file is executable, and "$CODE_HOST" describe exits 0, parses as JSON, and reports capability code-host and contract 1. If any of that fails, the adapter is installed but broken — say so in one line naming its path, and stop; do not fall back to git, because an installed adapter declares which code host this project uses. If it is usable, say in one line which adapter serves, then take its answer:
BASE_BRANCH=$("$CODE_HOST" default-branch | jq -r '.branch // empty') # exit 3 (unsupported) or a failure leaves it empty
Whatever is still empty falls back to git, as a bare branch name:
BASE_BRANCH=${BASE_BRANCH:-$(git symbolic-ref --quiet --short refs/remotes/origin/HEAD 2>/dev/null | sed 's#^origin/##')}
BASE_BRANCH=${BASE_BRANCH:-main}
This reads the task's recorded base branch — the branch it was cut from and merges back into — and falls back to the code host's default branch when none was recorded — through the code-host adapter when one is installed, else from git (unchanged behaviour for single-integration-branch projects). Use $BASE_BRANCH wherever main/origin/main appears in git commands below.
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.
- 6d ago Changed 9384686d4e4c
- 24d ago Changed 0f363ab0faa9
- 25d ago Changed 8e62b34f3fe2
- 27d ago Changed 61cc0976c859
- 28d ago Changed · -9 lines 01db0de94d14
- 29d ago Changed cb0d14a00be8
- 1mo ago Changed eb924aae3ac2
- 1mo ago Changed · +12 lines 3373bfcfc1be
- 1mo ago Changed · +16 lines 52f207533ee2
- 1mo ago First seen · 238 lines · 0 tokens per session scan A eeac794c8965
cdd-pre-pr 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,936 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-08-31.
Other commands, from other repositories
address-pr-feedback
Systematically address PR review comments. Fetches all threads, categorizes by status (acknowledged, silently fixed, unaddressed), and guides user through posting replies and implementing fixes with explicit approval.
create-pr
Create a pull request with proper template discovery and population.
advanced-code-review-context
Advanced Code Review Phase 2: Context Analysis - load previous reviews, PR history, declined items.
codex-review
Run OpenAI Codex code review on current changes or a specific branch/commit.
request-review-plan
Request Code Review Phases 1-2: Planning scope and assembling reviewer context.
merge-worktree-resolve
Phase 3: Conflict Resolution - delegate to resolving-merge-conflicts with interface contract context.