pr

pr is a skill for Claude Code from chan4lk/specclaw. It costs 74 tokens per session (988 once invoked), scanned A, original, MIT.

Instructions for creating a GitHub pull request after a change has passed the project's verification checks. A pull request is a proposed code change submitted for review before merging.

In plain words
What is it for?
Use them to validate a change, check verification and review reports, handle code-review blocks, and create the pull request through the project's command-line process.
Why use it?
They prevent unverified changes, missing reports, or blocked code-review findings from being submitted, and require the configured project workflow to be followed.

Skill for Claude Code

Written for Claude Code: Claude Code plugin machinery.

Part of the specclaw plugin — 32 skills, 21 agents shipped together

Good fit Use them to validate a change, check verification and review reports, handle…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chan4lk/specclaw/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 chan4lk/specclaw --skill pr
Clone the repo
git clone --depth 1 https://github.com/chan4lk/specclaw

Made for: Claude Code.

Or install specclaw, the plugin that ships this one along with the rest of its 32 skills, 21 agents.

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/chan4lk/specclaw/pr.svg)](https://agentmods.dev/skills/chan4lk/specclaw/pr)
Your own site
<a href="https://agentmods.dev/skills/chan4lk/specclaw/pr"><img src="https://agentmods.dev/badge/skills/chan4lk/specclaw/pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 988 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.
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.00074 $0.00988
Opus 5 $0.00037 $0.00494
Sonnet 5 $0.00015 $0.00198
Haiku 4.5 $0.00007 $0.00099

Measured 6d ago against content hash fd1e87de8280, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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.

plugins/specclaw/skills/pr/SKILL.md · 36 lines

What it actually says

specclaw pr

First, run specclaw-ensure-init .specclaw — idempotently creates .specclaw/ if it doesn't exist (silent if already initialized; auto-inits using the current directory's basename as the project name).

Create a GitHub PR for a verified change. Requires verify-report.md (build + verify must complete first).

  1. Code review block (conditional): Read workflow.code_review_block from .specclaw/config.yaml. If true:
    • Check if .specclaw/changes/<change>/review-report.md exists. If it does not exist, warn: "code_review_block is enabled but no review-report.md found — run /specclaw:verify first" and continue.
    • If review-report.md exists and verdict is CHANGES_REQUESTED, abort with: "PR blocked: code review verdict is CHANGES_REQUESTED. Fix BLOCK findings in review-report.md then re-run /specclaw:verify." List all BLOCK findings from the report before aborting.
  2. Validate: specclaw-validate-change .specclaw <change> pr. Exits with a warning (exit 0) if a PR already exists for this change. Fails if verify-report.md is missing.
  3. Run: specclaw-pr .specclaw <change>always create the PR through this script, never hand-roll gh pr create. specclaw-pr stages and commits the full .specclaw/changes/<change>/ planning trail (proposal, spec, design, tasks, status, verify-report) into the branch and aborts if any of it is left uncommitted — a raw gh pr create skips this and ships a PR missing the proposal artifacts.
    • First run: prompts for test policy (none|unit|e2e|both), saves it to config.yaml under pr.test_policy. Never prompts again.
    • Test enforcement: if policy is not none, verifies build.test_command is set and that verify-report.md contains test evidence. Fails (strict) or warns (non-strict) if evidence is missing.
    • Version bump: if plugin.version_files is set in config.yaml, compares each file's "version" against the base branch. If unchanged, auto-bumps the patch version and commits before PR creation. Configure in .specclaw/config.yaml:
      plugin:
        version_files:
          - "plugins/specclaw/.claude-plugin/plugin.json"
          - ".claude-plugin/marketplace.json"
      
    • PR creation: builds title from proposal.md, body from spec.md + verify-report.md, runs gh pr create --base main.
    • GitHub sync: if github.sync: true, includes Closes #N in the PR body.
    • Saves URL: appends **PR:** <url> to status.md.
  4. Update project context: After the PR URL is saved, rewrite .specclaw/context.md to incorporate decisions from this change:
    • Run specclaw-update-context .specclaw <change> — this outputs an LLM prompt.
    • Feed the prompt to a coding agent that rewrites context.md in place (architecture-doc style: replaces stale info, merges new decisions).
    • If context.md changed, commit it: git add .specclaw/context.md && git commit -m "docs(context): update project context after <change>" and push.
    • Errors here are non-blocking — warn and continue.
  5. Report the PR URL to the user.

CI outer loop (if loop.ci_gate: true): once the PR branch is pushed, the CI tier of /specclaw:loop (Step 3 / specclaw-loop ci-poll) polls GitHub Actions checks and iterates fixes until they are green, or loop.ci_max_iterations / loop.ci_timeout_seconds halts and escalates. This is a cross-reference only — PR creation above is unchanged, and nothing extra runs when loop.ci_gate is false.

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. 6d ago First seen · 36 lines · 74 tokens per session scan A fd1e87de8280

Subscribe to this mod's changes

pr is a skill published in the GitHub repository chan4lk/specclaw (12 stars, last pushed 2d ago), licensed MIT. It adds 74 tokens to every session and 988 once invoked, about $0.0004 per session on Opus 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.