Skip to content
Skills Library
Programming · Review & audit

github-pr-sanity-review

/github-pr-sanity-review

PR を sanity-review 流儀(実測検証 + Codex 相談 + .dev/sanity-review 保存 + PR コメント投稿)でレビューする。ユーザーが「PR #N をレビューして」「sanity-review して」「正気を疑って」と言った時に使用する。実装 PR と docs PR の両方に対応。プロジェクトに同名スキルがある場合はそちらの repo 固有前提を優先する。

Licence
MIT
Last repository change
07.08.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 07.08.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

PR を sanity-review 流儀(実測検証 + Codex 相談 + .dev/sanity-review 保存 + PR コメント投稿)でレビューする。ユーザーが「PR #N をレビューして」「sanity-review して」「正気を疑って」と言った時に使用する。実装 PR と docs PR の両方に対応。プロジェクトに同名スキルがある場合はそちらの repo 固有前提を優先する。

Original author description

PR を sanity-review 流儀(実測検証 + Codex 相談 + .dev/sanity-review 保存 + PR コメント投稿)でレビューする。ユーザーが「PR #N をレビューして」「sanity-review して」「正気を疑って」と言った時に使用する。実装 PR と docs PR の両方に対応。プロジェクトに同名スキルがある場合はそちらの repo 固有前提を優先する。

How it works

  1. 前提
  2. 手順
  3. 判定の較正
Original SKILL.md headings · 43 lines, 273 words
SKILL.md preview
---
name: github-pr-sanity-review
description: PR を sanity-review 流儀(実測検証 + Codex 相談 + .dev/sanity-review 保存 + PR コメント投稿)でレビューする。ユーザーが「PR #N をレビューして」「sanity-review して」「正気を疑って」と言った時に使用する。実装 PR と docs PR の両方に対応。プロジェクトに同名スキルがある場合はそちらの repo 固有前提を優先する。
---

# PR sanity-review(汎用版)

shokai の `sanity-review` スキル(PR 概要欄・実装・コンテキストの整合性レビュー)を実運用向けに具体化した手順。**報告書は会話出力で終わらせず、`.dev/sanity-review/` に保存して PR コメントとして投稿するところまでが 1 セット**。

## 前提

- **突合基準の特定**: レビューの基準となる「実装者の意図」を最初に確保する。優先順位:
  1. `.dev/contexts/` にexportされた対話コンテキスト(conversation-context スキル)
  2. repo 内の設計ドキュメント・タスク仕様書(`docs/plans/` 等。プロジェクト CLAUDE.md に「設計の正」が指定されていることが多い)
  3. 関連 Issue・親 PR・計画書
- **repo 固有チェックの確認**: プロジェクトの `.claude/skills/` 配下の同種レビュースキルや CLAUDE.md に「全 PR 共通の必須確認項目」(非毀損チェック、触ってはいけないファイル等)が定義されていればそれに従う
- **Codex は必ずモデル明示**: `codex exec --ephemeral -m gpt-5.4 -c model_reasoning_effort=medium -s workspace-write -c sandbox_workspace_write.network_access=true "<prompt>" < /dev/null`(`~/.codex/config.toml` の既定が上位モデルのため。深い調査のみ gpt-5.5/high)

## 手順

1. **PR 情報取得**: `gh pr view <N> --json number,title,body,url,author,headRefName,state` + `gh pr diff <N> --name-only`。PR コメント・inline comments・reviews も取得
2. **概要欄の品質評価**(コードを読む前に): ①変更前の問題の説明 ②問題→解決ペア ③変更範囲の明確さ ④実装者の理解、の 4 項目を OK/NG 評価
3. **レビュー worktree を作って実測検証**(このスキルの核。主張を読むのではなく再現する):
   ```bash
   cd <repo>
   git worktree add ../<repo>-review-<略称> origin/<branch> -b review/<branch短縮>
   cd ../<repo>-review-<略称>
   # .env 等のローカル秘匿設定が必要なら元 worktree からコピー
   # セットアップ〜検証コマンドは repo の流儀に従う(例: make install / npm ci → typecheck → test → build)
   ```
   PR 本文のテスト数・green 主張・「無改変」主張・インフラ上の主張(`gcloud` / `aws` 等で実環境を直接確認)は**全て実測で裏取り**する。docs PR なら file:line 引用を現物と突合する。dev server が必要な JS/フロントエンド repo では `portless` を使う
