Add /pr workflow for AI-assisted pull requests#9
Merged
Conversation
- Update .gitignore to share .claude/commands (keep settings.local.json ignored) - Add /pr command that creates PR and posts AI code review to GitHub Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Laoujin
commented
Feb 25, 2026
Member
Author
Laoujin
left a comment
There was a problem hiding this comment.
AI Code Review 🤖
Files reviewed: .gitignore, .claude/commands/pr.md
Findings
No blocking issues found.
Observations:
.gitignorechange correctly narrows the ignore pattern from all of.claude/to justsettings.local.json- The
/prcommand workflow is well-structured with clear steps - Uses
gh pr reviewfor native GitHub integration
Minor suggestions (non-blocking):
- Consider adding error handling guidance for when
ghCLI is not authenticated - Could add a step to check if PR already exists for the branch
✅ Code looks good - ready for human review.
Laoujin
commented
Feb 25, 2026
| - Run `git status` and `git log origin/master..HEAD --oneline` to see what will be in the PR | ||
| - If on master, stop and ask user to create a feature branch first | ||
| - Push branch if not yet pushed: `git push -u origin HEAD` | ||
|
|
Member
Author
There was a problem hiding this comment.
Consider adding a step to verify gh auth status before running gh commands.
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
.gitignoreto share.claude/commands/with the team (personal settings still ignored)/prslash command that creates a PR and posts an AI code review directly to GitHubTest plan
/prfrom a feature branch🤖 Generated with Claude Code