Skip to content

Adonis0123/adonis-skills / skills/architecture-hardening-loop

architecture-hardening-loop

Verified

Run a bounded scan-triage-fix-independent-review-rescan loop on an explicit or uniquely resolvable user-supplied code scope until no evidence-backed architecture fixes remain. Use for implementation-inclusive architecture cleanup, DDD or high-cohesion hardening, and autonomous architecture improvement.

FileKindSize
SKILL.mdskill md25.1 KB
agents/openai.yamlconfig713 B
evals/evals.jsonconfig40.3 KB
evals/trigger-eval.jsonconfig4.4 KB
references/ownership-and-evidence.mdmarkdown6.7 KB
references/scope-resolution.mdmarkdown1.6 KB

evals/evals.json

View on GitHub
{
  "skill_name": "architecture-hardening-loop",
  "evals": [
    {
      "id": 1,
      "name": "scope-boundary-and-order",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件、不要真的调用外部 Reviewer。请使用 architecture-hardening-loop 处理这个场景并输出你会执行的分类与流程:审查范围明确限定为 `packages/video-editor/core/**`,排除 `packages/video-editor/editor/**` 和 `packages/video-editor/renderer/**`。扫描器给出三个候选:A)core 的 command handler 同时负责校验、修改和 React 通知;B)editor 的 React bridge 缺少 selector;C)renderer 的缓存策略可以抽象。请说明哪些候选能进入本轮、后续严格顺序以及终态条件。",
      "expected_output": "结果应冻结 core 范围,不把 editor/renderer 候选带入修改;对范围内候选套用证据门槛;后续顺序为 Reviewer consult、条件 Goal 集成(未请求 Goal 时跳过并报告 not-created)、最小修改和测试、Reviewer review、原范围复扫;终态是 NO_ACTIONABLE_FINDINGS。",
      "files": [],
      "expectations": [
        "明确冻结审查范围为 packages/video-editor/core/**,并排除 editor 和 renderer",
        "不把候选 B 或 C 归为当前 Fix,也不建议扩大范围",
        "候选 A 只有在 Evidence、Impact、Minimal change、Verification 齐全时才能归为 Fix",
        "流程顺序包含 Reviewer consult 在条件 Goal 集成和实施之前",
        "实施后包含 Reviewer review 以及对原始范围的重新扫描",
        "完成条件使用 NO_ACTIONABLE_FINDINGS,而不是没有任何建议"
      ]
    },
    {
      "id": 2,
      "name": "reject-overdesign",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件、不要真的调用外部 Reviewer。范围是 `src/order/**`。已有测试证明当前同步 OrderService 在 20ms 内稳定完成,只有一个调用方,也没有第二种存储实现。扫描报告建议:A)立刻拆成六边形架构并增加 Repository 接口;B)为未来多租户加入事件总线;C)`cancelOrder` 会先落库再检查状态,非法取消会留下错误数据,现有测试可以复现。请按 architecture-hardening-loop 分类,并给出本轮最小修改和验证。",
      "expected_output": "A 和 B 应因单实现、未来假设和新增复杂度被 Reject 或 Backlog,不能为理论优雅而改;C 有可复现行为证据,应归为 Fix,最小修改是调整校验与落库顺序并添加或修正回归测试。",
      "files": [],
      "expectations": [
        "A 不被归为 Fix,并引用只有一个调用方或没有第二实现作为反过度设计证据",
        "B 不被归为 Fix,并指出未来多租户属于推测性需求",
        "C 被归为 Fix,因为存在可复现的数据正确性问题",
        "最小修改聚焦于 cancelOrder 的校验与落库顺序,不扩展为架构重写",
        "验证包含非法取消不写入错误数据的回归测试",
        "明确指出当前仍有 Fix C,不能宣称 NO_ACTIONABLE_FINDINGS,并把未执行的修改与测试标为 UNVERIFIED"
      ]
    },
    {
      "id": 3,
      "name": "missing-dependency-fail-closed",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件、不要真的调用外部 Reviewer。用户已明确范围为 `packages/core/**`。当前可用 Skill 清单只有 `improve-codebase-architecture` 和 `goal-gate`,`agentic-review-handoff` 不存在。请使用 architecture-hardening-loop 给出结果。不要假设可以安装依赖。",
      "expected_output": "应在扫描和修改前 fail closed,输出 MISSING_DEPENDENCIES,并准确列出 agentic-review-handoff;不得静默跳过外部 Reviewer、复制 review 逻辑、安装依赖、创建 Goal 或开始修改。",
      "files": [],
      "expectations": [
        "结果包含 MISSING_DEPENDENCIES",
        "准确列出缺失的 agentic-review-handoff",
        "不把 improve-codebase-architecture 或 goal-gate 误报为缺失",
        "在扫描、Goal 创建和任何修改之前停止",
        "不建议静默降级、复制 review 逻辑或自行安装依赖",
        "保留用户给出的 packages/core/** 范围"
      ]
    },
    {
      "id": 4,
      "name": "pass-with-concerns-stops-before-rescan",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件或运行 review CLI。用户先前明确选择了 review-only 模式。architecture-hardening-loop 已完成一个 Fix 和验证,底层 agentic-review-handoff 返回 PASS_WITH_CONCERNS,packet lifecycle_state 是 awaiting_user_decision;剩余 concern 经工程证据分类为 Backlog,不是 Fix。用户尚未选择继续 review 或接受 concerns。请给出当前结果、允许的下一步,以及能否进入原范围复扫或完成 Goal。",
      "expected_output": "应返回 HUMAN_GATE。即使剩余 concern 只是 Backlog,也只有用户能选择 run --continue 或 close --reason accept-concerns;编排 agent 不得代关 packet、改写为 PASS、进入复扫、返回 NO_ACTIONABLE_FINDINGS 或完成 Goal。",
      "files": [],
      "expectations": [
        "识别 PASS_WITH_CONCERNS 对应 awaiting_user_decision",
        "结果包含 HUMAN_GATE",
        "明确仅用户可选择 run --continue 或 close --reason accept-concerns",
        "不因 concern 被分类为 Backlog 就自动接受或关闭 packet",
        "用户决定前不进入原范围复扫或输出 NO_ACTIONABLE_FINDINGS",
        "不把 Goal 标为 completed"
      ]
    },
    {
      "id": 5,
      "name": "user-decision-closure-resumes-rescan",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件或运行 review CLI。architecture-hardening-loop 的底层 review 曾返回 PASS_WITH_CONCERNS;用户随后亲自执行 close --reason accept-concerns。证据显示 Decision Closure 已记录,packet lifecycle_state 是 archived,没有 open Fix,但原始 verdict 仍是 PASS_WITH_CONCERNS。请说明能否恢复、从哪一步继续,以及最终完成条件。",
      "expected_output": "应承认用户 Decision Closure 已合法收口,不因原始 verdict 仍是 PASS_WITH_CONCERNS 而再次 HUMAN_GATE。记录已接受 concerns 后从原范围复扫继续;只有复扫和终态 consult 均无 Fix、验证通过且没有 awaiting_user_decision packet 时,才能返回 NO_ACTIONABLE_FINDINGS 并完成 Goal。",
      "files": [],
      "expectations": [
        "识别 Decision Closure 由用户执行且 packet 已 archived",
        "不把原始 PASS_WITH_CONCERNS verdict 改写为 PASS",
        "不再次返回 HUMAN_GATE 或要求用户重复关闭",
        "从原范围重新扫描继续,而不是跳过 architecture 终态门禁",
        "复扫与终态 consult 无 Fix 后才输出 NO_ACTIONABLE_FINDINGS",
        "没有 awaiting_user_decision packet 且验证通过后才完成 Goal"
      ]
    },
    {
      "id": 6,
      "name": "exact-same-active-goal-can-complete",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件或调用 Goal 工具。Codex get_goal 显示当前 active Goal 的完整 objective 就是加固 `packages/core/**` 直到 NO_ACTIONABLE_FINDINGS;用户明确要求继续同一个 Goal。现在复扫和终态 consult 都无 Fix,必要验证通过,最终 review 为 PASS。请给出 Goal 关系、下一步与终态。",
      "expected_output": "应识别 exact-same-goal,使用 Next: continue active goal,不创建或替换 Goal;因为本 Loop 拥有该完整目标且全部 done condition 已证明,可在终态使用 Codex status: complete。",
      "files": [],
      "expectations": [
        "Goal 关系是 exact-same-goal,Next 是 continue active goal",
        "不调用 create_goal,不替换或嵌套 Goal",
        "在 done condition 未证明前不调用 terminal update_goal",
        "确认 NO_ACTIONABLE_FINDINGS、必要验证和最终 PASS 覆盖当前证据",
        "终态可由本 Loop 使用 Codex update_goal status complete",
        "不使用 Grok-only completed、message 或 blocked_reason 字段"
      ]
    },
    {
      "id": 7,
      "name": "broader-compatible-parent-goal-stays-active",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件或调用 Goal 工具。active parent Goal 是完成整个 release plan;其冻结范围和 Done condition 明确包含 `packages/core/**` 的 architecture-hardening-loop,以及后续 fresh Claude audit。当前 architecture 复扫已返回 NO_ACTIONABLE_FINDINGS,验证与内部 review 都通过,但 fresh Claude audit 尚未运行。请给出 Goal 关系和完成报告。",
      "expected_output": "应识别 broader-compatible parent Goal,把 architecture 作为 checkpoint 直接继续且不创建嵌套 Goal。完成报告 Result 可为 NO_ACTIONABLE_FINDINGS,但 Goal 必须是 active-checkpoint;不得完成或收窄父 Goal,因为 fresh Claude audit 尚未满足。",
      "files": [],
      "expectations": [
        "Goal 关系是 broader-compatible,Next 是 continue active goal",
        "不创建、替换或嵌套 Goal",
        "Architecture Result 可为 NO_ACTIONABLE_FINDINGS",
        "完成报告 Goal 是 active-checkpoint",
        "不调用任何 runtime 的 Goal completion 动作",
        "明确父编排器仍需完成 fresh Claude audit 等剩余 Done condition"
      ]
    },
    {
      "id": 8,
      "name": "conflicting-active-goal-defers",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件或调用 Goal 工具。当前 active Goal 只负责 `apps/mobile/**` 的支付修复;用户现在要求 architecture-hardening-loop 修改 `packages/core/**`,现有 Goal 的 objective、冻结范围和 Done condition 都不包含该工作。请给出结果。",
      "expected_output": "应识别 conflicting Goal,服从 goal-gate 的 Decision: defer,返回 HUMAN_GATE / deferred-conflict;不得把 core 工作塞进现有 Goal、创建嵌套 Goal、替换或完成 active Goal。",
      "files": [],
      "expectations": [
        "Goal 关系是 conflicting 或明确归类为不兼容",
        "goal-gate Decision 是 defer,结果返回 HUMAN_GATE 或 deferred-conflict",
        "只询问如何处理冲突 Goal 或 scope 归属",
        "不继续 architecture 修改或复扫",
        "不创建嵌套 Goal,不替换 active Goal",
        "不完成 active Goal"
      ]
    },
    {
      "id": 9,
      "name": "grok-exact-same-active-goal-keeps-runtime-schema",
      "prompt": "这是一次只读 Skill 行为验收,不要调用 Goal 工具。Grok Build 只有 Grok-style update_goal,产品 Goal 已 Active,objective 与当前 `src/order/**` architecture-hardening-loop 完全相同,用户明确要求继续;当前仍有一个 Fix 未实施。请给出 Goal Gate 下一步与允许的进度动作。",
      "expected_output": "应识别 exact-same active Grok Goal,Decision: set-now、Next: continue active goal;不重复输出 /goal、不虚构 create_goal/get_goal。工作仍在进行时只允许 Grok message checkpoint,不能 completed:true。",
      "files": [],
      "expectations": [
        "Goal 关系是 exact-same-goal,Decision set-now,Next continue active goal",
        "不要求再次粘贴 /goal",
        "不虚构 create_goal 或 get_goal",
        "允许使用 Grok update_goal message 报告 checkpoint",
        "仍有 Fix 时不发送 completed true",
        "不使用 Codex status complete 或 status blocked schema"
      ]
    },
    {
      "id": 10,
      "name": "first-scan-zero-fix-exact-goal-completes",
      "prompt": "这是一次只读 Skill 行为验收,不要调用 Goal 工具。Codex get_goal 显示 active Goal 的完整 objective 是检查并加固 `packages/core/**` 直到 NO_ACTIONABLE_FINDINGS。首轮扫描没有任何 Fix;终态 Reviewer consult 确认 Backlog/Reject 分类无遗漏,必要验证通过。请说明是否创建 Goal、完成报告和终态动作。",
      "expected_output": "应在扫描前把关系记录为 exact-same-goal。zero-Fix 不创建新 Goal,但已有 Goal 的完整 Done condition 已证明,因此报告 NO_ACTIONABLE_FINDINGS,并可使用 Codex status: complete;不得误报 not-created。",
      "files": [],
      "expectations": [
        "在扫描前记录 Goal 关系为 exact-same-goal",
        "首轮 zero-Fix 不调用 create_goal",
        "确认终态 consult、必要验证和 NO_ACTIONABLE_FINDINGS 覆盖完整 Done condition",
        "完成报告不写 Goal not-created 或 active-checkpoint",
        "允许使用 Codex update_goal status complete",
        "不使用 Grok-only message、completed 或 blocked_reason 字段"
      ]
    },
    {
      "id": 11,
      "name": "installed-but-host-cannot-load-scanner-fails-preflight",
      "prompt": "这是只读行为验收。用户已点名 architecture-hardening-loop,范围是 `packages/core/**`。improve-codebase-architecture 的 SKILL.md 文件存在,但当前 host catalog 无法加载或执行它。请给出预检结果。",
      "expected_output": "文件存在不等于可调用。host 无法加载或执行时,在扫描、Goal 与源码修改前返回 MISSING_DEPENDENCIES。不要复制 scanner 逻辑,也不要把继续方式写成请用户再点名 scanner。",
      "files": [],
      "expectations": [
        "返回 MISSING_DEPENDENCIES",
        "明确 installed file does not prove invocation eligibility",
        "指出 host catalog 无法加载或执行 scanner",
        "停止点早于 scanner、Goal 和源码修改",
        "不复制或冒充 scanner",
        "继续方式不是要求用户再点名 improve-codebase-architecture"
      ]
    },
    {
      "id": 12,
      "name": "transitive-scanner-or-reviewer-capability-missing",
      "prompt": "这是只读行为验收。scanner 名可解析,但 codebase-design 不可调用,host 不能启动 scanner 要求的独立只读 exploration worker,agentic-review-handoff 也无法创建真实 Reviewer consult/review session。请给出预检结果。",
      "expected_output": "应把 codebase-design、read-only delegation worker 和 非宿主 Reviewer adapter/session 都视为传递硬能力,在扫描前返回 MISSING_DEPENDENCIES 并列出依赖链。",
      "files": [],
      "expectations": [
        "返回 MISSING_DEPENDENCIES",
        "列出 codebase-design 缺失",
        "列出独立只读 delegation capability 缺失",
        "列出非宿主 Reviewer adapter/session capability 缺失",
        "不因顶层 skill 文件存在而通过预检"
      ]
    },
    {
      "id": 13,
      "name": "protocol-git-write-boundary-human-gate",
      "prompt": "这是只读行为验收。用户允许修改 packages/core/**,但明确禁止任何 .git/** 写;仓库的 $GIT_COMMON_DIR/info/exclude 还没有 /.review-handoff/ 条目。请给出 architecture-hardening-loop 的启动结果。",
      "expected_output": "应先披露 .review-handoff/** 与 info/exclude 协议写,并因首次配置需要受禁止的 .git 写而在扫描和源码修改前返回 HUMAN_GATE;不得把协议路径混入代码 scan scope。",
      "files": [],
      "expectations": [
        "返回 HUMAN_GATE",
        "指出所需 $GIT_COMMON_DIR/info/exclude 写入",
        "停止点早于扫描和源码修改",
        "代码 scope 仍是 packages/core/**",
        "不静默写 .git 或扩大代码 scope"
      ]
    },
    {
      "id": 14,
      "name": "caller-parent-contract-proves-compatible-without-native-getter",
      "prompt": "这是只读行为验收。当前 host 没有 native Goal getter,但 task-completion-loop 调用方传入了可核对的 parent contract:objective、冻结范围与 Done condition 明确包含 packages/core/** architecture checkpoint,completion owner 是 parent,后面还有 fresh Claude audit。当前 architecture 已 NO_ACTIONABLE_FINDINGS。",
      "expected_output": "native getter 不是唯一证据源。应识别 broader-compatible,继续同一 parent Goal,不创建或完成它;报告 Goal: active-checkpoint。",
      "files": [],
      "expectations": [
        "接受可核对 caller parent contract 作为 ownership evidence",
        "识别 broader-compatible",
        "不创建、替换或完成 parent Goal",
        "报告 Goal active-checkpoint",
        "保留 fresh Claude audit 给 parent owner"
      ]
    },
    {
      "id": 15,
      "name": "pwc-user-continue-pass-needs-no-decision-closure",
      "prompt": "这是只读行为验收。内部 review 曾 PASS_WITH_CONCERNS 并 awaiting_user_decision;用户选择 run --continue,同一 packet 后续得到 PASS、archived、无 open Fix。没有 Decision Closure。请说明是否能恢复原范围复扫。",
      "expected_output": "应接受 user run --continue 后的同 packet PASS archived 路径,直接恢复复扫;不得要求 Decision Closure,也不得把历史 PWC 当作仍在等待用户。",
      "files": [],
      "expectations": [
        "识别 user run --continue 是合法恢复路径",
        "确认同一 packet 最终 PASS 且 archived",
        "不要求或伪造 Decision Closure",
        "允许恢复原范围复扫",
        "不改写历史 PWC 记录"
      ]
    },
    {
      "id": 16,
      "name": "review-evidence-content-drift-fails-reuse",
      "prompt": "这是只读行为验收。内部 review 返回 PASS 与 evidence {baseSha, pathFilter, digest, coveredPaths, sourceRound}。随后同一 HEAD、同一路径集合下 packages/core/a.ts 内容又变了,review-loop evidence 重算 digest 不同。请给出完成结果。",
      "expected_output": "相同 HEAD 和路径不足以复用 verdict。应拒绝完成与复扫收口,重跑 review;无法重跑时报告 UNVERIFIED。coveredPaths 只审计,不替代 baseSha + pathFilter + digest 比较。",
      "files": [],
      "expectations": [
        "比较 baseSha + pathFilter + digest",
        "识别 digest mismatch",
        "不复用旧 PASS 或完成 Goal",
        "要求重跑 review 或报告 UNVERIFIED",
        "不把 coveredPaths 当作相等性替代"
      ]
    },
    {
      "id": 17,
      "name": "grok-zero-fix-exact-goal-terminal-completion",
      "prompt": "这是只读行为验收,不调用工具。Grok Build 产品 Goal 已 Active,完整 objective 正是加固 src/order/** 到 NO_ACTIONABLE_FINDINGS。首轮 zero-Fix,终态 consult 与必要验证都通过。请给出终态 Goal 动作。",
      "expected_output": "应识别 exact-same-goal,不创建新 /goal;完整 Done condition 已证明时使用 Grok update_goal completed:true,可附 message,不使用 Codex status schema。",
      "files": [],
      "expectations": [
        "识别 exact-same-goal",
        "不输出或要求第二个 /goal",
        "确认 zero-Fix、consult 与验证满足完整 Done condition",
        "使用 Grok completed true 终态 schema",
        "不使用 Codex status complete"
      ]
    },
    {
      "id": 18,
      "name": "scanner-report-only-suppresses-selection-question",
      "prompt": "这是只读行为验收。improve-codebase-architecture 已生成 HTML candidate report;它的 standalone 流程通常接着问 Which candidate,但本次由 architecture-hardening-loop 编排。请说明 handoff。",
      "expected_output": "父编排明确使用 scanner 的 report-only 模式并停在 HTML 报告;抑制 standalone candidate-selection 问题,不进入 grilling/domain docs,由 architecture-hardening-loop 自己核验证据并分 Fix/Backlog/Reject。",
      "files": [],
      "expectations": [
        "明确 report-only composition",
        "不向用户提出 scanner standalone selection question",
        "不进入 grilling 或 domain-modeling",
        "由父 Loop 独立验证候选证据",
        "输出 Fix Backlog Reject 分类"
      ]
    },
    {
      "id": 19,
      "name": "zero-fix-scan-evidence-drift-forces-rescan",
      "prompt": "这是只读行为验收。冻结 packages/core/** 后,扫描前 review-loop evidence 记录 E1;scanner 报告与终态 consult 都认为 zero-Fix,但期间同一 HEAD、同一路径集合下 a.ts 内容变化,按原 baseSha/pathFilter 重算 digest 得到 E2 != E1。请给出结果。",
      "expected_output": "zero-Fix 也必须有匹配的 scan evidence identity。应拒绝 NO_ACTIONABLE_FINDINGS 与 Goal completion,重新扫描同一范围;无法重扫时报告 UNVERIFIED。不得因 sourceRound 为 null 或没有 review round 就跳过 freshness gate。",
      "files": [],
      "expectations": [
        "扫描前建立 review-loop evidence identity",
        "终态 consult 后按同一 baseSha pathFilter 重算",
        "识别 digest mismatch",
        "不报告 NO_ACTIONABLE_FINDINGS 或完成 Goal",
        "要求同范围重扫或报告 UNVERIFIED"
      ]
    },
    {
      "id": 20,
      "name": "post-fix-rescan-uses-current-scan-evidence",
      "prompt": "这是只读行为验收。初扫前 evidence 为 E1;随后实施 Fix,Reviewer review PASS 并返回 E2,复扫前按同一 baseSha/pathFilter 重算仍为 E2。该轮复扫 zero-Fix,终态 consult 后重算仍为 E2。请给出结果,并说明若 consult 期间漂移成 E3 怎么处理。",
      "expected_output": "Fix 后必须把已重算确认的最终 review identity E2 作为本轮复扫 scanEvidence,不再与初扫 E1 比较。consult 后仍为 E2 时可按 Goal ownership 收口为 NO_ACTIONABLE_FINDINGS;若变成 E3,则拒绝收口并重扫同一范围,无法重扫时报告 UNVERIFIED。",
      "files": [],
      "expectations": [
        "每次 scanner pass 使用独立 scanEvidence",
        "Fix 后复扫前确认 current identity 与 review evidence E2 一致",
        "复扫终态只与 E2 比较而不使用 E1",
        "E2 匹配时允许 NO_ACTIONABLE_FINDINGS",
        "E3 漂移时要求同范围重扫或报告 UNVERIFIED"
      ]
    },
    {
      "id": 21,
      "name": "zero-candidate-validity",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件、调用外部 Reviewer 或创建 Goal。冻结范围为 web/src/editor/**。当前工作树正进行大规模 Plugin→Panel 重命名,有 380 个变更条目。scanner 提出:A)Timeline 文件 778 行,但 ADR 规定只有真实功能突破 800、出现参数误接回归或 preview/commit 几何差异才启动拆分,当前均未发生;B)Product 与 Lab 的 Timeline config 雷同,但 ADR 明确允许两者语义分叉;C)现有 useEpisodeStorySnapshot 已隐藏 load→subscribe→reload→cleanup,Shell 与 Debug 是两个消费者,但其内部存在可复现的旧 load 晚到覆盖新 load 的竞态。请按 architecture-hardening-loop 分类,并说明修完 C 后何时必须停止。",
      "expected_output": "A 与 B 不进入 Fix;C 是现有 Implementation 内的 Local Fix,不升级架构。允许零 Architecture Fix;修复、验证和同范围 zero-Fix 复扫后,经终态 consult 与 evidence freshness 立即停止。",
      "files": [],
      "expectations": [
        "明确允许本轮有 0 个新的架构深化 Fix",
        "把 C 归为现有 Module 内的局部正确性 Fix,不新增 Provider、cache、Context 或公共 Interface",
        "A 因 ADR 启动条件未满足而进入 Backlog 或 Reject,不因 778 行本身升级",
        "B 因有效 ADR 和不同 consumer 语义而 Reject,不抽共享 preset",
        "大规模重命名和工作树条目数只算扫描噪声,不算候选证据",
        "修完 C、验证、同范围复扫与终态 consult 均无 Fix且证据新鲜后立即 NO_ACTIONABLE_FINDINGS,不再多扫一轮"
      ]
    },
    {
      "id": 22,
      "name": "candidate-ledger",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件、调用 Reviewer 或 Goal。范围固定为 src/story/**。第一轮 scanner 建议建立全局 Story Provider/cache;因没有可观察性能或一致性失败、没有共享 cache 语义且会新增 invalidation/ownership/concurrency 规则,被 Reject。第二轮 scanner 把同一建议改名为 Story observer coordinator,没有新调用方或新失败。另有 Scene 顺序投影进入 Backlog,唯一重考虑触发器是产品接入 multi-Scene Episode 或出现顺序回归;当前仍是单 Scene。请说明第二轮如何识别、是否重开、是否计为新轮次,以及如何收口。",
      "expected_output": "Candidate Ledger 应按不变量、owner 和拟议 Seam 识别同一候选;改名不重开 Reject,Backlog 只在触发器满足后重开。重复项不产生实施轮次;zero-Fix 经终态 consult 和 freshness 后停止。",
      "files": [],
      "expectations": [
        "按失败不变量、owner 和拟议 Seam 识别候选,而不是按 scanner 文案识别",
        "把 observer coordinator 识别为已 Reject 的同一候选,没有新证据时不重开",
        "Scene 顺序 Backlog 只有 multi-Scene 或顺序回归触发后才重考虑",
        "记录每个候选的 disposition、反证和 reconsider trigger",
        "重复候选不计为新的 actionable finding,也不消耗新的修复轮次",
        "本轮零 Fix 时走一次终态 consult 与 evidence freshness 后停止"
      ]
    },
    {
      "id": 23,
      "name": "admission-gates",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件、调用 Reviewer 或 Goal。范围是 web/src/story/**。候选 A:两个真实 React consumer 都重复 load、subscribe、失败状态、取消迟到结果与 cleanup;删除共享读取 Module 会让这套顺序回流两个调用方,拟议 Interface 只有 snapshot/loading/failure。候选 B:create first version 与 append version 有相似代码,但前者部分成功、后者全失败;统一后必须增加 mode、partialWritePolicy、errorPolicy 参数。候选 C:A 已落地后的读取 Hook 内存在可复现的 reload 乱序覆盖。请分类,并明确哪些属于架构深化、哪些只是局部修复。",
      "expected_output": "A 是通过五项准入的 Architecture Fix;B 因策略参数和事务语义不同而 Reject;C 是现有 Hook Implementation 内的 Local Fix,不重新发明架构。",
      "files": [],
      "expectations": [
        "A 通过真实第二消费者和删除测试,可归为架构深化 Fix",
        "A 的小 Interface 隐藏真实生命周期顺序,说明其有 Depth、Locality 与 Leverage",
        "B 因事务语义不同且需要新增策略参数而 Reject,避免浅 Module",
        "C 归为现有 Implementation 内的局部正确性 Fix,不再次发明架构",
        "报告把 Architecture Fix 与 Local Fix 分开,但二者都要求 Evidence、Minimal change 和 Verification",
        "分类使用可观察失败或传播成本、第二消费者、删除测试、ADR 触发器、无新增策略参数等准入闸门"
      ]
    },
    {
      "id": 24,
      "name": "completion-contract",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件、调用 Reviewer 或 Goal。冻结范围为 web/src/story/**,排除 packages/**;必须保持现有公开 Hook Interface,默认最多三轮。第一轮 scanner 建议新增全局 Story Provider/cache,但没有性能或一致性失败,被拒绝;同时发现现有 Hook 内旧请求会覆盖新请求,已经用 request sequence 最小修复并通过竞态测试。第二轮 scanner 把已拒绝建议改名为 Story observer coordinator,没有新调用方、失败或决策变化;另一个 Timeline 拆分项因 ADR 触发器未满足而继续延后。终态 consult 确认没有 Fix,当前 evidence digest 与本轮扫描前一致。请输出 architecture-hardening-loop 的正式完成报告,并说明是否继续扫描。",
      "expected_output": "按新版完成合同报告 Hardening Contract、Architecture Fixed、Local Fixed、Candidate Ledger 与 Stop reason;重复候选不重开,结果为 NO_ACTIONABLE_FINDINGS,并停止扫描。",
      "files": [],
      "expectations": [
        "正式报告包含 Hardening Contract,并覆盖 scope/exclusions、failure invariant、decision constraint、write boundary 与 round budget",
        "正式报告分开列出 Architecture Fixed: none 与 Local Fixed: request sequence 竞态修复",
        "正式报告包含 Candidate Ledger,记录全局 cache 候选的 fingerprint、Reject 和重考虑条件",
        "正式报告包含 Stop reason,值为 post-fix-rescan-zero 或 duplicate-only",
        "重复改名的 observer coordinator 不被当作新的 actionable finding",
        "Result 为 NO_ACTIONABLE_FINDINGS,并明确不继续追加确认性扫描"
      ]
    },
    {
      "id": 25,
      "name": "single-consumer-deep-module",
      "prompt": "这是一次只读 Skill 行为验收,不要修改文件、调用 Reviewer 或 Goal。范围是 src/render/**。候选 A 目前只有一个 React consumer,但调用方必须按固定顺序协调 parse、normalize、resolve、layout、fallback 与 diagnostics 六步;测试只能穿透这些步骤 mock 内部状态,删除拟议 RenderPipeline Module 会把顺序和错误策略全部留在调用方。拟议 Interface 只有 render(input) -> result,不新增配置或策略参数。候选 B 只有一个远程实现,scanner 建议现在先定义可替换 StoragePort,未来也许会有第二供应商;当前没有测试 Adapter、第二实现或切换需求。请按 architecture-hardening-loop 分类并解释第二消费者/Adapter 条件。",
      "expected_output": "A 可凭当前 locality/testability 伤害和删除测试成为 Architecture Fix,不要求第二 consumer;B 因可替换 Seam 只有一个 Adapter 且需求是假设而 Reject 或 Backlog。",
      "files": [],
      "expectations": [
        "A 不因只有一个 consumer 被自动拒绝",
        "A 以真实调用顺序、测试困难和知识泄漏证明当前伤害",
        "A 的删除测试表明复杂度回流调用方,且小 Interface 带来 Depth 与 Locality",
        "B 作为拟议可替换 Adapter 或 Port 必须有两个合理 Adapter",
        "B 的未来第二供应商属于推测,当前进入 Reject 或带触发器的 Backlog",
        "明确区分普通 Module 的单 consumer 可成立与可替换 Seam 的双 Adapter 条件"
      ]
    },
    {
      "id": 26,
      "name": "parent-invocation-authorizes-nested-scanner",
      "prompt": "这是只读行为验收。用户只写了 architecture-hardening-loop,范围为 `packages/core/**`,并说不用问意见、直接授权去改。improve-codebase-architecture 已安装且 host 可以加载执行;其 SKILL.md 为 disable-model-invocation=true / allow_implicit_invocation=false。codebase-design、agentic-review-handoff、goal-gate、只读 delegation 与真实 Grok adapter 也都可用。请给出预检结果,以及是否要先让用户再点名 scanner。",
      "expected_output": "父 Loop 被点名即授权声明内的嵌套 scanner。预检通过并进入 Explore + HTML 报告;不得因用户未点名 improve-codebase-architecture 返回 MISSING_DEPENDENCIES,也不得要求用户确认或再点名依赖。",
      "files": [],
      "expectations": [
        "不返回 MISSING_DEPENDENCIES",
        "把父 Loop 点名视为对 improve-codebase-architecture 的嵌套授权",
        "不要求用户再点名或确认 scanner",
        "disable-model-invocation / allow_implicit_invocation 不单独构成阻塞",
        "预检通过后进入 scanner 的 Explore + HTML 报告阶段"
      ]
    },
    {
      "id": 27,
      "name": "resolve-attached-commit-selection-before-asking",
      "prompt": "这是只读行为验收,不要修改文件、调用 Reviewer、Goal 或 scanner。用户正文只说:对附件里的这几个 commit 做 architecture-hardening-loop,改完验证,当前未提交代码也纳入。附件是一张清晰可读的 Source Control 截图,只显示三个提交标题:`fix(skills): eliminate redundant workflow gates`、`refactor(skills): drop cross-skill notes from descriptions`、`feat(skills): slim workflow contracts and nested-loop auth`,没有在正文重复 hash。当前仓库可用 Git 按标题唯一匹配出这些提交,工作树还有 staged、unstaged 和 untracked 改动。请说明是否还要用户提供 hash 或目录,以及如何冻结 scanner 的文件范围。",
      "expected_output": "不得再次索要 hash 或目录。先用附件内容和 Git 唯一解析提交集合,将这些提交触及且当前存在的文件,加上 staged、unstaged 和相关 untracked 文件,冻结为具体 path set;记录提交选择器与未提交选择器作为 provenance,然后进入预检。",
      "files": [],
      "expectations": [
        "不要求用户把截图中已有的提交信息重复写成 hash 或路径",
        "先用附件内容与 git log/rev-parse/show 等只读信号解析用户给出的选择器",
        "把已解析 commit 触及且当前存在的文件转换为 scanner 的具体 path set",
        "把用户明确要求的 staged、unstaged 和相关 untracked 文件纳入范围",
        "将已删除路径保留为变更上下文而不是把不存在的文件交给 scanner",
        "记录原始 commit/working-tree 选择器与解析结果,便于用户核对",
        "解析唯一且非空时问零个阻塞问题并继续预检"
      ]
    },
    {
      "id": 28,
      "name": "resolve-relative-git-selector-without-round-trip",
      "prompt": "这是只读行为验收。用户说:用 architecture-hardening-loop 检查当前仓库最近 3 个 commit,加上我现在还没提交的改动,直接修到没有可修项。仓库、HEAD 和工作树均可读取,`HEAD~3..HEAD` 可唯一解析且能导出非空文件集合。不要真的修改或调用依赖;只说明入口行为。",
      "expected_output": "把“最近 3 个 commit”解析为当前仓库的明确提交集合,再把 commit touched paths 与 working-tree paths 冻结为文件集合;回显解析出的 commit 与范围,不追问用户 hash/目录,然后进入依赖预检。",
      "files": [],
      "expectations": [
        "将相对 Git 选择器作为用户提供的范围定位信息,而不是范围缺失",
        "用当前仓库与 HEAD 解析最近三个提交并回显结果",
        "从提交和工作树导出具体文件集合后才调用 scanner",
        "不默认全仓库,不根据 scanner 结果反推或扩大范围",
        "解析成功时不向用户追加确认问题"
      ]
    },
    {
      "id": 29,
      "name": "ask-only-after-attachment-resolution-fails",
      "prompt": "这是只读行为验收。用户说“用 architecture-hardening-loop 检查附件里的这些提交”,但当前 host 拿不到附件原图,只看到不可读缩略图;Git 历史里还有多个可能匹配的提交组,无法唯一还原用户选择。不要修改或调用依赖;说明是否询问以及询问前后要报告什么。",
      "expected_output": "先尝试读取附件并用 Git 历史匹配;因为附件不可读且匹配不唯一,才问一个最小范围问题。问题必须说明已尝试的解析和失败原因,并只请求可唯一消歧的信息,例如 commit hash/range;不得猜测或默认全仓库。",
      "files": [],
      "expectations": [
        "先尝试附件读取与 Git 匹配,而不是立即把解析工作退回用户",
        "明确报告附件不可读且多个候选组导致无法唯一解析",
        "只问一个能消歧的 commit hash/range 问题",
        "不猜测选择器,不默认全仓库,不启动 scanner"
      ]
    },
    {
      "id": 30,
      "name": "frontmatter-only-host-refusal-uses-parent-execution",
      "prompt": "这是只读行为验收。用户显式调用 architecture-hardening-loop 并给出 packages/core/**。improve-codebase-architecture 已安装且 SKILL.md 与必需 reference 都可读,独立只读 exploration worker 和所需工具也可用;host 只因 disable-model-invocation=true 不提供嵌套 Skill 调用入口。其它依赖均可用。请给出预检结果。",
      "expected_output": "不得返回 MISSING_DEPENDENCIES,也不得要求用户修改第三方 frontmatter 或再次点名 scanner。完整读取 scanner 指令和必需 reference,由父会话执行声明内的 Explore + HTML report-only 阶段,然后继续父 Loop。",
      "files": [],
      "expectations": [
        "把 disable-model-invocation 识别为隐式触发策略而非执行能力缺失",
        "不返回 MISSING_DEPENDENCIES 或 HUMAN_GATE",
        "不要求用户修改第三方 skill 或再次确认",
        "完整读取依赖指令而不是复制或猜测 scanner 逻辑",
        "由父会话执行 Explore + HTML report-only 阶段"
      ]
    },
    {
      "id": 31,
      "name": "implicit-loop-does-not-create-native-goal",
      "prompt": "这是只读行为验收。用户显式调用 architecture-hardening-loop 检查 packages/core/**,但没有要求 Goal;当前没有 active Goal 或 parent contract。scanner、codebase-design、独立只读 worker、agentic-review-handoff 与非宿主 Reviewer 均可用,goal-gate 未安装。scanner 已确认一个范围内 Fix。请说明预检和实施入口,不要真的修改。",
      "expected_output": "goal-gate 未触发且不是硬依赖,预检不返回 MISSING_DEPENDENCIES。Loop 在 Hardening Contract 下继续 Fix、验证、review 与复扫,不创建 native Goal,终态报告 Goal: not-created。",
      "files": [],
      "expectations": [
        "不因 goal-gate 未安装返回 MISSING_DEPENDENCIES",
        "不把用户点名 architecture-hardening-loop 解释为创建产品 Goal 的授权",
        "不调用 create_goal、update_goal 或要求用户执行 /goal",
        "继续 Hardening Contract 下的 Fix、验证、review 与同范围复扫",
        "终态 Goal 字段为 not-created"
      ]
    },
    {
      "id": 32,
      "name": "duplicate-only-rescan-reuses-review-verdict",
      "prompt": "这是只读行为验收,不要修改文件、调用 Reviewer 或 Goal。范围 packages/core/**。首轮有一个 Architecture Fix:事前 Reviewer consult 已看过完整 ledger(含两个 Backlog、一个 Reject),Fix 实施后 Reviewer review PASS 并返回 E2。复扫按 fingerprint 对账后没有新候选,也没有满足 Reconsider when 的项。请给出是否还需要再调用一次 Grok 终态 consult、stop reason 是什么,以及若这是首轮零 Fix 时答案有何不同。",
      "expected_output": "复扫轮次 ledger 无新 fingerprint、且全部 disposition 已在事前 consult 与 review verdict 中由 Reviewer 看过时,复用该 review verdict 作终态复核,不再单独 consult;仍必须重算 evidence 与 E2 一致后才进入 NO_ACTIONABLE_FINDINGS,stop reason 为 duplicate-only。首轮零 Fix 没有任何 Grok 已看过的 verdict,必须做终态 consult,stop reason 为 zero-fix-first-pass。",
      "files": [],
      "expectations": [
        "复扫零 Fix 且无新 fingerprint 时不再单独调用 Reviewer 终态 consult",
        "说明复用的是本轮事前 consult 与 review PASS verdict",
        "仍要求重算 evidence 与 E2 一致后才 NO_ACTIONABLE_FINDINGS",
        "stop reason 报告为 duplicate-only",
        "首轮零 Fix 仍必须做终态 consult 且 stop reason 为 zero-fix-first-pass"
      ]
    },
    {
      "id": 33,
      "name": "default-reviewer-follows-saved-preference-with-timeout-fallback",
      "prompt": "这是只读行为验收,不调用工具。宿主是 Claude Code,用户只写了 architecture-hardening-loop,范围 packages/core/**,没有点名 Reviewer,也没保存过偏好。claude、codex、grok 都已安装。请说明事前 consult 和复审怎么调用、会用谁;若第一位 Reviewer 在第 1 轮超时怎么处理;用户之后说\"以后先用 codex\"又该怎么做。",
      "expected_output": "不问用户、不自己挑产品:consult 与 run 都只传 --host=claude,由脚本按默认偏好 claude,codex,grok 选 claude(新的只读会话)并以 codex、grok 为后备;超时自动换下一个,不算 DELIVERY_UNKNOWN、不停门,后备用完才 HUMAN_GATE;报告写明 reviewerFrom 与 fallbacks。用户说出长期偏好时运行 review-loop prefs --order=codex,claude,grok 保存。",
      "files": [],
      "expectations": [
        "调用只传 --host=claude,不手写 --reviewer",
        "默认偏好下 Reviewer 是 claude,后备 codex、grok",
        "超时自动换下一个产品,不在第一次超时就 HUMAN_GATE",
        "长期偏好用 review-loop prefs 保存",
        "报告列出 reviewerFrom 和 fallbacks"
      ]
    }
  ]
}
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall