plan-review-gate

在保存了非平凡计划或决策的 RFC 后使用,对计划进行“故障关闭”式的可行性、完整性和一致性审查,以决定是否阻止执行。

仓库最近推送
GitHub Stars
167
Forks
25
Issues / PRs
2

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "plan-review-gate":https://skillpi.com/zh/skills/deepskill-a26edd9fef3b89df51840611358e9a80f0964105528b094e91f0a22e56ee49c6。安装前核对上游来源和版本:https://github.com/romiluz13/cc10x。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在保存了非平凡计划或决策的 RFC 后使用,对计划进行“故障关闭”式的可行性、完整性和一致性审查,以决定是否阻止执行。

0 下载

介绍来源: third_party · romiluz13 · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: plan-review-gate
description: "Use after saving a non-trivial plan or decision RFC when a fail-closed feasibility, completeness, and alignment review must block execution."
allowed-tools: Read Bash Grep Glob
user-invocable: false

Spec Review Gate

Core principle: No execution plan or decision RFC reaches the user without surviving adversarial scrutiny. No leniency. "Close enough" is FAIL. A structurally neat but repo-wrong plan is FAIL.

How it works: This skill runs inline in the calling agent's context (no subagents). The calling LLM acts as an independent auditor, reads the saved artifact, and checks it against 3 criteria using Read/Grep/Glob. The value is fail-closed blocking and adversarial framing, not reviewer isolation — keep the auditor posture, but do not claim independence the gate doesn't have.

When to Skip

Skip when artifact is truly trivial: Single-file fix, copy edit, or config tweak with <3 changes and no architecture choice → return SPEC_GATE_PASS immediately.

The 3 Checks (Run in Sequence)

Check 1: Feasibility — Can this be executed against the real codebase?

Run these verifications using Read/Grep/Glob:

Criterion How to verify Blocking if
Artifact file exists on disk Glob(pattern="{plan_file_path}") where plan_file_path is the path from the calling agent's context Returns 0 matches
File paths exist Glob(pattern="{path}") for every referenced file Any path returns 0 matches and doesn't exist
Codebase reality check is present Read artifact for Codebase Reality Check Non-trivial plan omits repo-grounded verification of existing code
Dependency ordering Read plan phases — do later phases depend on earlier ones only? Circular or forward-reference dependencies
Technical approach matches codebase Read 1-2 existing files in the affected area Proposed patterns/libs differ from what codebase actually uses
No unstated infra assumptions Read plan for external services, env vars, DBs Plan silently assumes infra that doesn't exist
No invented or unverified file/module assumptions Compare claimed touched surfaces to repo reality Artifact presents guessed files/modules as verified facts
Plan mode fits the task Read request + artifact: direct, execution_plan, or decision_rfc Request changes ≥3 files or any contract/schema/auth surface while mode is direct; or request asks for a decision between alternatives and mode is not decision_rfc
Verification rigor fits risk Check verification_rigor against the requested work Critical-path work is missing critical_path rigor or claims proof it never defined

Critical-path work = auth, payment, data-destructive operations, migrations, or work the user labeled critical.

Check 2: Completeness — Does it cover the full request?

Read the user's original request and compare against the plan:

Criterion How to verify Blocking if
All requirements mapped List each sentence of the user request; cite the plan item covering it Any user requirement has no corresponding plan item
Verification steps defined For each plan item, find its named test, command, or checklist Any change has no way to verify it worked
Edge cases addressed For each input surface the plan touches, find its empty, invalid, and failure case An input surface's empty, invalid, or failure case is neither named nor covered by an explicit "why none applies" statement
Cross-file integration Trace each touched surface to the callers/importers the plan names missing touched surfaces or integration points
Plan-vs-code gaps surfaced Read the artifact for the mismatch table; spot-check one claim against the code A non-trivial plan omits the concrete mismatch table or hides contradictions with current code
Assumption ledger is honest Read each important claim for its classification tag Important claims are not classified as proven_by_code, inferred, or needs_user_confirmation
Phase dependency map is present Read each phase for its depends-on/enables statements Non-trivial phases do not say what they depend on or what they enable
Durable Decisions present for multi-phase plans For multi-phase plans, read for a foundational-decisions section A multi-phase plan omits foundational decisions (routes, schema, models, auth, third-party boundaries) that all phases should reference
Decision-grade content present when needed For decision_rfc, read for alternatives, drawbacks, and references sections A decision_rfc is missing alternatives, drawbacks, or references
Critical-path spec present when needed For critical_path, read for each of the five required sections A critical_path artifact is missing behavior contract, edge-case catalog, provable properties, purity boundary, or verification strategy

