skills/pr/SKILL.md
Analyze branch changes and create a PR. Refine the body via prose review before posting.
npx skillsauth add thkt/claude-config prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
$ARGUMENTS is an Issue reference or context. Optional; e.g. #456. If empty, generate from the current branch only.
Read language from ${CLAUDE_SKILL_DIR}/../../settings.json and translate the PR body into that language. If unset, default to English. Keep technical terms, code, and identifiers untranslated.
If there are no commits, the directory is not a git repository, or gh auth fails, report the error and abort.
${CLAUDE_SKILL_DIR}/references/prose-review.md plus the empty-phrase file matching the body language: phrases.ja.md for Japanese, phrases.en.md for Englishuse-workflow-pageshot via Skill with the PR body (§ Pageshot Integration)gh pr create --title "..." --body "...". Pass the body as a direct string; heredoc <<EOF is unusable under the sandbox restriction| Category | Source |
| -------- | -------------------------------------- |
| Changes | git diff <base>...HEAD |
| Commits | git log <base>..HEAD |
| Files | git diff --name-status <base>...HEAD |
BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
BASE=${BASE:-main}
Read the diff from § Analysis Sources to judge visual impact. Logic / type / test / docs-only changes are not UI changes, so skip Pageshot Integration. Pageshot's rendering is the final judge, so when frontend signals are present and the impact is ambiguous, lean toward a UI change. A change affecting visual output through any of the following counts as a UI change.
tailwind.configfeat: or fix:; strip it from the Issue title if present${CLAUDE_SKILL_DIR}/templates/pr.md.github/pull_request_template.md > pull_request_template.md > docs/pull_request_template.md > a PULL_REQUEST_TEMPLATE/ directorygh pr create --body does not auto-apply the template, so read the skeleton and fold it into the bodyPreview URL: line and a ## How to Test section (§ Pageshot Integration)Aggregate Design Decisions across the whole PR, not per-commit, detecting from the diff and log in § Analysis Sources. Record a decision when any signal below is present; omit the section when the work is routine implementation with no explicit tradeoff.
Call Skill("use-workflow-pageshot") with the current PR body string as input. The body must contain a Preview URL: <URL> line near the top and a ## How to Test section as a numbered list. The skill returns a single mode line on stdout.
mode=screenshot artifact=<path> / mode=video artifact=<path> display the path and advise dragging it into the PR description or first comment on GitHubmode=failed report missing items, skip pageshot, and continue PR creationAfter approval (§ Execution step 8), push the current branch with git push -u origin HEAD.
Preview shows title, base branch, current branch, summary bullets, and changes table. On success, display Created PR: #<number> <title> <PR URL>.
tools
Delegate implementation to codex (coder) via the herdr-agentchat plugin and drive a two-pane conversation to completion.
development
Extract recurring patterns from past closed PRs/issues and the research findings in workspace/research/, verify them against the latest code, and propose them to docs/wiki/ via PR.
development
Create Decision Records (DR) in MADR v4 format with auto-numbering.
development
Codex review + cleanup. Findings are challenged by critic-audit, not aggregated as facts, and fixes are applied directly. Do NOT use for internal multi-reviewer deep audits or findings reports (use /audit).