npx claudepluginhub bokuhe/claude-duet --plugin duet# Duet PR Review pending git changes with Gemini AI, apply selected feedback, commit, and create a GitHub Pull Request. ## Steps ### 1-10. Review and Commit Follow the same steps as `/duet:review`: 1. Check for changes 2. Get diff for review (excluding noise files) 3. Check diff size (warn if > 500 lines) 4. Send to Gemini for review (3-phase: Intent → Critical → Quality) 5. Parse and present feedback by priority 6. Ask user for selection 7. Apply selected changes 8. Offer another review cycle 9. Create commit (match existing commit style) 10. Confirm success ### 11. Check Branch Statu...
/prCreates GitHub pull request from current feature branch using gh CLI. Checks repo state, pushes branch, generates title from git log and summary body from changes.
/prRuns pre-PR quality gates (tests, typecheck, lint, code review) then creates GitHub pull request with structured summary and test plan. Supports --skip-review, --draft, --base flags.
/prPerforms code quality review on GitHub Pull Requests: analyzes diff for test coverage, idiomatic patterns, DRY/SOLID compliance, and build verification. Supports language (go/python/rust/typescript/java) and project profiles.
Review pending git changes with Gemini AI, apply selected feedback, commit, and create a GitHub Pull Request.
Follow the same steps as /duet:review:
First, detect the default branch automatically:
# Detect default branch (try multiple methods)
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
if [ -z "$DEFAULT_BRANCH" ]; then
DEFAULT_BRANCH=$(git remote show origin 2>/dev/null | grep 'HEAD branch' | cut -d: -f2 | tr -d ' ')
fi
if [ -z "$DEFAULT_BRANCH" ]; then
DEFAULT_BRANCH="main"
fi
echo "Default branch: $DEFAULT_BRANCH"
Then check current branch status:
git branch --show-current
git log origin/$DEFAULT_BRANCH..HEAD --oneline
Ensure we're not on the default branch (main/master/develop). If we are:
You're on the default branch ($DEFAULT_BRANCH). Would you like me to:
1. Create a new branch for this PR
2. Cancel the PR creation
Enter your choice:
If user chooses option 1, generate a branch name from the commit message:
prefix/keyword-keyword (lowercase, hyphenated)Suggested branch name: `fix/sql-injection-null-check`
Enter branch name (or press Enter to accept):
Wait for user confirmation, then create the branch:
git checkout -b <branch-name>
git push -u origin $(git branch --show-current)
If push fails due to no upstream:
git push --set-upstream origin $(git branch --show-current)
Use GitHub CLI to create the PR:
gh pr create --title "refactor: apply code review feedback" --body "$(cat <<'EOF'
## Summary
This PR includes code improvements identified through AI-assisted code review.
## Changes
- Add null check to process function
- Use const for immutable variables
- [other changes...]
## Review Process
- Reviewed by: Gemini AI
- Feedback applied: 3/5 suggestions
- Review cycles: 2
## Checklist
- [x] Code reviewed by AI
- [x] Changes tested locally
- [ ] Documentation updated (if needed)
---
Generated with [Duet](https://github.com/bokuhe/claude-duet) - AI Code Review
EOF
)"
## Pull Request Created
**PR:** #123
**URL:** https://github.com/owner/repo/pull/123
**Title:** refactor: apply code review feedback
**Branch:** feature/code-review-improvements -> main
### Summary
- Files changed: 3
- Additions: +25
- Deletions: -10
The PR is ready for human review!
GitHub CLI (`gh`) is not installed.
Please install it first:
\`\`\`bash
# macOS
brew install gh
# Windows
winget install GitHub.cli
# Linux
sudo apt install gh
\`\`\`
Then authenticate:
\`\`\`bash
gh auth login
\`\`\`
Alternatively, create the PR manually:
1. Go to: https://github.com/owner/repo/compare/branch-name
2. Click "Create Pull Request"
GitHub CLI is not authenticated.
Please run:
\`\`\`bash
gh auth login
\`\`\`
And follow the prompts to authenticate.
Push was rejected. Possible reasons:
1. **Branch exists on remote**
\`\`\`bash
git pull --rebase origin branch-name
git push
\`\`\`
2. **No permission**
Check your repository access permissions.
3. **Protected branch**
You may need to push to a different branch.
A PR already exists for this branch.
**Existing PR:** #120
**URL:** https://github.com/owner/repo/pull/120
Would you like to:
1. Update the existing PR (push new commits)
2. View the existing PR
3. Cancel
Enter your choice: