/loom-engineering:loom-verification-before-completion <spec_dir or verification scope>from loom-engineering
Runs final compile, test, placeholder scan, and spec coverage checks before declaring work complete. Enforces evidence-based completion with structured verification reports.
Ships in loom-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
specs/<date+feature>/test-report.md、reviewer 判定等前置报告也算证据,但必须读取并引用。本阶段的 specDir 是 specs/<date+feature>/。所有验证产物都必须写入该目录内;禁止在项目根目录写 verify-report.md、progress.md 或 handoffs/。
做状态声明前:识别证据 → 运行命令或读取报告 → 验证输出确实支持断言 → 再声明。
进入人工判断前运行:
调用 MCP 工具 loom_verify_artifacts,参数:spec_dir: "specs/<date+feature>"。
不要在用户项目或全局 opencode skill 目录中直接执行 node <skill-dir>/scripts/verify-artifacts.mjs。该脚本是 loom MCP 服务器进程内的工具实现,直接执行部署后的 skill 脚本会因为相对导入脱离 npm 包运行时而失败。
工具返回 ok: true 只代表产物齐全且没有明显机械性缺陷;返回 ok: false 时,先修复或补齐证据。
specs/<date+feature>/test-report.md 和 combined-reviewer 报告,确认最终通过。.loom/rules/constitution.md 中的 BUILD_CMD、VET_CMD 并执行;TEST_CMD 已由 test-reporter 执行时不重复。TBD、TODO、implement later、fill in details。specs/<date+feature>/verify-report.md。specs/<date+feature>/handoffs/verification.json,摘要说明验证结论、证据命令、关键产物和剩余风险。如果当前工作流后续有代码审查,用 loom verify run --cwd <候选工作区> --spec-dir <原规格绝对路径> --stage verification -- <验证命令> 生成
绑定候选快照的 verify-report.md 和执行收据。候选在隔离工作树时,运行命令的目录使用该工作树,报告仍保存到原 spec。
收尾时复用仍有效的收据;快照或证据已变化时,完成所有写入后复验,并刷新引用旧报告的过期 handoff。
按实际能力核验失败、恢复与资源证据
从本次需求和交付声明选择适用场景,不要求所有任务模拟所有故障。在既有测试/验证报告中记录适用能力、触发方式、预期、实测结果和证据路径:
dispose/close/finally 判定;有限次数观察不等于长期无泄漏。区分原生失败、测试包装触发的真实失败和模拟,不混称真实故障;未诱发目标失败属于准备不足,不算该失败路径通过。证据缺失或场景不适用须说明依据,不用正常流程通过、覆盖率或体验确认替代失败/恢复证据。本规则是执行指导,不新增机器门禁,也不证明模型稳定性。
构建/检查的长输出保存到 specs/<date+feature>/evidence/verification.log;报告只保留 command、exit code、相对路径和 SHA-256。这样可验证且不占用后续上下文 token。
报告模板见:
assets/verify-report-template.mdassets/fix-instructions-template.md以下措辞意味着未验证就声称:应该通过了、probably passes、似乎没问题、seems fine、我觉得可以。发现后立即停止,补证据再声明。
构建/检查/测试命令
读取 .loom/rules/constitution.md 中的 BUILD_CMD/VET_CMD/TEST_CMD 并执行验证。
验证通过时完成 specs/<date+feature>/verify-report.md 和 specs/<date+feature>/handoffs/verification.json;验证失败时标记失败,输出修复指令,禁止全量重跑 Step 4。阶段结束后压缩验证过程中的长日志和中间排查,只保留报告、progress 和 handoff。
What SKILL.md sets; muted values are Claude Code's defaults
Run final compile, test, placeholder, and spec coverage checks before declaring work complete.
Three short reads, in order
22 skills in this plugin
/loom-analyze-artifactsRead-only cross-artifact consistency analysis after planning and before approval. Verifies that spec.md, requirements.json, plan.md, tasks/Tn.md, traceability.json are mutually consistent: no duplicate/ambiguous requirements, every behavior mapped to a task, no orphan tasks, no coverage gaps, no contradictions. Outputs artifact-analysis.json with coverage% and severity. CRITICAL/HIGH findings block the approval gate. Use when: planning produced plan.md + tasks + traceability.json, before the user approves the plan.
/loom-brainstormingExplore 2-3 implementation options with trade-offs when the user describes a new feature or requirement. Use when: the user asks for a new feature design, implementation options, or technical trade-off analysis.
/loom-Other plugins' skills for the same job
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest/PreSkillShellCommand at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest/PreSkillShellCommand at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.