/loom-engineering:loom-converge <spec directory containing requirements.json, traceability.json, plan.md, tasks/>from loom-engineering
Checks implementation drift by reviewing code and test semantics against approved requirements after test-report PASS. Generates convergence report and creates new tasks for missing/partial/contradictory behaviors.
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.
executing 阶段已产出 test-report.md 且 verdict 为 PASS。verification,但尚未把代码事实对照意图清单做收敛。requirements.json 与 traceability.json 存在。test-report.md 仍为 FAIL 或未产出。调用 loom MCP 工具 loom_converge(参数 spec_dir、round)。
工具读取 requirements.json、traceability.json,对每个 behavior 的引用分类为 mapped/missing/partial/unrequested,输出 convergence-report.json。引用必须指向可读取的非空本地文件;空文件、目录、URL、URN 或仅有哈希的声明不能作为验证依据。返回 ok:false 表示引用存在 blocker,需要回流 executing。
工具报告的 assessment_scope: reference-integrity 和 semantic_verification: not_performed 明确限定检查范围。mapped 和 reference_coverage: 100% 仅表示引用完整,不表示测试已执行、验收已覆盖或代码已完成。当前自动门禁不替代下一步的语义审查。
说明:
scripts/converge.mjs是该工具的实现,运行在 loom MCP 服务器进程内。不要在用户项目里用node skills/...调用(部署后路径会断裂)。
逐项读取实际代码、测试断言和执行证据,对每个 REQ-xxx-Bnn 做独立语义审查,将结果写入审查记录,不用 mapped 代替以下判定:
covered:tests 引用真实存在的测试文件,且 evidence 引用真实日志,且 behavior 的 acceptance 被测试覆盖。missing:traceability 中无 tests 或 evidence,或引用文件不存在。partial:有 tests 但未覆盖 acceptance 全部分支(例如只测 happy-path,未测 invalid-input)。contradicts:实现与 spec/requirements 描述冲突,或测试断言与 acceptance 相反。unrequested:代码中实现了 requirements.json 没有声明的行为或公开 API 变更。每个 missing / partial / contradicts / unrequested 生成一条 finding:
{
"id": "F-conv-001",
"kind": "missing",
"severity": "blocker",
"message": "REQ-001-B03 (authorization) has no test reference in traceability.json",
"requirement_id": "REQ-001",
"behavior_id": "REQ-001-B03",
"artifact": "traceability.json",
"suggested_fix": { "action": "create_task", "details": "add task T2 to implement authorization test for REQ-001-B03" }
}
对所有 missing / partial / contradicts,生成新 task 文件 tasks/T*.md,frontmatter 包含:
requirements: 对应 REQ-xxxbehavior_ids: 对应 REQ-xxx-Bnnowns: 建议修改的文件(从 finding 的 location 或现有代码推断)depends_on: 依赖的原 task把新 task 追加到 plan.md 的 task 表。更新 traceability.json 把新 task 加入对应 behavior 的 tasks。
convergence-report.json{
"stage": "converge",
"round": 1,
"status": "converged|needs_another_round",
"assessment_scope": "reference-integrity",
"semantic_verification": "not_performed",
"classification": {
"REQ-001-B01": "mapped",
"REQ-001-B02": "mapped",
"REQ-001-B03": "missing"
},
"findings": ["..."],
"new_tasks": ["T2", "T3"],
"coverage": {
"reference_coverage": "67%"
},
"created_at": "2026-07-20T18:30:00Z"
}
blocker finding(missing / contradicts):状态为 needs_another_round,状态机不允许进入 verification;回到 executing 处理新 task。partial 且用户显式接受:可标记 accepted_partial 并进入 verification,但必须在报告中记录。mapped,且独立语义审查全部 covered、无 unrequested blocker,才允许进入 verification。不得仅凭工具返回 converged 宣布交付完成。回到 executing 实现新 task 后,重新运行 loom-converge。每轮 round 递增。建议最多 3 轮;超过 3 轮未收敛时 escalate。
convergence-report.json 写入 specs/<date+feature>/。新 task 写入 specs/<date+feature>/tasks/。
requirements.json 中已确认的 behavior;只能追加 task。unrequested 若涉及必要的基础设施或重构,可降级为 info,但必须在报告中说明。convergence-report.json 状态为 converged,无 blocker findings。covered 或显式接受的 partial。contradicts 残留。What SKILL.md sets; muted values are Claude Code's defaults
After executing test-reporter PASS and before verification, to catch implementation drift.
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.
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-detail-expansionExpand each requirement into verifiable Behavior Obligations across 15 fixed dimensions (happy-path, boundary, invalid-input, authorization, state-transition, idempotency, concurrency, atomicity, external-failure, compatibility, security, performance, observability, recovery, forbidden-behavior) before planning. Use when: brainstorming produced requirements.json and spec is approved, but behaviors are still placeholders or only happy-path; before loom-writing-plans.
/loom-dispatching-parallel-agentsDispatch multiple independent tasks to parallel subagents when no shared file conflicts exist. Use when: a confirmed plan has independent tasks that can run concurrently without touching shared files.
/loom-finishing-a-development-branchClean up a feature branch after verification: merge, create PR, keep, or discard. Follows conventional commits. Use when: a development branch has passed verification and needs merge, PR, keep, or discard handling.
/loom-index-updateSynchronize graph backend index, structured memory, and entry docs with code after verification passes. Use when: verified code changes need graph index sync, memory updates, or entry documentation refresh.