Community라이팅 & 에디팅github.com

wildcard/gh-code-review

Validated, agent-friendly GitHub pull request reviews with inline, file, and suggestion threads.

gh-code-review란 무엇인가요?

gh-code-review is a Claude Code agent skill that validated, agent-friendly GitHub pull request reviews with inline, file, and suggestion threads.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add wildcard/gh-code-review

Installed? Explore more 라이팅 & 에디팅 skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

GitHub Code Review

Use a formal pull-request review so every finding is anchored, individually followable, and submitted with one clear decision. The extension is deterministic transport and validation; you remain responsible for review judgment.

Choose the transport

  1. Run gh code-review capabilities.
  2. If the command exists, use it.
  3. If it is absent, offer gh extension install wildcard/gh-code-review. Never install without the user's consent.
  4. If installation is declined or unavailable, run scripts/gh_code_review_fallback.py. The fallback supports JSON manifests and the core inspect, validate, and submit transaction.
  5. Read references/cli-reference.md only for advanced lifecycle operations. Read references/direct-api.md when the extension cannot be used.

Review workflow

1. Inspect before judging

Resolve the repository and PR, then read normalized review context:

gh code-review inspect 42 -R owner/repo --unresolved

Use --include bodies when full comment text is needed and --include patches only when local diff access is unavailable. Always inspect existing threads before proposing or posting findings.

2. Review the changed code

Confirm each finding against the current diff and surrounding implementation. Avoid duplicating an existing thread or restating a resolved finding without new evidence.

Choose the smallest useful anchor:

  • line: one changed or context line.
  • range: one coherent block within a single diff hunk.
  • file: a concern about the entire changed file that has no honest line anchor.

Use a replacement only when the exact corrected code is known. Suggestions may replace a different number of lines, but they must target RIGHT-side line or range subjects. Do not attach suggestions to deleted lines or whole files.

Write findings so a maintainer can act:

  • State the concrete failure or risk.
  • Explain when it occurs and why it matters.
  • Keep unrelated concerns in separate threads.
  • Prefer a suggestion block for a small, exact correction.
  • Do not expose hidden reasoning, credentials, or local-only evidence.

3. Build a manifest

Copy references/review-manifest.md and fill the current head SHA returned by inspect. Use unique, stable client_id values.

The default event for unspecified review feedback is COMMENT. Use APPROVE or REQUEST_CHANGES only when the user explicitly authorizes that decision. Do not infer approval from “looks good,” and do not infer a changes request from the presence of findings.

Agent metadata such as severity, category, confidence, rule ID, and evidence remains local; the transport never posts it.

4. Validate before any write

gh code-review validate --input review.json

Validation must pass against the live PR head, diff locations, permissions, existing comments, and pending-review state. Treat HEAD_CHANGED as a required re-inspection. Never move a finding to a nearby valid line merely to satisfy the API.

If event derivation was explicitly requested, preview it:

gh code-review validate --input review.json --derive-event

Derived decisions are visible before submission and still require --confirm-decision for APPROVE or REQUEST_CHANGES.

5. Submit one coherent review

Only submit when the user asked to post or submit the review:

gh code-review submit --input review.json

For an explicitly authorized approval or changes request:

gh code-review submit --input review.json --confirm-decision

Do not use gh pr comment as a fallback. If submission is partially applied, report the recovery receipt and pending review ID exactly; do not blindly retry.

6. Verify

Inspect again and confirm:

  • the review state matches the requested event;
  • each expected thread exists and is not outdated;
  • apply-able suggestions render correctly;
  • no duplicate or flat PR comment was created.

Report the review URL, decision, number of threads, and any remaining limitation.

Safety rules

  • Reading a PR does not authorize a write. “Post,” “submit,” “leave comments,” “approve,” or “request changes” does.
  • Default an unspecified posting decision to COMMENT.
  • Require explicit user authorization for APPROVE and REQUEST_CHANGES.
  • Never install the extension silently.
  • Never abandon a pending review, delete a comment, resolve a thread, dismiss a review, or change viewed state without explicit confirmation.
  • Review dismissal creates a visible timeline explanation; warn and require confirmation.
  • Never write secrets or hidden provenance markers into comment bodies.

관련 스킬

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community