gh-review-suggestions
Review GitHub pull requests and post precise inline suggested changes with GitHub suggestion blocks. Use when asked to review a PR, leave actionable GitHub comments, propose applyable fixes, or submit review suggestions through gh.
What this skill does
# GH Review Suggestions
Review a GitHub PR and post inline comments only when the suggestion is safe,
specific, and directly applyable.
## Contract
Inputs:
- PR URL or number
- Optional target files, review scope, and severity threshold
Outputs:
- Findings grouped by severity
- Inline suggestion draft bodies
- Posted review comment URLs after approval
Creates/Modifies:
- Does not modify local files by default
- May post GitHub review comments after approval
External Side Effects:
- Reads PR metadata and diffs
- Posts GitHub PR review comments only after approval
Confirmation Required:
- Before posting inline comments
- Before submitting an approve/request-changes review
- Before checking out or modifying the PR branch
Delegates To:
- `code-review` for local bug-focused review
- `gh-address-comments` when addressing existing review feedback
- `gh-fix-ci` when failing checks explain the review finding
## Workflow
1. Verify context:
```bash
gh auth status -h github.com
gh pr view <pr> --json number,title,url,headRefOid,commits,files,reviewDecision
gh pr diff <pr> > /tmp/pr.diff
```
2. Review changed files, not the whole repository. Focus on:
- Bugs and behavioral regressions
- Security and data-isolation failures
- Broken tests or missing coverage for changed behavior
- Simple code corrections that GitHub suggestions can apply cleanly
3. Use inline suggestions only for mechanical, local changes:
````markdown
Explain why this concrete change is needed.
```suggestion
replacement code
```
````
Use normal comments for architecture, product, design, or multi-file changes.
4. Validate the target line is in the PR diff:
```bash
node skills/gh-review-suggestions/scripts/diff-line-position.mjs \
--diff /tmp/pr.diff \
--path src/example.ts \
--line 42
```
5. Draft comments and get approval before posting.
6. Prefer modern `line`/`side` API fields when posting comments:
```bash
COMMIT_ID="$(gh pr view <pr> --json commits --jq '.commits[-1].oid')"
gh api \
--method POST \
/repos/<owner>/<repo>/pulls/<pr>/comments \
-f body="$(cat /tmp/comment.md)" \
-f commit_id="$COMMIT_ID" \
-f path="src/example.ts" \
-F line=42 \
-f side=RIGHT
```
If targeting an older GitHub Enterprise instance that requires `position`,
use the helper output's `position` field.
7. Summarize what was posted:
- Finding severity
- File and line
- Comment URL if returned
- Any findings intentionally left as summary-only comments
## Rules
- Do not post style-only comments unless the repo has an explicit style rule.
- Do not post overlapping suggestions on the same lines.
- Do not suggest generated lockfile or bundle changes unless the generated file
is the source of truth.
- Do not request changes for speculative concerns. Ask a question or leave a
non-blocking comment instead.
- If there are more than five comments, group low-priority notes into one
summary comment to avoid review noise.
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.