pr

pr is a skill for Claude Code from thkt/dotclaude. It costs 67 tokens per session (1,756 once invoked), scanned A, original, MIT.

A workflow for analyzing branch changes and creating a draft pull request, including a screenshot step when the changes affect the user interface.

In plain words
What is it for?
Use it to detect the base branch, review changes, write and check the pull-request text, push the branch, and open a draft pull request with GitHub’s CLI.
Why use it?
It gathers the relevant branch, commit, file, and review information so the pull-request description follows the project’s rules.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Good fit Use it to detect the base branch, review changes, write and check the pull-request text, push the branch, and open a draft pull request with GitHub’s CLI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thkt/dotclaude/pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thkt/dotclaude --skill pr
Clone the repo
git clone --depth 1 https://github.com/thkt/dotclaude

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 pr

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/thkt/dotclaude/pr"><img src="https://agentmods.dev/badge/skills/thkt/dotclaude/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,756 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

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 →

  • medium Excessive Agency · line 6
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
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.00067 $0.01756
Opus 5.5 $0.00027 $0.00702
Sonnet 5.5 $0.00013 $0.00351
Haiku 4.5 $0.00007 $0.00176

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

Security

Grade A, and why

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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/prompt-log.ts), 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.

.ja/skills/pr/SKILL.md · 100 lines

How it starts

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

/pr - Pull Request 作成

build の Ship 段を手で行う版。本文の書き方は同じものを読む。

入力

$ARGUMENTS は Issue 参照またはコンテキスト。空なら現在ブランチからのみ生成する。

Phase 1: 準備

commit なし、Git リポジトリでない、gh 認証失敗のいずれかを検出したら、エラーを報告して中止する。

  1. base ブランチを検出する (§ Base ブランチ検出)
  2. § 分析ソースの各コマンドを並列実行する
  3. UI 変更の有無を判定する (§ UI 変更検出)。この判定は Phase 2 と Phase 3 が読む

Phase 2: 生成

  1. ${CLAUDE_SKILL_DIR}/references/pr-writing.md に従って骨格を選び、本文を書く。Design Decisions は § Design Decisions の検出に従う
  2. UI 変更があってリポジトリ側の骨格を採ったときは、§ Pageshot 統合が要求する 2 項目を補う。同梱の骨格は最初から両方を持つので何もしない
  3. ${CLAUDE_SKILL_DIR}/references/pr-writing.md の § タイトルに従ってタイトルを付ける
  4. ${CLAUDE_SKILL_DIR}/references/prose-review.md の基準で本文をインライン精査する

Phase 3: 作成

  1. UI 変更があれば Skill で use-workflow-pageshot を PR 本文と共に呼ぶ (§ Pageshot 統合)
  2. git push -u origin HEAD で現在ブランチを push する
  3. 本文を一時ファイルに書き出し、gh pr create --draft --title "<title>" --body-file <path> で PR を作成する (§ 作成の制約)。pageshot 成果物があれば § Pageshot 統合の --attach を足す
  4. 成功時は Created draft PR: #<number> <title> (base: <base>) <PR URL> を出す。添付の失敗は § 作成の制約に従う
  5. prompt log を render し check した上で、PR コメントとして投稿するかを確認する (§ Prompt Log 統合)

分析ソース

<base> は § Base ブランチ検出が決めた値。

カテゴリ ソース
Changes git diff <base>...HEAD
Commits git log <base>..HEAD
Files git diff --name-status <base>...HEAD
Issue gh issue view <ref> --json title。$ARGUMENTS が issue を指すときだけ

Base ブランチ検出

分岐元を HEAD の reflog から取る。取れないか、それが HEAD の祖先でなければ origin の既定ブランチへ落とす。

BASE=$(git reflog --format='%gs' | grep "moving from .* to $(git branch --show-current)$" | tail -1 | sed 's/.*from \(.*\) to .*/\1/'); git merge-base --is-ancestor "$BASE" HEAD 2>/dev/null || BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'); BASE=${BASE:-main}

Read the full file on GitHub · 100 lines

Files

What ships with it

5 files 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 6a39a7d685bc
  2. 1mo ago Changed · +3 lines · +5 tokens per session f1e866e481d2
  3. 1mo ago First seen · 92 lines · 62 tokens per session scan A e036d2e676e8

Subscribe to this mod's changes

pr is a skill published in the GitHub repository thkt/dotclaude (12 stars, last pushed 25d ago), licensed MIT. It adds 67 tokens to every session and 1,756 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.

Related

Other skills, from other repositories

staleness-audit

Pre-commit audit. Invoke before every git commit. Diffs the staged change against the repo's "canaries" (README, decision log, roadmap, public API, doc comments, release notes, test discipline) and surfaces anything that's drifted out of sync. Updates the obvious drifts in place; flags judgement calls for the operator.

Flagrare/agent-skills · 75 tokens

babysit

Watch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved.

thedotmack/claude-mem · 44 tokens

code-review

Review the current diff, or a PR number/branch/path target, for correctness bugs (plus reuse/simplification/efficiency cleanups where the model's review recipe covers them) at the given effort level (low|medium|high|xhigh|max: from few high-confidence findings up to many, some of them uncertain; ultra: deep…

asgeirtj/system_prompts_leaks · 224 tokens

github

GitHub via gh CLI: PRs, issues, reviews, repos, auth.

NousResearch/hermes-agent · 19 tokens

merge-batch

Prepare and merge an owner-selected PR batch with contributor credit and exact-candidate admission. Use for a pasted PR list; combined focused validation is diagnostic, and every actual landing still requires its applicable checks and authorization.

diegosouzapw/OmniRoute · 46 tokens

babysit

Watch an open PR — fix failing CI, handle the straightforward review comments, and drive it to a mergeable state. Claude Code analog of Cursor's built-in /babysit. Use after opening a PR when the user wants the agent to shepherd it without re-prompting.

michael-denyer/pstack-claude · 61 tokens