pr-review
Fix PR review comments by implementing requested changes
What this skill does
# Fix PR Review Comments Fix PR review comments by implementing the requested changes. ## Usage ```bash /pr-review <PR_URL> # Review PR by URL (expects full GitHub URL) /pr-review <PR_NUMBER> # Review PR by number (expects number, e.g., 123) /pr-review # Auto-detect PR from current branch ``` ### ๐ Argument Handling The command accepts the PR identifier from `$ARGUMENTS`: 1. **PR URL**: Full GitHub PR URL (e.g., `https://github.com/owner/repo/pull/123`) 2. **PR Number**: Just the PR number (e.g., `123`) 3. **No Arguments**: Auto-detect the PR associated with the current Git branch If `$ARGUMENTS` is provided, use it as the PR identifier. Otherwise, auto-detect the current branch's PR using: ```bash gh pr view --json number,url -q '.number' ``` This extracts the PR number from the current branch's open PR for use in subsequent commands. If no open PR is found for the current branch, show this error: ```text Error: No open pull request found for the current branch. To review a specific PR: /pr-review <PR_URL> /pr-review <PR_NUMBER> Or create a PR first: gh pr create ``` ## Process 1. Parse `$ARGUMENTS` to determine PR identifier (URL, number, or auto-detect) 2. Fetch PR details and review comments using `gh` CLI 3. Parse review comments to understand what needs to be changed 4. For each comment, implement the fix 5. Run tests to ensure nothing breaks 6. Commit the changes ## Available Scripts ### Extract PR Comments The `extract-pr-comments.js` script processes GitHub PR review comments and issue comments to create actionable TODO lists. ```bash # Usage node $SKILL_PATH/scripts/extract-pr-comments.js <review-comments-file> <issue-comments-file> [output-file] # Example node $SKILL_PATH/scripts/extract-pr-comments.js \ pr-4972-review-comments-raw.json \ pr-4972-issue-comments-raw.json \ pr-4972-comments.ndjson ``` **What it does:** - Filters out comments with replies (likely resolved) - Classifies comments by severity (critical, high, medium, low) - Categorizes comments (security, performance, maintainability, etc.) - Creates 3 output files: - `.ndjson` - Structured comment data - `-todo.md` - Prioritized TODO list - `-summary.md` - Analysis summary with emojis **Severity classification:** - ๐ด **Critical**: security, vulnerability, exploit - ๐ **High**: bug, error, breaking, crash, fail - ๐ก **Medium**: performance, improvement, refactor, optimize - ๐ข **Low**: everything else **Categories:** - ๐ Security - โก Performance - ๐ง Maintainability - โฟ Accessibility - ๐งช Testing - ๐ Documentation - ๐ท๏ธ Typing - ๐จ Style - โจ Code Quality ## Examples ```bash # Fix review comments for a PR using URL /pr-review https://github.com/owner/repo/pull/123 # Fix review comments using PR number /pr-review 123 # Auto-detect PR from current branch /pr-review # After extracting comments with the script, work through the TODO list # The TODO list is ordered by priority: Critical โ High โ Medium โ Low ```
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.