create-java-pr
Skill1.4k starsChanged 7 months agoMITView on GitHub
Create a pull request in sentry-java. Use when asked to "create pr", "prepare pr", "prep pr", "open pr", "ready for pr", "prepare for review", "finalize changes". Handles branch creation, code formatting, API dump, committing, pushing, PR creation, changelog, and stacked PRs.
- Reads credentials
- Commits and pushes
Trending
Quiet this year.about the whole repository
Who's talking about getsentry/sentry-java
- getsentry/sentry“[Mobile Replay] Capture Network request/response bodies”GitHub · Feb 5, 2025 · 48 reactions
- quarkusio/quarkus“Sentry tracing with automatic instrumentation”GitHub · Aug 31, 2021 · 19 reactions
- getsentry/sentry-dart“Support Source Context”GitHub · Oct 25, 2020 · 18 reactions
- getsentry/sentry-dotnet“OpenTelemetry Support”GitHub · Nov 25, 2022 · 11 reactions
- getsentry/sentry-dotnet“Feature: Session Replay support for .NET MAUI”GitHub · Jan 30, 2023 · 8 reactions
The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 18
Talked about on GitHub (18 times).
On GitHub · 18
- Feb 5, 2025[Mobile Replay] Capture Network request/response bodies — getsentry/sentry48 reactions · 13 comments
- Aug 31, 2021Sentry tracing with automatic instrumentation — quarkusio/quarkus19 reactions · 20 comments
- Oct 25, 2020Support Source Context — getsentry/sentry-dart18 reactions · 24 comments
- Nov 25, 2022OpenTelemetry Support — getsentry/sentry-dotnet11 reactions · 4 comments
- Jan 30, 2023Feature: Session Replay support for .NET MAUI — getsentry/sentry-dotnet8 reactions · 9 comments
13 more on GitHub
- Mar 19, 2025Add UI Profiling Support (converted to project) — getsentry/sentry-react-native5 reactions · 3 comments
- Jan 20, 2021Proposal (Performance): Some convenience API to wrap a Promise with a Span/Transaction — getsentry/sentry-javascript5 reactions · 2 comments
- May 1, 2025feat: Initial Android support — getsentry/sentry-godot4 reactions · 3 comments
- Mar 25, 2024feat(replay): Add Mobile Replay Alpha — getsentry/sentry-react-native4 reactions · 8 comments
- Feb 8, 2023Add support for Sentry — spring-io/start.spring.io4 reactions · 6 comments
- May 4, 2022Figure out how to implement hints — getsentry/sentry-javascript4 reactions · 5 comments
- Dec 10, 2020Add basic support for attachments — getsentry/sentry-cocoa4 reactions
- Jul 17, 2025Bump io.sentry.android.gradle from 4.10.0 to 5.8.0 — woocommerce/woocommerce-android3 reactions · 2 comments
- Jul 23, 2024feat: User Feedback widget/form — getsentry/sentry-cocoa3 reactions · 5 comments
- May 1, 2024Remove `enableTracing` (and update docs accordingly) — getsentry/team-sdks3 reactions · 7 comments
- Feb 1, 2024[Epic] Mobile Session Replay — getsentry/sentry3 reactions · 2 comments
- Nov 20, 2023Tracing: W3C Trace Context Support — getsentry/team-sdks3 reactions · 9 comments
- Jan 12, 2023Allow more granular auto installation — getsentry/sentry-android-gradle-plugin3 reactions · 3 comments
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/api.mdcCursor rule
- .cursor/rules/continuous_profiling_jvm.mdcCursor rule
- .cursor/rules/deduplication.mdcCursor rule
- .cursor/rules/e2e_tests.mdcCursor rule
- .cursor/rules/feature_flags.mdcCursor rule
- .cursor/rules/metrics.mdcCursor rule
- .cursor/rules/new_module.mdcCursor rule
- .cursor/rules/offline.mdcCursor rule
- .cursor/rules/opentelemetry.mdcCursor rule
- .cursor/rules/options.mdcCursor rule
- .cursor/rules/queues.mdcCursor rule
- .cursor/rules/scopes.mdcCursor rule
- btrace-perfettoSkill
- check-code-attributionSkill
- testSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. About 0 are common, 17 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
For stacked PRs: read references/stacked-prs.md before proceeding.
- Distinctive: line 25
If branch is
mainormaster: default to a standalone PR. - Distinctive: line 26
Do not assume stack mode from main.
- Distinctive: line 27
Only use stack mode if the user explicitly asks for a stacked PR.
- Distinctive: line 29
Check whether that branch already has a PR and what its base is:
- Very specific: line 33
If that branch PR exists and baseRefName is not main/master, treat the work as a stacked PR context.
- Very specific: line 34
If that branch PR exists and baseRefName is main/master, also check whether other PRs target the current branch:
- Distinctive: line 38
If there are downstream PRs, treat this as next PR in an existing stack with the current branch as the stack base (collection branch).
- Distinctive: line 39
If there are no downstream PRs, treat it as standalone PR context.
- Distinctive: line 40
If no PR exists for the current branch, check whether other PRs target it:
- Distinctive: line 45
If there are no downstream PRs either, treat it as standalone PR context (fresh feature branch).
- Distinctive: line 47
If signals are mixed or ambiguous, ask one focused question to confirm.
- Very specific: line 54
If the user explicitly says "stack", "stacked PR", or provides numbered stack titles (e.g.
- Distinctive: line 62
If on main or master, create and switch to a new branch:
- Distinctive: line 82
If the command fails, diagnose and fix the issue before continuing.
- Distinctive: line 86
Check for uncommitted changes:
- Very specific: line 92
If there are uncommitted changes, invoke the sentry-skills:commit skill to stage and commit them following Sentry commit message …
- Distinctive: line 100
Important: When staging, ignore changes that are only relevant for local testing and should not be part of the PR.
- Distinctive: line 120
If the push fails due to diverged history, ask the user how to proceed rather than force-pushing.
- Very specific: line 126
Read .github/pull_request_template.md and use it as the PR body structure — it is the single source of truth for the sections and …
- Very specific: line 143
Use the stacked PR title format: <type>(<scope>): [<Topic> <N>] <Subject> (see references/stacked-prs.md § "PR Title Naming").
- Very specific: line 145
Add a merge method reminder at the very end of the PR body (see references/stacked-prs.md § "Stack List in PR Description" for the exact …
- Distinctive: line 153
After creating the PR, update the PR description on every other PR in the stack — including the collection branch PR — so all PRs have the …
- Distinctive: line 161
Test-only changes (new tests, test refactors, test fixtures)
- Distinctive: line 168
If unsure, ask the user.
- Very specific: line 172
Add an entry to CHANGELOG.md under the ## Unreleased section.
- Very specific: line 183
Create the subsection under ## Unreleased if it does not already exist.
- Very specific: line 193
Use the PR number returned by sentry-skills:create-pr.
- Very specific: line 207
If no changelog entry is needed, append #skip-changelog to the end of the PR description to disable the changelog CI check, using the …
- Very specific: line 212
Do not use shell redirects (>, >>), pipes (|), or compound commands (&&, ||).
- Very specific: line 215
Read the body with gh pr view <PR_NUMBER> --json body --jq '.body' (output is returned directly)
- Very specific: line 216
Use the Write tool to save it to /tmp/pr-body.md, and the Edit tool to modify it
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
- Get current branch:
git branch --show-current- Apply these rules:
- If branch is
mainormaster: 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.
- Do not assume stack mode from
- 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
baseRefNameis notmain/master, treat the work as a stacked PR context. - If that branch PR exists and
baseRefNameismain/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).
- Check whether that branch already has a PR and what its base is:
- 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).
If the user explicitly says "stack", "stacked PR", or provides numbered stack titles (e.g. [Topic 2]), honor that even if branch heuristics are inconclusive.
Step 1: Ensure Feature Branch
git branch --show-currentIf on main or master, create and switch to a new branch:
git checkout -b <type>/<short-description>Derive the branch name from the changes being made. Use feat/, fix/, ref/, etc. matching the commit type conventions.
For stacked PRs: For the first PR in a new stack, first create and push the collection branch (see references/stacked-prs.md § "Why a Collection Branch"), then branch the PR off it. For subsequent PRs, branch off the previous stack branch. Give every branch in the stack a shared prefix naming the feature, with a descriptive suffix per PR.
CRITICAL: Never merge, fast-forward, or push commits into the collection branch. It stays at its initial position until the user merges stack PRs through GitHub. Updating it will auto-merge and destroy the entire PR stack.
Step 2: Format Code and Regenerate API Files
./gradlew spotlessApply apiDumpThis is required before every PR in this repo. It formats all Java/Kotlin code via Spotless and regenerates the .api binary compatibility files.
If the command fails, diagnose and fix the issue before continuing.
Step 3: Commit Changes
Check for uncommitted changes:
git status --porcelainIf there are uncommitted changes, invoke the sentry-skills:commit skill to stage and commit them following Sentry commit message conventions:
<type>(<scope>): <subject>Allowed types: feat, fix, ref, chore, docs, test, perf, build, ci, style, meta, license
Important: When staging, ignore changes that are only relevant for local testing and should not be part of the PR. Common examples:
| Ignore Pattern | Reason |
| Hardcoded booleans flipped for testing | Local debug toggles |
Sample app config changes (sentry-samples/) | Local testing configuration |
.env or credentials files | Secrets |
Restore these files before committing:
git checkout -- <file-to-restore>Step 4: Push the Branch
git push -u origin HEADIf the push fails due to diverged history, ask the user how to proceed rather than force-pushing.
Step 5: Create PR
Invoke the sentry-skills:create-pr skill to create a draft PR.
Read .github/pull_request_template.md and use it as the PR body structure — it is the single source
of truth for the sections and checklist, so never reproduce it from memory. Fill in each section based
on the changes being PR'd, drop the HTML comment hints, and check any checklist items that apply.
PR title format — same as the commit subject (Step 3):
<type>(<scope>): <Subject>Examples:
feat(core): Add structured logging supportfix(android): Prevent crash on API 21 when registering receiver
For stacked PRs:
- Pass
--base <previous-stack-branch>so the PR targets the previous branch (first PR in a stack targets the collection branch). - Use the stacked PR title format:
<type>(<scope>): [<Topic> <N>] <Subject>(seereferences/stacked-prs.md§ "PR Title Naming"). - Include the stack list at the top of the PR body, before the
## :scroll: Descriptionsection (seereferences/stacked-prs.md§ "Stack List in PR Description" for the format). - Add a merge method reminder at the very end of the PR body (see
references/stacked-prs.md§ "Stack List in PR Description" for the exact text). This only applies to stack PRs, not the collection branch PR.
Then continue to Step 5.5 (stacked PRs only) or Step 6.
Step 5.5: Update Stack List on All PRs (stacked PRs only)
Skip this step for standalone PRs.
After creating the PR, update the PR description on every other PR in the stack — including the collection branch PR — so all PRs have the same up-to-date stack list. Follow the format and commands in references/stacked-prs.md § "Stack List in PR Description".
Edit each body using the procedure in § "Editing PR Descriptions" below.
Step 6: Update Changelog
First, determine whether a changelog entry is needed. Skip this step (and go straight to "No changelog needed" below) if the changes are not user-facing, for example:
- Test-only changes (new tests, test refactors, test fixtures)
- CI/CD or build configuration changes
- Documentation-only changes
- Code comments or formatting-only changes
- Internal refactors with no behavior change visible to SDK users
- Sample app changes
If unsure, ask the user.
If changelog is needed
Add an entry to CHANGELOG.md under the ## Unreleased section.
Determine the subsection
| Change Type | Subsection |
| New feature | ### Features |
| Bug fix | ### Fixes |
| Refactoring, internal cleanup | ### Internal |
| Dependency update | ### Dependencies |
Create the subsection under ## Unreleased if it does not already exist.
When rebasing: A rebase onto main can land your branch after a release was cut, where the ## Unreleased heading your entry lived under has since been renamed to that version number. If that happens, move your new entry into an ## Unreleased section at the top of CHANGELOG.md (create the section if it no longer exists) so it is not left under an already-released version.
Entry format
- <Short description of the change> ([#<PR_NUMBER>](https://github.com/getsentry/sentry-java/pull/<PR_NUMBER>))Use the PR number returned by sentry-skills:create-pr. Match the style of existing entries — sentence case, ending with the PR link, no trailing period.
Commit and push
Stage CHANGELOG.md, commit with message changelog, and push:
git add CHANGELOG.md
git commit -m "changelog"
git pushNo changelog needed
If no changelog entry is needed, append #skip-changelog to the end of the PR description to disable
the changelog CI check, using the procedure in § "Editing PR Descriptions" below.
Editing PR Descriptions
Do not use shell redirects (>, >>), pipes (|), or compound commands (&&, ||). These create
compound shell expressions that won't match permission patterns. Instead:
- Read the body with
gh pr view <PR_NUMBER> --json body --jq '.body'(output is returned directly) - Use the
Writetool to save it to/tmp/pr-body.md, and theEdittool to modify it - Update with
gh pr edit <PR_NUMBER> --body-file /tmp/pr-body.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

