pr-tools:address-review
This skill should be used when the user asks to "address the review", "discuss PR feedback", "plan fixes for the review", "create a plan to fix PR issues", or wants to brainstorm solutions for review findings. Use after a PR review has been posted to fetch the review comment and guide the user through creating an action plan using the brainstorming workflow.
What this skill does
# Address Review
Fetch the most recent Claude Code review comment on a PR and use the brainstorming skill to discuss and create a plan for addressing the identified issues.
## Your Task
When this skill is invoked, you should:
1. **Resolve the plugin root** using the utils:find-claude-plugin-root skill
2. **Validate GitHub CLI is ready** by running the github-cli-ready.sh script
3. **Parse arguments** using parse-pr-args.py to get repo and PR number
4. **Fetch PR metadata** using `gh pr view` to get title and URL
5. **Find the review comment** using find-review-comment.sh
6. **Extract key issues** by counting severity markers (๐ด, ๐ก, ๐ข)
7. **If no issues found**, inform the user the PR looks good to merge and exit
8. **Otherwise, invoke the brainstorming skill** and present the review findings to start the discussion
## Dependencies
- **pr-tools:utils** - Uses utility scripts for GitHub CLI validation, PR argument parsing, and finding review comments
- **superpowers:brainstorming** - Invoked for interactive planning session
## Invocation Examples
- `/pr-tools:address-review` - Current branch PR
- `/pr-tools:address-review --pr 123` - Specific PR in current repo
- `/pr-tools:address-review --repo user/repo --pr 123` - Any repo PR
## Workflow Steps
### 1. Setup and Validation
First, get the plugin root and validate prerequisites:
- Invoke utils:find-claude-plugin-root skill
- Run `python3 /tmp/cpr.py pr-tools` to get PLUGIN_ROOT
- Set SCRIPTS="${PLUGIN_ROOT}/utils/scripts"
- Run "${SCRIPTS}/github-cli-ready.sh" to ensure gh CLI is authenticated
### 2. Parse Arguments
Run the parse-pr-args.py script with the user's arguments to get:
- Repository (owner/repo format)
- PR number
### 3. Fetch PR Information
Use `gh pr view "$PR_NUM" --repo "$REPO" --json number,title,state,url` to get:
- PR title
- PR URL
- Verify the PR exists
### 4. Find Review Comment
Run "${SCRIPTS}/find-review-comment.sh" "$REPO" "$PR_NUM" to:
- Find the most recent Claude Code review comment
- Get the comment body and creation date
- Save to /tmp/pr-${PR_NUM}-review.md for reference
### 5. Analyze Review Content
Parse the review comment to count issues by severity:
- Count lines matching "^### ๐ด" for critical issues
- Count lines matching "^### ๐ก" for important improvements
- Count lines matching "^### ๐ข" for suggestions
If all counts are 0, the PR has no issues - inform the user and exit.
### 6. Invoke Brainstorming
If issues were found:
- Invoke the superpowers:brainstorming skill
- Present the review findings to the user with:
- PR title and number
- Issue counts by severity
- Link to full review
- Key findings from each section
- Questions about which issues to address now vs. later
- Discussion of implementation approaches
## Your Response Format
After completing the workflow, present findings to the user like:
```
I've found a Claude Code review for PR #{number}: "{title}"
Review Summary:
- ๐ด {count} critical issues
- ๐ก {count} important improvements
- ๐ข {count} suggestions
Full review: {url}
Let me share the key findings from the review:
[Extract and show main issues from each severity section]
Now, let's discuss:
1. Which of these issues should we address in this PR?
2. Are there any that should be deferred to future PRs or issues?
3. For the issues we'll address, what's the best implementation approach?
```
The brainstorming skill will then guide the user through creating an approved plan.
## Error Handling
If errors occur:
- **No PR found**: Inform user to check PR number and repository
- **No review comment found**: Inform user to run /review-pr first
- **GitHub CLI not authenticated**: Inform user to run `gh auth login`
- **Script failures**: Display the error output and suggest fixes
## Notes
- Save the review to /tmp for easy reference
- Let brainstorming handle the discussion and plan creation
- Don't try to auto-fix issues - get user input first
- The full workflow happens in the background - present clean results to the user at the end
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.