pr-threads-address
Review all unresolved PR review threads, address them by making necessary code changes, and commit the changes appropriately.
What this skill does
# /pr-threads-address **Usage:** `/pr-threads-address [PR_NUMBER]` **Description:** Review all unresolved PR review threads, address them by making necessary code changes, and commit the changes appropriately. **Note:** If `PR_NUMBER` is omitted, the command will automatically detect and use the PR associated with the current branch. ## Workflow 1. Fetch and display all unresolved PR review threads 2. Analyze each thread to understand the requested changes 3. For each thread: 1. Make the necessary code modifications 2. (When possible) Add unit tests to verify the change 3. Commit the changes with descriptive commit messages using conventional commit specification 4. Report back with a summary of addressed threads 5. Ask if the user wants to resolve the threads. If so, reply to each thread indicating what was done and then resolve the thread. ## When to use Use this command when you have received PR review feedback and need to systematically address all unresolved threads before the PR can be merged. ## Example ``` /pr-threads-address 42 ``` This will: - View unresolved threads on PR #42 - Make code changes to address each thread - Create commits for the changes - Reply to reviewers with explanations - Provide a summary of all addressed items - Ask if you want to resolve the threads ## Prerequisites Before using this command, check if the gh pr-review extension is installed: ```bash gh extension list | grep -q pr-review || gh extension install agynio/gh-pr-review ``` ## CLI Reference ### View PR Reviews and Comments Display all reviews, inline comments, and replies for a pull request: ```bash gh pr-review review view --pr <number> --repo <owner/repo> ``` **Common filters:** - `--reviewer <login>` — Filter by specific reviewer - `--states <list>` — Filter by review state (APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED) - `--unresolved` — Show only unresolved threads - `--not_outdated` — Exclude outdated threads - `--tail <n>` — Show only the last n replies per thread - `--include-comment-node-id` — Include GraphQL node IDs for replies **Examples:** ```bash # View all unresolved comments gh pr-review review view --pr 42 --unresolved --repo owner/repo # View comments from a specific reviewer gh pr-review review view --pr 42 --reviewer username --repo owner/repo # View only change requests, excluding outdated threads gh pr-review review view --pr 42 --states CHANGES_REQUESTED --not_outdated --repo owner/repo ``` ### Reply to Review Threads Respond to specific review comment threads: ```bash gh pr-review comments reply --thread-id <PRRT_...> --body "<reply-text>" --repo <owner/repo> --pr <number> ``` **Multi-line replies** use heredoc syntax: ```bash gh pr-review comments reply --thread-id PRRT_xyz789 --body "$(cat <<'EOF' Fixed in commit abc123. The changes include: - Updated function signature - Added error handling - Updated tests EOF )" --repo owner/repo --pr 42 ``` ### Resolve a Thread ```bash gh pr-review threads resolve --thread-id <PRRT_...> --pr <number> --repo <owner/repo> ``` ### Start a Pending Review Create a new pending review to add comments before submission: ```bash gh pr-review review --start --pr <number> --repo <owner/repo> ``` This returns a review ID (format: `PRR_...`) needed for adding comments. ### Add Review Comments Add inline comments to a pending review: ```bash gh pr-review review --add-comment --review-id <PRR_...> --path <file-path> --line <number> --body "<comment-text>" --repo <owner/repo> ``` **Flags:** - `--review-id` — Review ID from `--start` command (required) - `--path` — File path in the repository (required) - `--line` — Line number for the comment (required) - `--body` — Comment text (required) ### Submit a Review Finalize and submit a pending review: ```bash gh pr-review review --submit --review-id <PRR_...> --event <EVENT_TYPE> --body "<summary>" --repo <owner/repo> ``` **Event types:** - `APPROVE` — Approve the changes - `REQUEST_CHANGES` — Request changes before merging - `COMMENT` — Submit general feedback without explicit approval ## Usage Notes 1. **Repository Context**: Always include `--repo owner/repo` to ensure correct repository context, or run commands from within a local clone of the repository. 2. **Thread IDs**: Thread IDs (format `PRRT_...`) can be obtained from `review view --include-comment-node-id` or `threads list` commands. 3. **Review IDs**: Review IDs (format `PRR_...`) are returned by the `review --start` command and must be used for adding comments to that review. 4. **State Filters**: When using `--states`, provide a comma-separated list: `--states APPROVED,CHANGES_REQUESTED` 5. **Unresolved Focus**: Use `--unresolved --not_outdated` together to focus on actionable comments that need attention.
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.