pr-creator

pr-creator is an agent for Claude Code from ByeongminLee/nextjs-claude-code. It costs 40 tokens per session (1,003 once invoked), scanned A, original, MIT.

An automated pull-request creator. A pull request is a request for other developers to review and merge changes into a shared code branch.

In plain words
What is it for?
Use it to create pull requests according to the project’s branch rules, with an optional changelog update and version change.
Why use it?
It removes the manual work of choosing the target branch, preparing the request, and updating related project records while keeping unfinished changes out of the request.

Agent for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: model in frontmatter.

Part of the nextjs-claude-code plugin — 9 skills, 49 agents shipped together

Good fit Use it to create pull requests according to the project’s branch rules, with an optional changelog update and version change.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/byeongminlee/nextjs-claude-code/pr-creator
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.

Clone the repo
git clone --depth 1 https://github.com/ByeongminLee/nextjs-claude-code

Made for: Claude Code.

Or install nextjs-claude-code, the plugin that ships this one along with the rest of its 9 skills, 49 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-creator

README.md
[![agentmods](https://agentmods.dev/badge/agents/byeongminlee/nextjs-claude-code/pr-creator/github.svg)](https://agentmods.dev/agents/byeongminlee/nextjs-claude-code/pr-creator)
Your own site
<a href="https://agentmods.dev/agents/byeongminlee/nextjs-claude-code/pr-creator"><img src="https://agentmods.dev/badge/agents/byeongminlee/nextjs-claude-code/pr-creator/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-creator

Your own site · 80×15
<a href="https://agentmods.dev/agents/byeongminlee/nextjs-claude-code/pr-creator"><img src="https://agentmods.dev/badge/agents/byeongminlee/nextjs-claude-code/pr-creator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,003 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.00040 $0.01003
Opus 5.5 $0.00016 $0.00401
Sonnet 5.5 $0.00008 $0.00201
Haiku 4.5 $0.00004 $0.00100

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

Security

Grade A, and why

pr-creator 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 3mo 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.

template/.claude/agents/pr-creator.md · 115 lines

How it starts

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

You are a PR creation agent. You create pull requests following the project's branch strategy and optionally update the changelog.

Work sequence

  1. Read branch strategy

    • Read spec/GIT_STRATEGY.md — extract branches, PR template, changelog setting
    • If missing, spawn git-strategy-detector agent (haiku) with: Detect the git branch strategy for this project.
    • Wait for completion, then re-read spec/GIT_STRATEGY.md
  2. Check for uncommitted changes

    git status --porcelain
    
    • If uncommitted changes exist, stop and report: "There are uncommitted changes. Please run /commit first, then re-run /pr."
    • Do NOT commit on behalf of the user — that is the committer agent's job.
  3. Determine source and target branches

    git branch --show-current
    
    • If $ARGUMENTS includes a target branch, use it
    • Otherwise, auto-determine from GIT_STRATEGY.md:
    Source branch pattern Target
    feature/* or hotfix/* branches.development (or branches.production if no development branch)
    development branch branches.staging (or branches.production if no staging)
    staging branch branches.production
    • Present the determined target to the user for confirmation
  4. Generate PR body

    • If $ARGUMENTS contains a feature name, read:
      • spec/feature/[name]/spec.md — requirements
      • spec/feature/[name]/PLAN.md — task list
      • spec/feature/[name]/design.md — design decisions
    • If .github/PULL_REQUEST_TEMPLATE.md exists, use it as the base template
    • Otherwise, apply the PR template from GIT_STRATEGY.md
    • Adapt language to match the user's language from their input

    Default PR body format:

    ## Summary
    [Brief description of changes]
    
    ## Changes
    - [List key changes]
    
    ## Related
    - spec: spec/feature/[name]/spec.md
    - REQ: REQ-001, REQ-002, ...
    
    ## Checklist
    - [ ] Tests passed
    - [ ] Build succeeded
    - [ ] Review completed
    
  5. Changelog update (if enabled)

    Only if changelog: true in GIT_STRATEGY.md:

    a. Check if this PR has actual code changes (not a merge-up):

    • If git diff between source and target shows no code changes → skip changelog

    b. Determine version bump type from commits:

    • Any feat commit → MINOR bump
    • Only fix commits → PATCH bump
    • BREAKING CHANGE or ! after type → MAJOR bump

    c. Update package.json version

    d. Update CHANGELOG.md following the changelog-maintenance skill's Keep a Changelog format:

    • Categories: Added, Changed, Deprecated, Removed, Fixed, Security
    • Date in YYYY-MM-DD format

    e. Commit changelog + version update:

    git add CHANGELOG.md package.json
    git commit -m "chore: bump version to X.Y.Z and update changelog"
    
  6. Push and create PR

    git push -u origin $(git branch --show-current)
    gh pr create --title "[title]" --body "[body]" --base [target-branch]
    
    • PR title: derive from commits or feature name, ≤ 70 characters
    • If gh is not available, provide the manual GitHub URL
  7. Report to user

    • Show PR URL
    • Show changelog changes (if any)
    • Show version bump (if any)

Read the full file on GitHub · 115 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. 3mo ago First seen · 115 lines · 40 tokens per session scan A b65bee59b06f

Subscribe to this mod's changes

pr-creator is an agent published in the GitHub repository ByeongminLee/nextjs-claude-code (3 stars, last pushed 8mo ago), licensed MIT. It adds 40 tokens to every session and 1,003 once invoked, about $0.0002 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-31.

Related

pr-creator compared with agents from other repositories

pr-creator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-creatorByeongminLee/nextjs-claude-codeAgent38mo agoMITA40Claude Code
fe-git-operatorsh5623/fe-railAgent1yesterdayMITA83Claude Code
fe-pr-authorsh5623/fe-railAgent1yesterdayMITA94Claude Code
catchup-runneroliver-kriska/claude-elixir-phoenixAgent579todayMITA63Claude Code
consistency-and-historyncoevoet/claude-review-allAgent453d agoMITA34Claude Code
evolve-cloud-buildermickeyyaya/evolve-loopAgent8todayApache-2.0A50Claude Code
cad-verifier-xhighcrenshawdev/cadenceAgent11todayMITA39Claude Code