plugin/plangate/skills/pr-decision/SKILL.md
gate status + evidence status + review findings + unresolved risks + rollback plan から PR 可否を判定する。判定根拠を structured output で出力し、マージ可能かどうかを明示する。
npx skillsauth add s977043/plangate pr-decisionInstall 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.
Evidence Ledger + Review Gate + GateStatus + Rollback Plan の状態から PR 可否を判定し、 判定根拠を structured output で出力する。
NO PR WITHOUT EVIDENCE-BASED GATE PASSAGE
証拠なしの PR 作成を防ぐ。全ての Gate が通過していることを確認してから PR を作成する。
checks オブジェクト(PASSED / BLOCKED)status(passed / failed / skipped)plan.md の Risks & Mitigations で未解決のもの## PR 判定レポート
### 判定: {APPROVE | BLOCK | CONDITIONAL}
### Gate Status
| Gate | 状態 |
|------|------|
| Design Gate | {passed / blocked / skipped} |
| TDD Gate | {passed / blocked / skipped} |
| Review Gate | {passed / blocked / skipped} |
| Completion Gate | {PASSED / BLOCKED} |
### Evidence Status
- Overall: {passed / failed / skipped}
- Missing: {欠落している証拠(なければ "なし")}
### Review Findings サマリ
| Severity | 件数 |
|----------|------|
| critical | {N} |
| major | {N} |
| minor | {N} |
| info | {N} |
### Unresolved Risks
- {未解決リスクのリスト(なければ "なし")}
### Rollback Plan
- 存在: {あり / なし}
- 内容の妥当性: {適切 / 不足}
### 判定根拠
{判定理由を 3〜5 行で記述}
### アクション
- {次のアクション(マージ可能 / 修正が必要な項目)}
| 判定 | 条件 | |------|------| | APPROVE | Completion Gate PASSED + Evidence Ledger passed + critical finding = 0 + Rollback Plan あり(critical モード) | | BLOCK | Completion Gate BLOCKED、または critical finding >= 1、または Evidence Ledger failed | | CONDITIONAL | major finding >= 1 かつ critical = 0、または minor リスクが残存 → 条件付き承認(担当者の判断) |
以下の形式で入力を収集する:
{
"gateStatus": {
"completionGate": "PASSED | BLOCKED",
"checks": {
"designGate": "passed | blocked | skipped",
"tddEvidence": "passed | blocked | skipped",
"reviewGate": "passed | blocked | skipped",
"evidenceLedger": "passed | blocked | skipped",
"humanApproval": "passed | blocked | skipped",
"rollbackPlan": "passed | n/a | blocked"
}
},
"evidenceStatus": {
"status": "passed | failed | skipped",
"missingEvidence": ["<欠落している証拠>"]
},
"reviewFindings": [
{
"severity": "critical | major | minor | info",
"description": "<finding の説明>",
"resolved": true
}
],
"unresolvedRisks": ["<未解決リスクの説明>"],
"rollbackPlan": {
"exists": true,
"adequate": true
}
}
以下のいずれかに該当する場合、判定を BLOCK とする:
gateStatus.completionGate === "BLOCKED"reviewFindings に severity === "critical" が 1 件以上あるevidenceStatus.status === "failed"BLOCK でない場合、以下のいずれかに該当する場合、判定を CONDITIONAL とする:
reviewFindings に severity === "major" が 1 件以上あるunresolvedRisks が 1 件以上あるBLOCK でも CONDITIONAL でもない場合、判定を APPROVE とする。
「出力: PR 判定レポート」のフォーマットで結果を出力する。
入力例(APPROVE):
{
"gateStatus": {
"completionGate": "PASSED",
"checks": {
"designGate": "passed",
"tddEvidence": "passed",
"reviewGate": "passed",
"evidenceLedger": "passed",
"humanApproval": "passed",
"rollbackPlan": "n/a"
}
},
"evidenceStatus": { "status": "passed", "missingEvidence": [] },
"reviewFindings": [
{ "severity": "minor", "description": "変数名の改善提案", "resolved": false }
],
"unresolvedRisks": [],
"rollbackPlan": { "exists": false, "adequate": false }
}
出力例(APPROVE):
## PR 判定レポート
### 判定: APPROVE
### Gate Status
| Gate | 状態 |
|------|------|
| Design Gate | passed |
| TDD Gate | passed |
| Review Gate | passed |
| Completion Gate | PASSED |
### Evidence Status
- Overall: passed
- Missing: なし
### Review Findings サマリ
| Severity | 件数 |
|----------|------|
| critical | 0 |
| major | 0 |
| minor | 1 |
| info | 0 |
### Unresolved Risks
- なし
### Rollback Plan
- 存在: なし
- 内容の妥当性: — (standard モードのため任意)
### 判定根拠
Completion Gate が PASSED となっており、全ての必須 Gate を通過している。
Evidence Ledger の status は passed で証拠が揃っている。
critical / major finding は 0 件であり、minor finding 1 件はマージの障害とならない。
Rollback Plan は standard モードのため必須ではない。
### アクション
- PR 作成・マージ可能
- minor finding(変数名改善)は次スプリントの V2 候補として記録推奨
completion-gate.md(Gate Status の詳細)evidence-ledger.md(Evidence Status の詳細)review-gate.md(Review Findings の詳細)skill-policy-router(GatePolicy・requiresWorktree)docs/workflows/05_verify_and_handoff.mdtools
PlanGate の TASK-XXXX 作業コンテキストを Progressive Disclosure で読込・更新する。Use when: セッション再開時、フェーズ遷移時、status.md/current-state.md/handoff.md を更新したい時。
development
Evaluate and improve an existing Codex skill using explicit success criteria and small controlled changes. Use when the user asks to optimize a skill, reduce over-triggering or under-triggering, improve reliability, tighten instructions, or add evals for a skill. Also trigger on "スキルを改善して", "スキルを最適化して", "スキルの品質を確認して".
development
Create an operating policy and roadmap for a live portfolio of Codex skills. Use when the user asks to organize, govern, audit, measure, retire, or scale skills already used by a team or repository. Also trigger on "スキルの運用計画", "スキルポートフォリオ", "スキルロードマップ", "スキルを整理して".
development
Design a new Codex skill from a concrete use case and produce a repo-ready skill package. Use when the user asks to create a new skill, define a skill's responsibility, draft SKILL.md, choose frontmatter, design supporting files, or prepare eval criteria for a new skill. Also trigger on "スキルを作りたい", "スキルを作って", "スキルを追加して", "新しいスキル", "SKILL.md生成".