/loom-engineering:loom-analyze-artifacts <spec directory containing spec.md, requirements.json, plan.md, tasks/, traceability.json>from loom-engineering
Cross-artifact consistency analysis verifying spec.md, requirements.json, plan.md, tasks/, and traceability.json are mutually consistent before plan approval. Outputs coverage metrics and blocks approval on critical findings.
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>/plan.md、tasks/、traceability.json、requirements.json、spec.md 均已存在。approved gate,但还没人做过跨产物一致性检查。loom-converge)。调用 loom MCP 工具 loom_analyze_artifacts(参数 spec_dir)。
工具只读分析 spec.md、requirements.json、plan.md、tasks/T*.md、traceability.json、.loom/rules/constitution.md(若存在),执行下列检查并输出 artifact-analysis.json。返回 ok:false 表示有 blocker finding。
按以下维度逐项检查,每条 finding 记录 { id, kind, severity, message, requirement_id?, behavior_id?, task_id?, artifact, suggested_fix }。
spec.md 中两个 REQ-xxx 实际描述同一行为。spec.md 有两种解释且未选定一种。requirements.json 缺少 spec 中的 REQ-xxx,或某 REQ 的 required_categories 未覆盖。requirements.json 的 required_categories 没有 behavior 实现。plan.md 引用的 task 文件不存在,或 tasks/ 中文件未在 plan.md 列出。requirements.json 的某 behavior 在所有 task frontmatter behavior_ids 中都未出现。behavior_ids 不在 requirements.json 中。requirements 不在 spec.md 中。traceability.json 缺少 spec.md / requirements.json 中的 REQ 或 behavior。traceability.json 出现 requirements.json 没有的 REQ/behavior。traceability.json 的 tasks 不对应真实 tasks/T*.md。depends_on 构成环。owns 文件。.loom/rules/constitution.md 的分层/禁止目录冲突。requirements.json 声明 performance / security / observability 类型,但没有任何 task 或 behavior 覆盖对应维度。{
"requirement_coverage": "已映射 task 的 REQ 数 / spec REQ 总数",
"behavior_coverage": "已映射 task 的 behavior 数 / requirements behavior 总数",
"required_category_coverage": "已覆盖的 required_categories 数 / 声明总数",
"traceability_req_coverage": "traceability 中 REQ 数 / requirements REQ 数",
"traceability_behavior_coverage": "traceability 中 behavior 数 / requirements behavior 数"
}
blocker:缺 REQ/behavior 映射、依赖环、traceability 缺 REQ、task 引用未知 behavior、constitution 冲突。error:歧义、owns 冲突、traceability task 引用不存在、非功能要求遗漏。warning:重复描述、欠规格但已部分覆盖。info:建议改进,不阻断。artifact-analysis.json{
"stage": "analyze-artifacts",
"status": "pass|blocked",
"coverage": {
"requirement_coverage": "100%",
"behavior_coverage": "92%",
"required_category_coverage": "88%",
"traceability_req_coverage": "100%",
"traceability_behavior_coverage": "92%"
},
"findings": [
{
"id": "F-001",
"kind": "missing",
"severity": "blocker",
"message": "requirements.json REQ-003 required category authorization has no behavior",
"requirement_id": "REQ-003",
"artifact": "requirements.json",
"suggested_fix": {
"action": "update_requirement",
"details": "add REQ-003-B03 with category authorization"
}
}
],
"created_at": "2026-07-20T18:00:00Z"
}
blocker finding:状态为 blocked,状态机不允许进入 approved。error finding:默认阻断,但用户可在分析报告中显式 override(写入 overrides 字段并附理由)。warning / info:不阻断,但必须在 handoff 中记录。artifact-analysis.json 写入 specs/<date+feature>/。
loom-writing-plans 修复后重新分析,直到无 blocker。specs/<date+feature>/artifact-analysis.json。What SKILL.md sets; muted values are Claude Code's defaults
After loom-writing-plans produces plan.md and traceability.json, before the approved gate.
22 skills in this plugin
/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-convergeCheck local behavior references, then independently review code and test semantics against approved requirements. Use when: executing produced test-report.md and implementation drift must be checked before final verification.
/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.
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.