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 (6,617 once invoked), scanned C, 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 →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is L=../../../docs/_generated/integ-last-run.tsv; T="<test-name>".

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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 6,617 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 154
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium MCP Rug Pull · line 354
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
  • medium MCP Rug Pull · line 356
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
How audits are shown
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.06617
Opus 5.5 $0.00014 $0.02647
Sonnet 5.5 $0.00007 $0.01323
Haiku 4.5 $0.00003 $0.00662

Measured 4d ago against content hash 93b64a8805a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

run-integ 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 4d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

will not clear it — run with that override, then `rm -rf` the dir (an ECR

Makes network callslowCapability

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

name which is down first: `curl` the registry from the HOST, `curl` it from
.claude/skills/run-integ/SKILL.md · 426 lines

How it starts

The opening of the file, as written. The whole thing — 426 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 (destroy is unaffected).

Steps

  1. Rebase, then build: git fetch origin and rebase onto current origin/main (merge it when a force push is denied) BEFORE the run — a stale base verifies code other than what will merge, and nothing warns. Then vp run build so dist/ is current. Never build beside a live fixture in this tree: any build (/check, /verify-pr, vp run verify, vp run runtime:smoke, a building fixture, …) rewrites dist/, and the fixture's next node dist/cli.js (its cleanup trap's too) dies ERR_MODULE_NOT_FOUND. In a set, run each building fixture (grep -lE '^\s*\(cd [^)]*&& vp run build[ )]' <dir>/*.sh; a bare vp run build also matches error text) alone, BEFORE the others. After a build beside a live run, re-scan per steps 6-7, record that fixture FAIL, and re-run it.

  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). If absent, fall back to the legacy cdkd-state-{accountId}-us-east-1 and note the deprecation.

  4. Pre-flight orphan scan (mandatory): a prior run killed mid-deploy leaves orphans matching the stack about to deploy, and cdkd's diff does not see them, so the deploy attempts CREATE and collides. Pick the region first: us-east-1, unless the fixture's verify.sh header names a constraint; its last ledger note shows a region that passed. In a parallel set, each fixture whose header has a SAFETY NOTE (bootstrap-marker or asset-storage ownership, #4063) gets its OWN region, probed for what that header needs absent or present, passed via AWS_REGION or the header's region variable. A fixture that runs cdkd gc runs ALONE, after the set: gc refuses while ANY stack holds a lock, its batch-mates' included. Every resource-scan --region, AWS_REGION and synth/deploy/destroy --region in steps 4-7 then uses the fixture's region. Synth first (for the stack name and resource types), then scan:

Read the full file on GitHub · 426 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. 4d ago Changed · +3 lines 93b64a8805a1
  2. 9d ago Changed · +5 lines 9e02f0ce319c
  3. 10d ago Changed · +2 lines fef0ac9dd358
  4. 12d ago Changed · -2 lines 01819bf38e41
  5. 14d ago Changed · +4 lines 2cd608a25386
  6. 18d ago Changed 4317f60a0159
  7. 20d ago Changed 4fa9125a9786
  8. 21d ago Changed · +9 lines 8b0e62d52f2e
  9. 23d ago Changed · +2 lines 624a88d9fa6a
  10. 24d ago First seen · 403 lines · 34 tokens per session scan C 708bf0c52b5d

Subscribe to this mod's changes

run-integ is a skill published in the GitHub repository go-to-k/cdkd (156 stars, last pushed today), licensed Apache-2.0. It adds 34 tokens to every session and 6,617 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.