4. **Codex 相談(2〜3 往復)**: 1 巡目 = 概要欄と差分の整合性 + 命名/設計の既存慣習との一致。2 巡目 = バグ・脆弱性の深掘り(1 巡目で拾えなかった領域を明示指定)。各プロンプトに必ず含める: 作業ディレクトリ(レビュー worktree)/ PR 本文の主張の要約 / **相談元の事前検証結果と仮見解**(Codex に反証させる)/ 「指定観点以外も幅広く探索して」
5. **Codex 指摘の全数検証**: 鵜呑みにしない。各指摘を現物(コード・実環境・移植元/参照実装があればそれも)で確認し、同意/不同意を理由付きで記録。**Codex と見解が食い違う点は価値ある情報として必ず報告書に残す**(例: Codex「Not ready」vs レビュアー「feature flag OFF で影響が閉じているのでマージ可 + 持ち越し issue 化」)
6. **報告書作成 → 保存 → 投稿**:
   - shokai sanity-review の TEMPLATE.md 構成(対話コンテキスト / 概要欄評価 / 整合性 / 命名・設計 + 長期考察 / バグ調査 / 考慮漏れ / 発生した問題 / 結論)に従う
   - `.dev/sanity-review/<YYYY-MM-DD>-pr<N>-sanity-review.md` に保存(`.dev/` が gitignore されていることを確認。されていなければ追加を提案)
   - `gh pr comment <N> --body-file .dev/sanity-review/<file>.md` で投稿
7. **持ち越し事項の issue 化**: 「マージは妨げないが後続で必ず対処すべき」指摘は、該当する仕様書・計画書への反映アクションを含む issue として起票する(後続の作業者・エージェントが拾える状態にする)。再レビュー(反映確認)は同じファイル命名で `-followup-review.md` を作る
8. **後片付け**: レビュー完了後、レビュー worktree を `git worktree remove` で削除する

## 判定の較正

- **修正必須** = 事実の不一致(数値の矛盾、file:line のズレ等、ドキュメントの信頼性を壊すもの)
- **マージ前推奨** = 認可境界・回帰ガードなど、後続実装が確実に踏む欠陥
- **持ち越し可** = TODO 明示の暫定実装・feature flag OFF で影響が閉じているもの → issue 化して次フェーズ仕様に反映
- feature gate で本番影響が closed な指摘は、Codex が blocking と言ってもマージを止めない(開発の回転速度を優先し、仕様反映で担保する)

Versions

The database has no other skills named github-pr-sanity-review.

Database snapshot: 13.11.2026 · package version 6d316ae99d97 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100sanity-review
    PRのレビュー報告書を作成する。bugや脆弱性の調査だけでなく、exportされた対話コンテキスト・PR概要欄・実装されたコードの整合性を確認し、実装者の正気を疑う。 ユーザーが「PRのレビュー報告書を書いて」「対話コンテキストと共にコードレビューして」「このPRの正気を疑って」と言った時に使用する。
  • 100sanity
    Expert Sanity.io headless CMS assistance covering GROQ queries, Content Lake, schema definitions, and Sanity Studio. Use when building structured content platforms and headless digital experiences.
  • 90sanity-visual-regression
    Add, review, and maintain Chromatic visual regression coverage in the Sanity monorepo via dev/storybook stories, the vitest browser-mode suite, and Playwright e2e snapshots. Use when adding visual test coverage, writing stories, reviewing Chromatic diffs, working on the…
  • 100sanity
    Sanity is a headless CMS that stores structured content in a hosted Content Lake, edited in a React-based Studio and queried with GROQ. Use when defining Sanity schemas, writing GROQ queries, configuring Sanity Studio, rendering Portable Text, or wiring Sanity into Next.js with…
  • 100sanity-config-reducers
    Add and review Sanity config properties that are reduced across root config and plugins. Use when adding beta flags, feature config, workspace/source options, default plugin gates, or resolved Source fields in packages/sanity/src/core/config.
  • 100sanity-webhooks
    Receive and verify Sanity GROQ-powered webhooks. Use when setting up Sanity webhook handlers, debugging signature verification with the sanity-webhook-signature header, or handling Content Lake document create/update/delete events for cache revalidation and search reindexing.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.