loom-analyze-artifacts

loom-analyze-artifacts is a skill for Claude Code from xiqin/loom. It costs 109 tokens per session (1,559 once invoked), scanned A, original, MIT.

A read-only consistency check for planning documents such as specifications, requirements, implementation plans, tasks, and traceability records.

In plain words
What is it for?
Use it after planning to verify that every requirement is represented, every behavior has a task, and all planning documents agree.
Why use it?
It finds duplicated or ambiguous requirements, missing behaviors, unmapped tasks, coverage gaps, and contradictions before implementation is approved.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the loom-engineering plugin — 22 skills shipped together

Good fit Use it after planning to verify that every requirement is represented, every behavior has a task, and all planning documents agree.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiqin/loom/loom-analyze-artifacts
View source ↗ xiqin/loom
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xiqin/loom --skill loom-analyze-artifacts
Clone the repo
git clone --depth 1 https://github.com/xiqin/loom

Made for: Claude Code.

Or install loom-engineering, the plugin that ships this one along with the rest of its 22 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for loom-analyze-artifacts

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiqin/loom/loom-analyze-artifacts/github.svg)](https://agentmods.dev/skills/xiqin/loom/loom-analyze-artifacts)
Your own site
<a href="https://agentmods.dev/skills/xiqin/loom/loom-analyze-artifacts"><img src="https://agentmods.dev/badge/skills/xiqin/loom/loom-analyze-artifacts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for loom-analyze-artifacts

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiqin/loom/loom-analyze-artifacts"><img src="https://agentmods.dev/badge/skills/xiqin/loom/loom-analyze-artifacts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.01559
Opus 5 $0.00055 $0.00779
Sonnet 5 $0.00022 $0.00312
Haiku 4.5 $0.00011 $0.00156

Measured 8d ago against content hash ef4276bcfdb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

loom-analyze-artifacts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/analyze-artifacts.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/loom-analyze-artifacts/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

跨产物一致性分析(analyze-artifacts)

触发条件

  • specs/<date+feature>/plan.mdtasks/traceability.jsonrequirements.jsonspec.md 均已存在。
  • 即将进入 approved gate,但还没人做过跨产物一致性检查。

非触发条件

  • quickfix / chore / hotfix 等无 spec/plan 的轻量流程。
  • 已在 verification 阶段(那时改用 loom-converge)。

执行流程

Step 1:运行分析

调用 loom MCP 工具 loom_analyze_artifacts(参数 spec_dir)。

工具只读分析 spec.mdrequirements.jsonplan.mdtasks/T*.mdtraceability.json.loom/rules/constitution.md(若存在),执行下列检查并输出 artifact-analysis.json。返回 ok:false 表示有 blocker finding。

Step 2:跨产物一致性检查

按以下维度逐项检查,每条 finding 记录 { id, kind, severity, message, requirement_id?, behavior_id?, task_id?, artifact, suggested_fix }

  1. 重复需求spec.md 中两个 REQ-xxx 实际描述同一行为。
  2. 歧义需求spec.md 有两种解释且未选定一种。
  3. 欠规格requirements.json 缺少 spec 中的 REQ-xxx,或某 REQ 的 required_categories 未覆盖。
  4. behavior 缺失requirements.jsonrequired_categories 没有 behavior 实现。
  5. task 未映射plan.md 引用的 task 文件不存在,或 tasks/ 中文件未在 plan.md 列出。
  6. behavior 未映射到 taskrequirements.json 的某 behavior 在所有 task frontmatter behavior_ids 中都未出现。
  7. task 引用未知 behavior:task 的 behavior_ids 不在 requirements.json 中。
  8. task 引用未知 requirement:task 的 requirements 不在 spec.md 中。
  9. traceability 缺 REQ/behaviortraceability.json 缺少 spec.md / requirements.json 中的 REQ 或 behavior。
  10. traceability 引用未知 REQ/behaviortraceability.json 出现 requirements.json 没有的 REQ/behavior。
  11. traceability task 引用不存在traceability.json 的 tasks 不对应真实 tasks/T*.md
  12. 依赖环:task depends_on 构成环。
  13. owns 冲突:多个 task 声明同一 owns 文件。
  14. constitution 冲突:task 计划修改的路径与 .loom/rules/constitution.md 的分层/禁止目录冲突。
  15. 非功能要求遗漏requirements.json 声明 performance / security / observability 类型,但没有任何 task 或 behavior 覆盖对应维度。

Step 3:计算 coverage

{
  "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 数"
}

Read the full file on GitHub · 127 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 127 lines · 109 tokens per session scan A ef4276bcfdb3

Subscribe to this mod's changes

loom-analyze-artifacts is a skill published in the GitHub repository xiqin/loom (5 stars, last pushed 1mo ago), licensed MIT. It adds 109 tokens to every session and 1,559 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens