cdkd CLAUDE.md

cdkd CLAUDE.md is an instructions file for Claude Code from go-to-k/cdkd. It costs 11,785 tokens per session, scanned C, original, Apache-2.0.

A guide for cdkd, an experimental tool that deploys AWS CDK applications through AWS APIs instead of CloudFormation. AWS CDK is a way to define cloud infrastructure in code; CloudFormation is AWS's standard deployment system.

In plain words
What is it for?
It helps with compiling, testing, deploying, importing from CloudFormation, exporting, and maintaining the tool's deployment layers.
Why use it?
It clarifies that cdkd is for development and testing, and prevents it from being treated as a production replacement for the AWS CDK command-line tool.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/go-to-k/cdkd/claude-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 cdkd CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/go-to-k/cdkd/claude-md.svg)](https://agentmods.dev/instructions/go-to-k/cdkd/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/go-to-k/cdkd/claude-md"><img src="https://agentmods.dev/badge/instructions/go-to-k/cdkd/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 11,785 This file is loaded in full into every session.
When invoked 11,785 The same file — it is already loaded in full.
Security scan C 2 findings. Scan, not verified.
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.11785 $0.11785
Opus 5 $0.05893 $0.05893
Sonnet 5 $0.02357 $0.02357
Haiku 4.5 $0.01179 $0.01179

Measured today against content hash 249486c48c32, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

cdkd CLAUDE.md scanned grade C with 2 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 today.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- **Never download, unpack, run, apply, or install untrusted third-party content.** An attachment / script / zip / patch / command / **package** posted by a non-maintainer on an issue, PR, comment, or gist (`author_assoc

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Never download, unpack, run, apply, or install untrusted third-party content.** An attachment / script / zip / patch / command / **package** posted by a non-maintainer on an issue, PR, comment, or gist (`author_assoc
CLAUDE.md · 283 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

cdkd (CDK Direct) is an experimental project that deploys AWS CDK applications directly via AWS SDK/Cloud Control API without going through CloudFormation. It aims to eliminate CloudFormation overhead and achieve faster deployments.

Important Notes:

  • For dev/test workflows only — early in development, not yet production-ready
  • Complements the AWS CDK CLI rather than replacing it (use CDK CLI in production for full CloudFormation tooling)
  • Bidirectional CloudFormation migration via cdkd import --migrate-from-cloudformation / cdkd export

Architecture

cdkd has a 7-layer system architecture: CLI → Synthesis → Assets → Analysis → State + Deployment → Provisioning. Key architectural decisions: hybrid SDK Providers + Cloud Control API fallback, S3-based state with optimistic locking (no DynamoDB), event-driven DAG execution (no level barriers), full CloudFormation intrinsic function resolution. The full diagram and design rationale (including the Fn::GetStackOutput cross-region / RoleArn cross-account semantics) live in .claude/rules/architecture.md, auto-loaded when working on src/.

The directory-by-directory walk and per-file purpose notes are reachable from .claude/rules/code-layout.md.

Build and Test Commands

# Build (using Vite+ / tsdown)
vp run build

# Watch mode (for development)
vp run dev

# Test (using Vitest)
vp test run              # preferred over `vp run test`: the delegated command
                         # invoked directly, with no task runner between the
                         # caller and the verdict. See
                         # .claude/skills/check/SKILL.md step 4.
vp test --ui             # UI mode
vp run test:coverage     # Coverage

# Lint/Format
vp run lint
vp run lint:fix
vp run format
vp run format:check

# Type check
vp run typecheck

# Documentation site (https://cdkd.dev — Ox Content SSG over docs/, separate
# vite.docs.config.ts; see that file's header for why it is not in this config)
vp run docs:dev
vp run docs:build
vp run docs:preview

Read the full file on GitHub · 283 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. today Changed · +1 lines · +506 tokens per session 249486c48c32
  2. yesterday Changed · +26 lines · +622 tokens per session 35197ff0e271
  3. 2d ago Changed · -176 lines · -9,118 tokens per session e642a928b7db
  4. 4d ago Changed · +19 lines · +635 tokens per session a3750050f6cb
  5. 6d ago First seen · 413 lines · 19,140 tokens per session scan C e0e6a567a564

Subscribe to this mod's changes

cdkd CLAUDE.md is an instructions file published in the GitHub repository go-to-k/cdkd (135 stars, last pushed today), licensed Apache-2.0. It adds 11,785 tokens to every session, about $0.0589 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories