skills/gh-review-suggestions/SKILL.md
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.
npx skillsauth add shipshitdev/library gh-review-suggestionsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Inputs:
Outputs:
Creates/Modifies:
External Side Effects:
Confirmation Required:
Delegates To:
code-review for local bug-focused reviewgh-address-comments when addressing existing review feedbackgh-fix-ci when failing checks explain the review findingVerify context:
gh auth status -h github.com
gh pr view <pr> --json number,url,headRefOid,commits,files,reviewDecision
gh pr diff <pr> > /tmp/pr.diff
Review changed files, not the whole repository. Focus on:
Use inline suggestions only for mechanical, local changes:
Explain why this concrete change is needed.
```suggestion
replacement code
```
Use normal comments for architecture, product, design, or multi-file changes.
Validate the target line is in the PR diff:
node ${CLAUDE_SKILL_DIR}/scripts/diff-line-position.mjs \
--diff /tmp/pr.diff \
--path src/example.ts \
--line 42
Draft comments and get approval before posting.
Prefer modern line/side API fields when posting comments:
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.
Summarize what was posted:
development
TypeScript refactoring and modernization guidelines from a principal specialist perspective. This skill should be used when refactoring, reviewing, or modernizing TypeScript code to ensure type safety, compiler performance, and idiomatic patterns. Triggers on tasks involving TypeScript type architecture, narrowing, generics, error handling, or migration to modern TypeScript features.
tools
Resolves TypeScript and JavaScript problems across type-level programming, performance, monorepo management, migration, and modern tooling. Invoke when diagnosing "type instantiation excessively deep" errors, migrating JS to TS, configuring strict tsconfig, debugging module resolution, or choosing between Biome/ESLint/Turborepo/Nx.
tools
Turborepo monorepo build system guidance. Triggers on: `turbo.json`, task pipelines, `dependsOn`, caching, remote cache, the `turbo` CLI, `--filter`, `--affected`, CI optimization, environment variables, internal packages, monorepo structure, and package boundaries. Use when the user configures tasks or workflows, creates packages, sets up a monorepo, shares code between apps, runs changed packages, debugs cache behavior, or works in an `apps/` plus `packages/` workspace.
tools
Provides Tailwind CSS v4 performance optimization and best practices guidelines. Triggers when writing, reviewing, or refactoring Tailwind CSS v4 code; when working with Tailwind configuration, @theme directive, utility classes, responsive design, dark mode, container queries, or CSS generation optimization.