create-java-pr

create-java-pr is a skill for Claude Code, Codex from getsentry/sentry-java. It costs 73 tokens per session (2,289 once invoked), scanned A, original, MIT.

A workflow for preparing and opening pull requests in the sentry-java repository. A pull request is a proposed set of code changes submitted for review before merging.

In plain words
What is it for?
Use it when finalizing changes, creating a standalone or stacked pull request, preparing code for review, or publishing a branch.
Why use it?
It gathers the repository-specific release steps—formatting, API checks, commits, pushing, changelog updates, and stacked-branch handling—into one process.

Skill for Claude CodeCodex

About the project

getsentry/sentry-java is a Java and Android software development kit for sending application errors, events, and diagnostic information to Sentry. It is used by developers working with Java, Android, Kotlin, and other JVM-based applications to monitor software behavior. The catalogue rules, skills, instructions, and setting support workflows around this SDK.

getsentry/sentry-java · 1,349 stars · on GitHub

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.

agentmods
npx agentmods add skills/getsentry/sentry-java/create-java-pr
Any agent
npx skills add getsentry/sentry-java --skill create-java-pr
Clone the repo
git clone --depth 1 https://github.com/getsentry/sentry-java

Made for: Claude Code, Codex.

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-java-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/getsentry/sentry-java/create-java-pr.svg)](https://agentmods.dev/skills/getsentry/sentry-java/create-java-pr)
Your own site
<a href="https://agentmods.dev/skills/getsentry/sentry-java/create-java-pr"><img src="https://agentmods.dev/badge/skills/getsentry/sentry-java/create-java-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,289 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00073 $0.02289
Opus 5 $0.00036 $0.01144
Sonnet 5 $0.00015 $0.00458
Haiku 4.5 $0.00007 $0.00229

Measured today against content hash 90bd9ad42639, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-java-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 today.

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-java-pr/SKILL.md · 218 lines

How it starts

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

Create Pull Request (sentry-java)

Prepare local changes and create a pull request for the sentry-java repo.

For stacked PRs: read references/stacked-prs.md before proceeding. It is the source of truth for stack structure, title naming, stack list format, and merge strategy.

Step 0: Determine PR Type From Git Branch Context

Infer PR type from the current branch before asking the user.

  1. Get current branch:
git branch --show-current
  1. Apply these rules:
  • If branch is main or master: default to a standalone PR.
    • Do not assume stack mode from main.
    • Only use stack mode if the user explicitly asks for a stacked PR.
  • If branch is not main/master:
    • Check whether that branch already has a PR and what its base is:
      gh pr list --head "$(git branch --show-current)" --json number,baseRefName,title --jq '.[0]'
      
    • If that branch PR exists and baseRefName is not main/master, treat the work as a stacked PR context.
    • If that branch PR exists and baseRefName is main/master, also check whether other PRs target the current branch:
      gh pr list --base "$(git branch --show-current)" --json number,headRefName,title
      
      • If there are downstream PRs, treat this as next PR in an existing stack with the current branch as the stack base (collection branch).
      • If there are no downstream PRs, treat it as standalone PR context.
    • If no PR exists for the current branch, check whether other PRs target it:
      gh pr list --base "$(git branch --show-current)" --json number,headRefName,title
      
      • If there are downstream PRs, treat this as next PR in an existing stack with the current branch as the stack base (collection branch).
      • If there are no downstream PRs either, treat it as standalone PR context (fresh feature branch).
  1. If signals are mixed or ambiguous, ask one focused question to confirm.

PR types:

  • Standalone PR — regular PR targeting main.
  • First PR of a new stack — create collection branch from main, then first PR off it.
  • Next PR in an existing stack — target the current stack base branch (usually the previous stack PR branch, or the collection branch if creating the first follow-up PR from the collection branch).

Read the full file on GitHub · 218 lines

Files

What ships with it

1 file 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. today First seen · 218 lines · 73 tokens per session scan A 90bd9ad42639

Subscribe to this mod's changes

create-java-pr is a skill published in the GitHub repository getsentry/sentry-java (1,349 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 2,289 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-09-03.