cdkd: Skill for Claude Code

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

pick-integ is a skill for Claude Code from go-to-k/cdkd. It costs 68 tokens per session (2,928 once invoked), scanned A, original, Apache-2.0.

A helper that recommends which integration tests to run. Integration tests check whether different parts of a program work together.

In plain words
What is it for?
Use it before a release, after several merges, or when deciding which `/run-integ` commands should run first.
Why use it?
Running all roughly 95 tests can take hours, and choosing tests by guesswork can miss recently affected areas. It orders tests using how long ago they ran and which code recent commits changed.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; positional $N argument; 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/pick-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 pick-integ

README.md
[![agentmods](https://agentmods.dev/badge/skills/go-to-k/cdkd/pick-integ/github.svg)](https://agentmods.dev/skills/go-to-k/cdkd/pick-integ)
Your own site
<a href="https://agentmods.dev/skills/go-to-k/cdkd/pick-integ"><img src="https://agentmods.dev/badge/skills/go-to-k/cdkd/pick-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 pick-integ

Your own site · 80×15
<a href="https://agentmods.dev/skills/go-to-k/cdkd/pick-integ"><img src="https://agentmods.dev/badge/skills/go-to-k/cdkd/pick-integ.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,928 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00068 $0.02928
Opus 5.5 $0.00027 $0.01171
Sonnet 5.5 $0.00014 $0.00586
Haiku 4.5 $0.00007 $0.00293

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

Security

Grade A, and why

pick-integ 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 12d 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.

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/pick-integ/SKILL.md · 176 lines

How it starts

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

Integ Test Picker

Decide which integration tests to run right now, ranked by two signals: how stale the last run is (from the committed ledger) and whether recent changes touch the area a test exercises. It RECOMMENDS only; the orchestrator runs the chosen tests via /run-integ.

The ranking is a running ORDER, not a budget (AGENTS.md → "Cost is not a tiebreaker"): when several tests plausibly cover the touched code, run all of them, and prefer a broad-set fixture whenever the change is cross-cutting. Priorities decide what runs FIRST; a plan too long for one session is handed forward per "Running a large plan across sessions" — never silently truncated, and the wrap-up names exactly which tests were not run.

Inputs

  • Optional positional base-ref (default origin/main): the diff base. Use the last release tag when picking post-merge; origin/main for a branch.

Data sources

  1. Ledger docs/_generated/integ-last-run.tsv (committed, one row per test; written by /run-integ on every run):

    • Stale: age > the integ-destroy gate TTL (14 days) — past that the marker expires, so a clean result no longer proves today's AWS behavior.
    • Expiring soon: age 12–14d. The ledger accumulates in sweep-shaped cohorts (one sweep stamps many rows with one timestamp), so a strict >14d boolean answers "nothing" or "everything" — always report this tier.
    • Failing: result == FAIL — always a candidate.
    • Never-run: a fixture directory with NO ledger row — highest staleness.
  2. Recent changes: git diff <base-ref>...HEAD --name-only, mapped to tests via the table below.

Steps

  1. Discover the universe + ledger state:
    LEDGER="docs/_generated/integ-last-run.tsv"
    now=$(date -u +%s)
    # Union-merge can leave duplicate rows — LAST row per test wins. The
    # header is MULTIPLE `#` lines; skip them all (a single NR==1 guard let
    # later header lines through as phantom stale rows).
    DEDUPED="$(mktemp)"
    awk -F'\t' '/^#/{next} {last[$1]=$0} END{for (t in last) print last[t]}' "$LEDGER" > "$DEDUPED"
    # never-run: fixtures with no ledger row
    comm -23 \
      <(ls -d tests/integration/*/ | sed 's#tests/integration/##;s#/##' | sort) \
      <(awk -F'\t' '{print $1}' "$DEDUPED" | sort)
    # resolve each row's age ONCE, then slice for the views below.
    AGES="$(mktemp)"
    awk -F'\t' -v now="$now" '{
      cmd="date -u -j -f %Y-%m-%dT%H:%M:%SZ \""$2"\" +%s 2>/dev/null || date -u -d \""$2"\" +%s 2>/dev/null";
      cmd | getline t; close(cmd);
      printf "%s\t%d\t%s\t%s\n",$1,int((now-t)/86400),$3,$6
    }' "$DEDUPED" > "$AGES"
    
    # age histogram — makes a clustered cohort visible even when NOTHING is >14d
    awk -F'\t' '{print $2}' "$AGES" | sort -n | uniq -c |
      awk '{printf "%6d tests at age %sd%s\n",$1,$2,($2>14?"   <-- STALE":($2>=12?"   <-- crosses the TTL in "(15-$2)"d":""))}'
    
    # stale (>14d) or failing:
    awk -F'\t' '$3=="FAIL" || $2>14 {printf "%s\tage=%sd\tresult=%s\t%s\n",$1,$2,$3,$4}' "$AGES"
    
    # expiring soon (12-14d, not already failing) — the cliff cohort:
    awk -F'\t' '$2>=12 && $2<=14 && $3!="FAIL" {printf "%s\tage=%sd\texpires in %dd\n",$1,$2,15-$2}' "$AGES"
    
    # one-line cliff summary for the step 4 header:
    awk -F'\t' '$2>=12 && $2<=14 {n[15-$2]++} END{for (d in n) printf "%d\t%d tests expire in %dd\n",d,n[d],d}' "$AGES" |
      sort -n | cut -f2-
    
    (The date line handles both BSD/macOS -j -f and GNU -d.)

Read the full file on GitHub · 176 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. 12d ago Changed · -7 lines 32921e6ca7e7
  2. 27d ago Changed b4fe97341fec
  3. 28d ago Changed 45373cae602a
  4. 29d ago Changed fcb1249ee785
  5. 1mo ago Changed · -1 lines 53f26032d215
  6. 1mo ago Changed · -2 lines b58c2ec162b2
  7. 1mo ago Changed · -6 lines 1ed8367dc52d
  8. 1mo ago Changed · +2 lines 98c8e0bd5015
  9. 1mo ago Changed · +8 lines ef9233c65011
  10. 1mo ago First seen · 182 lines · 68 tokens per session scan A 9c8b7ccf7afb

Subscribe to this mod's changes

pick-integ is a skill published in the GitHub repository go-to-k/cdkd (156 stars, last pushed today), licensed Apache-2.0. It adds 68 tokens to every session and 2,928 once invoked, about $0.0003 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.