Check 3: Scope & Alignment — Is it right-sized and faithful?

Criterion How to verify Blocking if
Matches user request Re-read the request; diff its ask against the plan's stated goal Plan solves different problem or adds unrequested features
No scope creep For each plan item, name the requirement it serves Extra abstractions, refactoring, or features beyond the request
No under-scoping List the request's direct implications; find each in the plan Direct implications of the request are omitted
Execution order is real Walk the phases in order; check each prerequisite exists in an earlier phase wrong execution order or missing prerequisites
Complexity proportional For each new file, abstraction, or dependency, cite the requirement row that needs it The plan introduces a file, abstraction, or dependency that no requirement row maps to
Defaults are framed honestly Check each recommended default is listed as still-open A recommended default is treated as approved instead of still-open
Agreement fidelity holds Read Differences from agreement; cross-check its claims against the body Differences from agreement is missing, hidden, or contradicted by the body
Human layer matches execution contract Compare each summary claim to the detailed plan body Top summary or recommendation contradicts the detailed plan body
Hidden future work is explicit Search the plan for "later", "follow-up", "eventually"; check each is explicit scope Unscoped follow-on work is buried behind vague “later” language
Architecture contradictions are surfaced Compare the plan's patterns to existing ADRs and code patterns contradictions with existing architecture/patterns are hidden instead of made explicit

Workflow

1. Check if trivial → skip if yes (return SPEC_GATE_PASS)
2. Run Check 1: Feasibility (use Read/Grep/Glob to verify file paths)
3. Run Check 2: Completeness (read request vs plan)
4. Run Check 3: Scope & Alignment (read request vs plan)
5. Collect findings:
   - Zero BLOCKING issues across all 3 checks → SPEC_GATE_PASS
   - Any BLOCKING issue → SPEC_GATE_FAIL with specifics
   - There is no "APPROVED WITH COMMENTS" — comments get ignored; FAILs get fixed
6. IF SPEC_GATE_FAIL and iteration < 3:
   a. Present blocking issues clearly
   b. Revise the plan to address them
   c. Re-run checks (increment iteration counter)
   <!-- CC10X-M9: iteration counter is in-context only — not persisted to memory. If compaction occurs mid-retry, counter resets to 0 and gate may retry more than 3 times. Acceptable for now (gate still converges). -->
7. IF SPEC_GATE_FAIL after 3 iterations → ESCALATION: emit a blocking review result and stop — three failed revisions means the premise is wrong, not the wording

Output Format

SPEC_GATE_PASS

## Spec Gate — SPEC_GATE_PASS (iteration N of 3)

| Check | Result | Key Finding |
|-------|--------|-------------|
| Feasibility | PASS | [evidence: file paths verified / patterns match] |
| Completeness | PASS | [evidence: all N requirements mapped / required decision or proof sections present] |
| Alignment | PASS | [evidence: artifact matches request, no hidden defaults or scope creep] |

SPEC_GATE_FAIL

## Spec Gate — SPEC_GATE_FAIL (iteration N of 3)

| Check | Result | Blocking Issues |
|-------|--------|-----------------|
| Feasibility | PASS | — |
| Completeness | FAIL | [N] blocking issues |
| Alignment | FAIL | [N] blocking issues |

### Blocking Issues (MUST ADDRESS before returning PLAN_CREATED or DECISION_RFC_CREATED)
- [Check]: [specific issue with evidence]

Escalation (3/3 iterations, still failing)

## Spec Gate — ESCALATION REQUIRED (3/3 iterations exhausted)

### Remaining Blocking Issues
[List by check with evidence]

→ Do NOT question the user from this skill. Return blocking issues only. No suggestions, no softening, no collaborative rewrite advice. The planner decides how to revise or escalate.

Anti-Patterns

Anti-Pattern Why Wrong
Skipping file path verification Fabricated paths are the #1 plan failure mode
Accepting repo-agnostic summaries A clean summary is worthless if the plan ignores real code constraints
Treating SPEC_GATE_FAIL as advisory The gate must block PLAN_CREATED / DECISION_RFC_CREATED
Skipping for "simple" plans Read the skip criteria — only truly trivial plans qualify
Accepting SPEC_GATE_PASS without evidence Each check needs cited proof, not "looks fine" or "seems reasonable"
Ignoring plan-vs-code contradictions Contradictions must be surfaced, not rewritten as assumptions
Reporting suggestions instead of verdicts This gate is an auditor, not a collaborator

