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,275 once invoked), scanned A, 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 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/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/github.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/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 hunt-bugs

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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,275 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.00062 $0.02275
Opus 5.5 $0.00025 $0.00910
Sonnet 5.5 $0.00012 $0.00455
Haiku 4.5 $0.00006 $0.00228

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

Security

Grade A, and why

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

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.

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/skills/hunt-bugs/SKILL.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 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 using 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).

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 · 164 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. 1mo ago Changed · -5 lines 2e8dcfbade6f
  2. 1mo ago Changed 1960eff1d613
  3. 1mo ago Changed · -7 lines e6ab1bb73055
  4. 1mo ago Changed · -13 lines scan C → A c142ddf7d31a
  5. 1mo ago Changed · +3 lines 9317734737c7
  6. 1mo ago Changed · +2 lines 6fcb5bb74d48
  7. 1mo ago Changed · -66 lines 1766d0a051e3
  8. 1mo ago Changed · +13 lines 68c7e54326e6
  9. 2mo 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 (156 stars, last pushed today), licensed Apache-2.0. It adds 62 tokens to every session and 2,275 once invoked, about $0.0002 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 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

testing-patterns

Skill "testing-patterns" from seandkendall/kiro-config, covering testing patterns, python lambda test (pytest + moto), react component test (vitest + rtl), coverage commands and playwright quick reference.

seandkendall/kiro-config · 40 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