Repository navigation
Add an AI skill and slash command for generating PR descriptions - #4587
Merged
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Reviewed by Cursor Bugbot for commit b06c5c5. Configure here.
|
|
||
| ## 5. Confirm | ||
|
|
||
| After writing, give a short confirmation (don't reprint the file) and offer to run `gh pr create --title "..." --body-file prDescription.md` if `gh` is available. Include the provided/resolved base and target branch names into the suggested command as part of the suggestion. At the end, ask if the user wants to open the PR now and wait for confirmation before proceeding. If the user declines, stop and say the PR description is ready in `prDescription.md`. |
There was a problem hiding this comment.
Gh suggest omits base head
Medium Severity
Step 5’s example gh pr create only shows --title and --body-file, while asking to add resolved base and target names without naming --base or --head. gh pr create ignores bare branch names, so a PR opened from that suggestion can use the repo’s default base instead of the branches used for the diff.
Reviewed by Cursor Bugbot for commit b06c5c5. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Adds a reusable Claude Code skill that generates a GitHub PR title and description from the diff between two local branches, plus a
/createPRDescriptionslash command that invokes it. Output is written toprDescription.mdat the repo root. This is agent tooling only and does not touch any Jedis library code.Key Decisions & Assumptions
.agents/skills/and is exposed to Claude Code via a symlink at.claude/skills/, keeping a single source of truth while satisfying the.claudediscovery path.main(thenmaster), and target defaults to the current branch. Only those two base names are checked — no broader branch scanning.Behavioral / Conceptual Changes
/createPRDescription [base-branch] [target-branch]command is available; both positional arguments are optional and resolved per the documented defaulting rules.prDescription.mdin the repo root and, ifghis available, offers to open the PR after confirmation.Notes
Note
Low Risk
Documentation and agent configuration only; no runtime, auth, or product code paths change.
Overview
Introduces agent-only tooling so contributors can draft GitHub PR titles and bodies from local branch diffs without touching application/library code.
A new skill under
.agents/skills/creating-description-for-gh-prdefines the workflow: resolve base/target branches (defaults:mainormaster→ current branch), run standardgit diff/git log, analyze the change, and overwriteprDescription.mdat the repo root using a fixed section template. It ends by optionally suggestinggh pr createafter user confirmation..claude/commands/createPRDescriptionexposes this as/createPRDescription [base] [target], passing positional args into the skill’s branch rules without redefining the steps..claude/skills/creating-description-for-gh-prsymlinks to the.agentsskill so Claude Code discovers a single source of truth.Reviewed by Cursor Bugbot for commit 266c8af. Bugbot is set up for automated code reviews on this repo. Configure here.