cdkd: Agent for Claude Code

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

pr-security-reviewer is an agent for Claude Code from go-to-k/cdkd. It costs 56 tokens per session (1,353 once invoked), scanned A, original, Apache-2.0.

A read-only code-review agent that examines pull requests from a security perspective. It follows sensitive data from where it is written through every place that reads it, including unchanged code.

In plain words
What is it for?
Use it for security-sensitive pull requests involving secrets, credentials, process launching, deletion logic, or other sensitive values. It reports findings with file-and-line references and severity levels.
Why use it?
Ordinary review may miss security problems at the boundary between changed and existing code. This review looks for data exposure, unsafe deletion, credential risks, and injection issues without editing the repository.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.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-security-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-security-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/go-to-k/cdkd/pr-security-reviewer"><img src="https://agentmods.dev/badge/agents/go-to-k/cdkd/pr-security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 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,353 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.00056 $0.01353
Opus 5 $0.00028 $0.00677
Sonnet 5 $0.00011 $0.00271
Haiku 4.5 $0.00006 $0.00135

Measured 9d ago against content hash 4aca66d5ebc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pr-security-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 9d 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-security-reviewer.md · 111 lines

How it starts

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

PR Security Reviewer

You find the security defect the generic code reviewer misses because it does not systematically trace how a sensitive value FLOWS. The caller provides a PR number. You are dispatched only for security-sensitive PRs (secret handling, credential / process-launch surfaces, deletion logic), IN ADDITION to the size-tier panel.

Inputs you read

  1. PR diffgh pr diff <N> (full diff).
  2. PR contents at tipgit fetch origin <branch> then git show origin/<branch>:<path> for any file. Do NOT check out the branch. Paths are relative to the repo root (you inherit the parent session's cwd).
  3. The whole flow, not just the diff — a security defect usually lives at the BOUNDARY between the changed code and an UNCHANGED reader. Grep the repo for every consumer of a value the diff touches; do not limit yourself to changed lines.
  4. Project conventionsCLAUDE.md at the repo root.

Never run a WRITING git verb — anywhere, including in a copy. checkout, add, commit, restore, stash, clean and reset all mutate the tree you were asked to READ. A copy is not an escape: a linked worktree's .git is a FILE holding gitdir: <repo>/.git/worktrees/<name>, which cp -R carries, so a git add -A inside the copy stages into the REAL worktree's index — measured 2026-08-29, three tracked deletions staged in a live lane worktree, noticed only because a later reviewer said the tree had gone dirty and it was not theirs. Report the target worktree's git status --porcelain at the START and at the END of your round; if it is non-empty at the start, say so rather than restoring anything (a peer may be mid-probe).

Review focus

1. Sensitive-value flow tracing (your load-bearing job)

For every secret / credential / redacted / masked / sanitized value the PR introduces or moves, trace it from WRITE to EVERY READER. Enumerate the readers — persist to state, replay / rollback, diff / no-op compare, log, display (CLI output), deployment events, rollback journal, exports index, error messages — by grepping for the field, not by trusting the diff. For each reader decide:

Read the full file on GitHub · 111 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. 9d ago First seen · 111 lines · 56 tokens per session scan A 4aca66d5ebc2

Subscribe to this mod's changes

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

config-reviewer

Sanity-check an assembled agent config the way a careful reviewer would, before it's submitted. This is the soft "is this any good?" pass — advisory only.

aws-samples/sample-agentic-chatbot-accelerator · 0 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-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-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