cdkd: Skill for Claude Code

.claude/skills/create-pr/SKILL.md

create-pr is a skill for Claude Code from go-to-k/cdkd. It costs 31 tokens per session (932 once invoked), scanned A, original, Apache-2.0.

A command for checking a code branch and creating a GitHub pull request, which is a proposal to merge changes into another branch. It runs verification checks before opening the request.

In plain words
What is it for?
Use it to verify a feature branch, inspect related worktrees, create a branch when needed, and open a GitHub pull request after the checks pass.
Why use it?
It catches quality problems and branch or worktree mix-ups before a pull request is created. A worktree is another local folder connected to the same Git repository.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: 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/create-pr/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 create-pr

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/go-to-k/cdkd/create-pr"><img src="https://agentmods.dev/badge/skills/go-to-k/cdkd/create-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 932 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.00031 $0.00932
Opus 5.5 $0.00012 $0.00373
Sonnet 5.5 $0.00006 $0.00186
Haiku 4.5 $0.00003 $0.00093

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

Security

Grade A, and why

create-pr 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.

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/create-pr/SKILL.md · 70 lines

How it starts

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

Create PR

Run all quality checks and create a GitHub PR if everything passes.

Steps

  1. Ensure on a feature branch with the right cwd:

    • git branch --show-current — check current branch
    • Multi-worktree pre-flight: if the current branch is main (or master), also run git worktree list --porcelain and check whether any other worktree is on a non-main branch. If yes, surface that explicitly:
      git worktree list --porcelain | awk '/^worktree /{wt=$2} /^branch refs\/heads\//{b=substr($0,index($0,"refs/heads/")+11); if (b!="main" && b!="master") print wt " on branch " b}'
      
      The user almost certainly meant to run /create-pr from that worktree — every later git / gh pr view call defaults to cwd, so running from the parent worktree on main reports "no PR found for branch 'main'" while a feature branch with commits sits elsewhere. Stop and ask whether to proceed in the listed worktree (offer cd <path>) before falling through to "create a new branch".
    • If on main and no other worktrees have non-main branches, ask the user for a branch name and create it: git checkout -b <branch-name>.
    • Branch naming convention: feat/, fix/, refactor/, docs/, chore/ prefix.
    • Later steps assume cwd is that worktree; if the user defers the cd, abort rather than guess.
  2. Run /verify-pr — typecheck, lint, build, tests, CI, docs consistency, leftover resources. If any check fails, stop and report.

  3. Ensure changes are committed and pushed:

    • git status — commit any uncommitted changes that belong to this branch's work
    • git push -u origin <branch> — ensure remote is up to date
  4. Check if PR already exists for the current branch:

    • gh pr view --json number,url -q '.url' 2>/dev/null
    • If a PR exists, update its title/body (see /verify-pr step 12), report the URL, and stop — skip steps 5–8
  5. Gather PR context:

    • git log main...HEAD --oneline — all commits in this branch
    • git diff main...HEAD --stat — changed files summary
    • Determine base branch (default: main, overridable with --base)

Read the full file on GitHub · 70 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. 1mo ago Changed 74a0b3a5136b
  2. 1mo ago Changed c40841b3a4e0
  3. 1mo ago Changed 3507efe86c22
  4. 1mo ago Changed 9e5c6ac85ebc
  5. 2mo ago First seen · 70 lines · 31 tokens per session scan A 49ad00941b5a

Subscribe to this mod's changes

create-pr is a skill published in the GitHub repository go-to-k/cdkd (156 stars, last pushed today), licensed Apache-2.0. It adds 31 tokens to every session and 932 once invoked, about $0.0001 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.