本文へ移動
cccskills
無料GitHub で公開

review-gate

Use before an agent-produced diff is committed, pushed, opened as a PR, merged, landed, or applied to user files when explicit implementation approval is missing. Trigger for review gate, review pack, approve before landing, diff first then land, human approval, merge gate, commit gate, push gate, or PR readiness. Produces a concise review pack, records risks and verification, and blocks landing until a human explicitly approves or approves with required fixes.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md4.3 KB
  • assets/review-pack-template.md459 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Review Gate

Use this skill as the last-mile safety checkpoint for agent-generated changes. It complements PR review tools; it does not replace code review, CI, or human approval.

Use assets/review-pack-template.md when the user needs a reusable review pack shape.

When To Run

Run before any of these actions when an agent-generated diff is involved:

  • commit
  • push
  • open or update a PR
  • merge or land
  • apply a generated patch to user files when the user has not already approved that exact implementation path

Read-only review, planning, issue triage, and local exploration do not require this gate unless the next step would land or publish changes.

Operating Contract

  • Direct actions: inspect diffs, collect verification evidence, and draft the review pack.
  • Escalate before: commit, push, PR creation, merge, branch deletion, or applying a generated patch when the user has not approved that exact action.
  • Evidence-backed pushback: block landing when verification is stale, sensitive surfaces lack review, or approval is ambiguous.
  • Feedback loop: convert repeated review findings into new checklist items, verification commands, or Review Pack risk prompts.

Gate States

StateMeaningAllowed next action
draft_packReview pack is being assembled.Inspect diff and verification only.
needs_fixesBlocking risks or missing evidence exist.Patch and rerun the gate.
awaiting_humanPack is complete but no human approval exists.Stop before commit, push, PR, merge, or apply.
approvedHuman explicitly approved the pack in the current thread.Proceed with the named action only.
approved_with_fixesHuman approved after specific fixes.Apply fixes, verify, and record evidence before landing.

Agents must not self-approve. Prior CI success, a reviewer lane, or a green local test is evidence for the pack, not approval.

Gotchas

  • Approval is action-specific. "Commit it" does not mean "merge it."
  • A reviewer lane is independent evidence, not human approval.
  • If a fix changes the diff after approval, refresh verification and update the pack before landing.

Review Pack

Produce this compact pack:

review_gate:
- intent:
- diff_summary:
- files_changed:
- driving_skill_or_issue:
- risks:
- missing_tests_or_verification:
- commands_run:
- evidence:
- open_questions:
- approval_needed_for:
- decision:

Keep findings ranked by severity. Include exact file paths, PR numbers, issue numbers, command names, and current head SHA when available.

Decision Rules

  • If verification is stale, missing, or tied to a different head SHA, set needs_fixes.
  • If the diff touches auth, payments, secrets, permissions, innerHTML, eval, shell execution, generated registry, hooks, or high-context files, call that out explicitly.
  • If user approval is ambiguous, set awaiting_human and ask for the named action only.
  • If the user approves, do exactly the approved action. A commit approval is not automatically a merge approval.
  • If a required fix changes the diff, rerun the relevant verification and update the pack before landing.

Integration Points

flowguard should call this gate at landing checkpoints. Queue skills may use a reviewer lane for independent findings, but the Review Gate still records the human-facing pack and approval state.

For GitHub PRs, combine this gate with current remote truth:

  • PR head SHA
  • check rollup
  • merge state
  • GraphQL reviewThreads
  • linked issue intent

Verification

For Spellbook changes, the pack usually cites:

git diff --check
python3 ./scripts/validate_skills.py --check
python3 ./scripts/audit_skill_quality.py skill-name

Use project-specific tests for code changes. If a command cannot run, report the precondition and keep the decision out of approved.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Audit and organize AI coding-agent instructions, including AGENTS.md, CLAUDE.md, skills, and agent definitions. Use when the user asks to diagnose conflicting instructions, excessive approval pauses, broad skill triggers, duplicate guidance, or broken instruction references, or to clean up that instruction set. Ordinary code review, Markdown editing, or application debugging alone does not trigger this workflow. Inspection stays read-only; apply changes when authorized.

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/spellbook2872026年10月8日 更新

Generate or update repository-specific AGENTS.md instruction files from real repo evidence. Use when asked to create, design, scaffold, split, or improve root or scoped AGENTS.md files for Codex/Claude/agent workflows, especially when a repo needs directory-specific rules, validation commands, generated-file boundaries, or a short agent onboarding router.

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/spellbook2872026年10月8日 更新

REST/GraphQL/gRPC API design best practices. Use when designing APIs, defining contracts, handling versioning. Covers OpenAPI 3.2, GraphQL Federation, gRPC streaming.

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/spellbook2872026年10月8日 更新

Mobile app UI design expert for iOS and Android. Use when designing app interfaces, creating design systems, ensuring accessibility, or following platform guidelines. Covers Material Design 3, Human Interface Guidelines, color theory, typography, and 2025 trends.

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/spellbook2872026年10月8日 更新

End-to-end app feature inventory and user-story testing workflow with a canonical tracker. Use when the user asks to audit every feature, derive expected behavior from code, test user journeys, or explicitly fix and retest documented UX or logistical defects.

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/spellbook2872026年10月8日 更新

Design architecture foundations before implementation. Use when asked to design or refactor architecture, choose Rust/Go crate, package, module, runtime, workflow, or service boundaries, compare mature project architecture, prevent stacked one-off PRs, audit migration debt in existing repos, or produce a spec before coding.

日本語の概要は準備中です。原文の説明を表示しています。

majiayu000/spellbook2872026年10月8日 更新

majiayu000 のスキルをすべて見る

このスキルの問題を報告する