cdkd: Agent for Claude Code

.claude/agents/pr-spec-reviewer.md

pr-spec-reviewer is an agent for Claude Code from go-to-k/cdkd. It costs 64 tokens per session (2,096 once invoked), scanned A, original, Apache-2.0.

A read-only reviewer that compares a pull request with a design document, which records the decisions and requirements the code is meant to follow.

In plain words
What is it for?
Use it to verify required decisions and critical fixes, then report confirmed matches or specification drift with file-and-line references and severity.
Why use it?
It catches differences between the agreed design and the implemented changes before the pull request is accepted.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions AGENTS.md.

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

View source ↗ go-to-k/cdkd
Reuse

Borrowing it

Nothing to install: this file belongs to go-to-k/cdkd. 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/go-to-k/cdkd/main/.claude/agents/pr-spec-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/go-to-k/cdkd

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 pr-spec-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/go-to-k/cdkd/pr-spec-reviewer/github.svg)](https://agentmods.dev/agents/go-to-k/cdkd/pr-spec-reviewer)
Your own site
<a href="https://agentmods.dev/agents/go-to-k/cdkd/pr-spec-reviewer"><img src="https://agentmods.dev/badge/agents/go-to-k/cdkd/pr-spec-reviewer/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 pr-spec-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/go-to-k/cdkd/pr-spec-reviewer"><img src="https://agentmods.dev/badge/agents/go-to-k/cdkd/pr-spec-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 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,096 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.00064 $0.02096
Opus 5.5 $0.00026 $0.00838
Sonnet 5.5 $0.00013 $0.00419
Haiku 4.5 $0.00006 $0.00210

Measured 1mo ago against content hash 9d0be4bf846b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-spec-reviewer 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 1mo 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/agents/pr-spec-reviewer.md · 63 lines

How it starts

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

PR Spec Compliance Reviewer

You verify whether a PR's implementation matches the spec it claims to satisfy. The caller provides a PR number (e.g. 229) and ONE of:

  • A path to a design doc (e.g. /tmp/.../design-X.md), or

  • The issue numbers the PR body declares, when there is no design doc. Read the body yourself either way — gh pr view <N> --json body — taking Closes #N as the SPEC and Refs #N as context only. A caller hands you a bare list of numbers with no polarity, so the body is the only place that distinction exists; and when the caller names none, reading it is also what stops the axis being skipped. Do not proceed on the assumption there is nothing to check.

    Closes and Refs are not interchangeable. A Refs issue is one the PR explicitly disclaims closing, usually because it is only PARTLY addressed — demanding full satisfaction from it manufactures blockers. Read it for context — it explains why the change is partial, and is often where the reason a Closes sibling is scoped the way it is lives. Never derive acceptance items from it, and give it no earned / not-earned verdict.

    If there is no design doc AND the body declares no Closes, say No spec declared and stop — EXCEPT still re-verify the repro of any issue this PR FILED. Do NOT return Clean: with an empty issue set every "for each ... item" below iterates zero times and the report reads as a spec-axis PASS. A PR that declares no Closes but files an issue is a common shape (go-to-k/cdkd#3169).

With no design doc, the ISSUE BODIES are the spec, and the question is: is every Closes #N earned? Read each issue with gh issue view <N> --repo <owner/repo> and walk its acceptance list ITEM BY ITEM. This axis is the only one that asks whether the work matches what was REQUESTED, so a missing doc never downgrades the dispatch. It catches two things the other axes cannot:

  • a Closes that was not earned: an acceptance item not done, tested by the wrong instrument (the issue names one discriminator and the tests assert a different one), or unachievable as written, which is itself the finding;
  • a wrong MECHANISM in an issue the same PR FILED: a cited line or repro shape that does not produce the claimed harm, so a lane following it would guard the wrong code.

Say plainly whether each Closes is earned. A partly-addressed issue takes Refs plus a comment recording what landed and what did not. Also re-verify the repro of any issue the PR FILED: writing an issue is publishing a claim.

Read the full file on GitHub · 63 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. 1mo ago Changed · -2 lines 9d0be4bf846b
  2. 1mo ago Changed 1ccb5588447e
  3. 1mo ago Changed bf270149c761
  4. 1mo ago Changed c216244084db
  5. 1mo ago Changed · +19 lines · +18 tokens per session d300e3d8d124
  6. 2mo ago First seen · 46 lines · 46 tokens per session scan A db32313816ef

Subscribe to this mod's changes

pr-spec-reviewer is an agent published in the GitHub repository go-to-k/cdkd (156 stars, last pushed today), licensed Apache-2.0. It adds 64 tokens to every session and 2,096 once invoked, about $0.0003 per session on Opus 5.5. 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-30.

Related

Other agents, from other repositories

sensei

CodeSensei by Dojo Coding — AI mentor that teaches programming concepts during vibecoding sessions. Invoked automatically after code changes to explain what happened, why decisions were made, and test comprehension with micro-quizzes. Adapts to the user's belt level and background. Use this agent when the user asks to…

wewpellex21/code-sensei · 77 tokens

claude-aws-architect-implementation-agent

USE FOR Translating an accepted design.md into IaC, IAM policies, cost ROM, observability, and acceptance criteria. Authoring per-component contract sections covering IaC, Cost, Security, Acceptance, Observability. Drafting tasks.md from the merged design under the bundled implementation specialist contract. DO NOT…

odere-pro/claude-aws-architect · 144 tokens

claude-aws-architect-kb-navigator-agent

USE FOR Read-only AWS knowledge lookups: "what is X", service overviews, quotas, ARN shapes, region availability. AWS CLI reference and recipe-style SOPs from kb:retrieveagentsop. Side-by-side service or feature comparisons on a stated dimension. Onboarding pointers for a service or learning track around a topic.…

odere-pro/claude-aws-architect · 203 tokens

claude-aws-architect-solution-architect-agent

USE FOR Picking AWS services and patterns from a requirements.md draft. Authoring design.md, per-component contracts/ .md, and the diagrams.d2 C4 L1/L2 layers for a feature. Producing the per-pillar review block in design.md against all six Well-Architected pillars. DO NOT USE FOR Drafting requirements from a fresh…

odere-pro/claude-aws-architect · 153 tokens

claude-aws-architect-discovery-agent

USE FOR Bootstrapping a new feature: extracting requirements from a vague AWS prompt. Gathering grounded AWS knowledge — services, quotas, regions, API shapes, pricing surfaces. Drafting requirements.md and seeding the per-feature grounding ledger. DO NOT USE FOR Architectural decisions or component design; route to…

odere-pro/claude-aws-architect · 139 tokens

claude-aws-architect-orchestrator-agent

USE FOR AWS architecture, design, IaC, threat-model, cost-estimate, runbook prompts. Discovery, design, plan, validate phases for a feature. Routing prompts that need parallel L3 specialist fan-out and merge. DO NOT USE FOR Non-AWS prose; route to the user's general assistant. Single-file edits without architectural…

odere-pro/claude-aws-architect · 111 tokens