cdkd: Skill for Claude Code

.claude/skills/run-integ/SKILL.md

run-integ is a skill for Claude Code from go-to-k/cdkd. It costs 34 tokens per session (5,612 once invoked), scanned A, original, Apache-2.0.

An integration-test runner for cdkd, a command-line tool for working with AWS CDK applications. Integration tests deploy real AWS resources, check them, and usually remove them afterward.

In plain words
What is it for?
It is for building the project, listing available integration tests, synthesizing stacks, deploying test resources, checking them, and cleaning them up.
Why use it?
It verifies that cdkd works end to end with an actual AWS account, beyond tests that only run locally.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool; positional $N argument.

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/run-integ/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 run-integ

README.md
[![agentmods](https://agentmods.dev/badge/skills/go-to-k/cdkd/run-integ.svg)](https://agentmods.dev/skills/go-to-k/cdkd/run-integ)
Your own site
<a href="https://agentmods.dev/skills/go-to-k/cdkd/run-integ"><img src="https://agentmods.dev/badge/skills/go-to-k/cdkd/run-integ.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,612 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00034 $0.05612
Opus 5 $0.00017 $0.02806
Sonnet 5 $0.00007 $0.01122
Haiku 4.5 $0.00003 $0.00561

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

Security

Grade A, and why

run-integ scanned grade A with 1 finding 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.

Makes network callslowCapability

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

curl -s -o /dev/null -w '%{http_code}\n' --max-time 15 https://registry-1.docker.io/v2/ # 401 = HOST networking fine
.claude/skills/run-integ/SKILL.md · 384 lines

How it starts

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

Integration Test Runner

Run integration tests against a real AWS account: deploy actual resources, verify, clean up.

Arguments

  • test-name: which test (see ls tests/integration/). If unspecified, ask via AskUserQuestion showing the options.
  • all: run all tests
  • --synth-only: synthesis only, skip deploy/destroy
  • --no-destroy: deploy but don't destroy (debugging)
  • --deploy-args "<args>": forward extra args to the cdkd deploy invocation verbatim (opt-in deploy flags; destroy is unaffected).

Steps

  1. Build first: vp run build so dist/ is current.

  2. List available tests: ls tests/integration/ — never a hardcoded list.

  3. Determine state bucket: account via aws sts get-caller-identity --query Account --output text, then cdkd-state-{accountId} (region-free default since PR #62). If absent, fall back to legacy cdkd-state-{accountId}-us-east-1 and note the deprecation in the report.

  4. Pre-flight orphan scan (mandatory — fail fast on prior-run leftovers instead of going through CREATE + rollback): a prior run killed mid-deploy leaves orphans whose names match the stack about to deploy; cdkd's diff does not see them (not in state), so the deploy attempts CREATE and collides. Synth first (to learn stack name + resource types), then scan:

    # Always (cheap, broadly applicable):
    aws s3 ls s3://<bucket>/cdkd/<StackName>/ --region us-east-1
    aws iam list-roles --query 'Roles[?contains(RoleName, `<StackName>`)].RoleName' --output text
    aws lambda list-functions --region us-east-1 \
      --query 'Functions[?contains(FunctionName, `<StackName>`)].FunctionName' --output text
    
    # When the template uses Lambda EventSourceMapping (orphan ESM = AlreadyExists + rollback):
    aws lambda list-event-source-mappings --region us-east-1 \
      --query 'EventSourceMappings[?contains(FunctionArn, `<StackName>`)].[UUID,FunctionArn]' --output text
    
    # When the template uses VPC + Lambda VpcConfig (hyperplane ENIs outlive the function):
    aws ec2 describe-network-interfaces --region us-east-1 \
      --filters "Name=description,Values=AWS Lambda VPC ENI-<StackName>*" \
      --query 'NetworkInterfaces[].[NetworkInterfaceId,Status]' --output text
    

Read the full file on GitHub · 384 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 · +22 lines 5e5c461bf1c8
  2. yesterday Changed · +40 lines aa1f144617a6
  3. 3d ago Changed · -114 lines 285bc0314211
  4. 7d ago First seen · 436 lines · 34 tokens per session scan A a375d3c88261

Subscribe to this mod's changes

run-integ is a skill published in the GitHub repository go-to-k/cdkd (135 stars, last pushed today), licensed Apache-2.0. It adds 34 tokens to every session and 5,612 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.