cdkd: Skill for Claude Code

.claude/skills/hunt-bugs/SKILL.md

hunt-bugs is a skill for Claude Code from go-to-k/cdkd. It costs 62 tokens per session (2,669 once invoked), scanned C, original, Apache-2.0.

A workflow for finding bugs in cdkd, a tool that deploys AWS Cloud Development Kit applications, by testing real AWS resources and CloudFormation configurations. It covers deployment, updates, destruction, and cleanup.

In plain words
What is it for?
Use it for exploratory bug hunts across common AWS patterns such as S3 notifications, Lambda settings, API gateways, IAM permissions, cross-stack references, and resource updates.
Why use it?
Some infrastructure problems only appear when a stack is changed or removed, not when it is first created. Real AWS deployments reveal failures that reading source code may miss.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; 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/skills/hunt-bugs/SKILL.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 hunt-bugs

README.md
[![agentmods](https://agentmods.dev/badge/skills/go-to-k/cdkd/hunt-bugs.svg)](https://agentmods.dev/skills/go-to-k/cdkd/hunt-bugs)
Your own site
<a href="https://agentmods.dev/skills/go-to-k/cdkd/hunt-bugs"><img src="https://agentmods.dev/badge/skills/go-to-k/cdkd/hunt-bugs.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,669 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00062 $0.02669
Opus 5 $0.00031 $0.01334
Sonnet 5 $0.00012 $0.00534
Haiku 4.5 $0.00006 $0.00267

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

Security

Grade C, and why

hunt-bugs 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.

The scan reads SKILL.md. This mod also ships 1 executable file (bughunt-track.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

`pip install` / `npm i` / `curl | sh` any of it — read only the comment body

Makes network callslowCapability

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

`pip install` / `npm i` / `curl | sh` any of it — read only the comment body
.claude/skills/hunt-bugs/SKILL.md · 186 lines

How it starts

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

cdkd Bug Hunt

Find latent cdkd bugs the way real users hit them: write a small CDK app that uses a resource / config / CFn notation cdkd has not exercised yet, deploy it to real AWS, and watch what breaks — on deploy AND destroy. Reading the source finds suspected bugs; deploying finds real ones. Exploratory and possibly expensive — acceptable only because every deployed resource is destroyed and verified gone ("Cleanup is non-negotiable" below, enforced by a markgate gate).

Core principles

  1. Many-people-hit beats niche. Prioritize daily CDK patterns (S3→Lambda notifications, BucketDeployment, Lambda logRetention, AwsCustomResource, LambdaRestApi, adding a GSI / changing a property on redeploy, grant* IAM, cross-stack refs) over exotic edge cases.
  2. UPDATE and DESTROY are where bugs hide. CREATE usually works; the high-value paths are redeploy-with-a-changed-property (replacement classification, silent drops) and delete (custom-resource onDelete, ordering, state cleanup). Always test an update and always run destroy.
  3. Check coverage first — hunt in genuinely-uncovered territory:
    grep -rln "BucketDeployment\|addEventNotification\|logRetention\|AwsCustomResource\|LambdaRestApi\|NodejsFunction" tests/integration/
    
  4. Parallelize, but cap at ~4-5 in flight. One CDK app, several stacks. Pre-synth once, then deploy from the assembly — parallel deploys that each re-synth collide on the shared cdk.out lock. npx cdk synth --all -q once, then node dist/cli.js deploy <Stack> -a /tmp/cdkd-bughunt/cdk.out ... per stack. (Without -a, deploy serially.)

Workflow

1. Pick targets

Use the area hint, else 3-5 common-but-untested patterns. Favor cheap, fast resources (S3 / SSM / IAM / Lambda / DynamoDB / SNS / SQS / Logs / Events / API GW); run slow ones (RDS / ElastiCache / CloudFront) sparingly.

2. Scaffold a throwaway app

vp run build first (the CLI runs from dist/). One CDK app under /tmp/cdkd-bughunt/, one stack per pattern, names prefixed CdkdBughunt<Pattern>. pnpm install --ignore-workspace, then npx cdk synth --all -q. State bucket: cdkd-state-$(aws sts get-caller-identity --query Account --output text). Record every stack you are about to deploy into the bug-hunt sentinel (this arms the cleanup gate):

.claude/skills/hunt-bugs/bughunt-track.sh add CdkdBughuntS3Notify CdkdBughuntBucketDeploy ...

Read the full file on GitHub · 186 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · +2 lines 6fcb5bb74d48
  2. 4d ago Changed · -66 lines 1766d0a051e3
  3. 6d ago Changed · +13 lines 68c7e54326e6
  4. 8d ago First seen · 237 lines · 62 tokens per session scan C e98e29747b0b

Subscribe to this mod's changes

hunt-bugs is a skill published in the GitHub repository go-to-k/cdkd (137 stars, last pushed today), licensed Apache-2.0. It adds 62 tokens to every session and 2,669 once invoked, about $0.0003 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 skills, from other repositories

tdd

Test-Driven Development workflow for ALL Prowler components (UI, SDK, API). Trigger: ALWAYS when implementing features, fixing bugs, or refactoring - regardless of component. This is a MANDATORY workflow, not optional.

prowler-cloud/prowler · 50 tokens

ak-test

Set up testing and debug common issues in Agent Kernel projects. This skill guides you through configuring the built-in test framework, writing agent tests, choosing test modes (score, llm, fallback), and troubleshooting common errors.

yaalalabs/agent-kernel · 47 tokens

finfocus-routing

Configure and debug FinFocus intelligent plugin routing. Use when setting up multi-plugin routing, configuring priority and fallback rules, writing pattern matching for resource types, testing route selection, or debugging why a plugin isn't receiving cost queries. Triggers on: "configure routing", "plugin priority"…

rshade/finfocus · 101 tokens

aws-cdk-mcp-server-mcp

AWS Cloud Development Kit (CDK) best practices, infrastructure as code patterns, and security compliance with CDK Nag.

Friz-zy/ai-capability-registry · 33 tokens

aws-testing

Testing strategies for AWS workloads. Use when writing unit tests, integration tests, contract tests, mocking AWS services, or setting up quality gates and CI/CD test pipelines.

eliecer2000/kiro-bootstrap · 36 tokens

python-runtime

Python toolchain configuration and best practices. Use when setting up Ruff, pytest, mypy type hints, dependency management, virtual environments or Python project standards.

eliecer2000/kiro-bootstrap · 34 tokens