版本历史

  1. v12.8.0 GitHub ↗
    原版更新说明

    ## v12.8.0 — cc10x-guide skill + documentation overhaul User feedback drove a documentation-first release: the README was a reference manual instead of a landing page, and the plugin shipped no way to ask Claude about cc10x itself. Two behavioral fixes fell out of the setup-correctness audit. ### Added - **New skill: `cc10x-guide`** (19 → 20 skills) — model-invoked help desk for cc10x itself. Answers "what is cc10x", "how do I configure it", "why isn't it activating" with short authoritative answers plus pointers to the canonical on-disk files (README sections, `claude-settings-template.json`, memory contract, router references). Lean (~145 lines), pointer-based, read-only by contract — negatively scoped in its description so work requests still route to `cc10x-router` and upgrades to the `update` skill. - **README restructured for the <5-minute user** — Quick Start moved directly under Install; How It Works reduced to one diagram + one paragraph; all architecture content collapsed into a `<details>` deep dive; version history collapsed; HTML explorers linked from the hero. No content deleted — everything moved or folded. ### Fixed - **Setup-created `patterns.md` violated the memory contract.** The README setup flow emitted `## Architecture Patterns` / `## Code Conventions` and omitted the contract-required `## Project SKILL_HINTS` Edit anchor — agents anchoring to that heading failed against setup-created files. The setup template now emits exactly the canonical headings from `memory-file-contracts.md`. - **Permission templates unified.** README and `claude-settings-template.json` had drifted in both directions and both missed commands every workflow runs. Both now carry the same 14-entry list, adding `Bash(git rev-parse:*)` (phase base SHAs), `Bash(python3:*)` (router-run `review_package.py` / `phase_brief.py`), `Bash(git blame:*)`, `Bash(git branch:*)`, and `Bash(mkdir -p docs/solutions)`. `Write(docs/*)` remains unprompted-by-default deliberately — outward-facing artifacts keep their approval friction. ### Changed - **`doc_consistency_check.py` extended** — now also asserts `marketplace.json`'s `metadata.version` and `plugins[0].version` match `plugin.json`, closing the version-drift seam on the marketplace install surface. - **Version bumped to 12.8.0** in all locations: `plugin.json`, `marketplace.json` (3 strings), README banner + footer, docs status notes (5 files). ### Skill count 19 → 20 skills (excluding router, per `doc_consistency_check.py` counting rule)

  2. v11.1.0 GitHub ↗
    原版更新说明

    Minor release — all changes are **additive** over v11.0.0. Driven by a system-level architecture comparison against superpowers + matt-pocock that honestly mapped where cc10x leads (back-half verification: independent verifier + REVERT + test-honesty gates, parallel silent-failure-hunter, fail-closed hooks) and where it trailed (the execution engine). This closes the engine gap without disturbing the per-phase build loop, which stays the default. ## Execution engine - **New runnable scripts** `cc10x_phase_brief` + `cc10x_review_package` (dependency-free) — produce the dispatch-by-reference brief and the recorded-`BASE..HEAD` diff package. Resolves a live contradiction where the policy + reviewer relied on a diff package no script produced. - **Recorded-BASE diffing** across 4 agents — kills lossy `HEAD~N` / working-tree truncation that dropped earlier commits of a multi-commit TDD phase from review. - **Reviewer SPEC_COMPLIANCE verdict split** (Missing / Extra / Misunderstood), separate from code quality. - **Inline no-subagent execution fallback** — keeps the fail-closed gates when subagents are unavailable or work is too coupled to split. - **Per-TASK dispatch** as an opt-in mode (per-phase stays default), optional final whole-branch review, on-BLOCKED-change-something rule, feedback-loop-first debugging, brainstorming glossary + synthesize-now. ## Four net-new skills (19 → 23) - **receiving-code-review** — verify human/external feedback before agreeing (closes the ungoverned PR-comment loop). - **codebase-deepening** — deletion-test retrofit for shallow LLM-grown modules. - **frontend-design-critique** — two isolated assessments + anchored rubric + AI-slop ban-list, RTL-aware. - **handoff-package** — portable secrets-redacted cross-tool/session handoff. Four validators green at every commit; live harness 4/4 PASS. 🤖 Generated with [Claude Code](https://claude.com/claude-code)

  3. v11.0.0 GitHub ↗
    原版更新说明

    **First v11 release.** Three campaigns, all validator-gated (4 validators green at every commit; full live harness 4/4 PASS). ## De-version the state namespace `.cc10x/v10/` → `.cc10x/`. The version identifier now lives **only** in `plugin.json` and on GitHub — never in the on-disk state path. Fresh start: no automatic migration of existing `.cc10x/v10/` state (orphaned and ignored on upgrade). ## Revitalization - **Complexity gradient restored** — trivial BUILD work runs a reduced graph; full chain for standard/planned work, with scope/blocked escalation. - **Artifact substrate hardened** — copyable skeleton + fail-closed corruption guard. - **Router supremacy softened** — router is the default for multi-step work (not an absolute gate); `EnterPlanMode` ingestible; gated `build-finish` finishing menu. - **Doc-drift guard** — new validator keeps README counts/versions in sync with disk on every commit. - **Fork-strip** — the 4 superpowers forks trimmed to cc10x-deltas with `DIVERGENCE` notes + an eval suite. ## Upstream idea harvest (superpowers 6.0.2 + matt-pocock + superpowers-lab) Comprehensive harvest adapted to cc10x's accountability identity: - **Guard dispatch INPUTS, not just outputs** — the router self-checks its own dispatch prompts so it cannot pre-judge/soften a read-only verifier. - **Bidirectional review** — `FINDING_DISPUTED` (verifier-adjudicated), `PLAN_DEFECT`, fix-wave consolidation, re-review precondition gate. - **Baseline-before-change + feedback-loop-first debugging.** - **Test/mock honesty gates, behavioral-RED enforcement, model-tier policy, read-only ORIENT intent.** - **5 net-new skills** (14 → 19): `skill-eval-harness`, `authoring-cc10x-guidance`, `finding-duplicate-functions`, `prototyping`, `mcp-cli`. Positioning: *superpowers makes Claude capable; cc10x makes Claude accountable.* 🤖 Generated with [Claude Code](https://claude.com/claude-code)

  4. v10.1.17 GitHub ↗
    原版更新说明

    ### Reference-first skill decomposition for safer CC10X prompt growth Expanded the new `references/` pattern across the four highest-leverage advisory skills without changing router, hook, or agent orchestration. The SKILL files now stay focused on control-plane rules while the heavier checklists and playbooks load only when needed. #### Added - **Debugging references:** Root-cause playbooks and investigation hygiene for build/type failures, runtime crashes, browser issues, git bisect, context discipline, and architectural escalation. - **Code review references:** Concern-first review ordering, security checklist, and quality heuristics for maintainability, hidden failures, edge cases, and UI quick scans. - **Frontend references:** UI state/feedback guidance, accessibility and forms guidance, and performance/layout guidance for responsive behavior and color mode checks. - **TDD references:** Testing patterns, test-data/mocks guidance, and integration/live-proof escalation guidance that connects TDD to the existing CC10X live verification lane. - **Audit coverage:** `cc10x_harness_audit.py` now fails if any of the new reference files are missing. #### Changed - **4 skills slimmed under the soft prompt budget:** `debugging-patterns`, `code-review-patterns`, `frontend-patterns`, and `test-driven-development` now explicitly point to one-level-deep references following `skill-creator` progressive disclosure. - **Prompt surface inventory:** Added advisory-surface guidance for the new extracted review and TDD reference layers.

  5. v9.1.1 GitHub ↗
    原版更新说明

    ## [9.1.1] - 2026-03-07 ### MCP startup warning fix #### Fixed - Removed shipped plugin MCP config from `plugins/cc10x/.mcp.json` so CC10X no longer triggers startup warnings when Bright Data or Octocode environment variables are not configured. - Changed CC10X MCP support from plugin-bundled config to **optional user-configured Claude Code MCP servers**. The recommended server names remain `brightdata` and `octocode`. - Updated router/docs/audit language so MCP acceleration is documented as user-configured and fallback-safe instead of plugin-shipped.

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 高价值/高频刚需,直接解决用户明确的核心任务痛点——在计划或决策RFC执行前进行严格的可行性、完整性和一致性审查,防止错误执行
  • 这是一个关键的质量控制环节,显著提升执行成功率
触发精准90/100

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰
  • description明确指出了使用场景:保存了非平凡计划或决策的RFC后,必须进行故障关闭式审查时
结构规范95/100

亮点

  • Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整
  • 结构非常完整,包含核心原则、跳过条件、三个检查步骤、工作流程、输出格式和反模式
执行可靠90/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
  • 使用Read/Grep/Glob进行验证,有明确的阻塞条件和迭代机制
证据可验 (前四项均值)93/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。