/loom-engineering:loom-index-update <spec_dir or sync scope>from loom-engineering
Synchronizes graph backend index, structured memory, and entry docs after verified code changes. Useful for keeping codegraph and memory in sync with the actual codebase.
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.
loom-verification-before-completion 已通过,或用户明确要求只同步图后端/记忆。git diff --name-only HEAD 确认变更文件。references/update-checklist.md 判断是否需要同步图后端或结构化记忆。先确认用户选择、已有索引和当前真正可用的图工具。初始化/配置声明不等于后端可运行;
用户未选择建图时不自动创建索引或 .loom。
loom index # 当前 CLI 仅委派给实际可用的 codegraph,不是所有后端的统一执行层
loom index --check # 检查 codegraph;必须检查真实输出与退出状态
查询时使用当前宿主实际暴露的工具,例如已有 .codegraph/ 时优先调用可用的
codegraph_explore。只有 loom_graph_* 确实可调用时才使用该封装;不能把文档中的
工具名当作已实现 API。其他后端必须有自己的真实集成,不声称 loom index 已同步它们。
图后端不可用(后端为 none、marker 不存在或 freshness=unavailable)时,在报告中注明“图后端不可用,图索引同步跳过”,不中断流水线。
降级规则:
impact 时,用 references、explore 或源码搜索降级,并报告“影响范围可能不完整”。freshness 不是 fresh 时,不得直接把其结论作为阻断判断依据,需用当前源码和 git diff 校验关键结论。knowledge-base 时,不得用于精确调用链或 breaking change 影响范围判断。Memory 的单一真实来源是 .loom/memory/store.json。MEMORY.md 是 loom memory export 生成的只读视图,禁止手动编辑 MEMORY.md。
判断写入目标:
| 内容类型 | 写入方式 |
|---|---|
| 本次会话的关键结论(决策/踩坑/偏好/状态变更) | loom_add_memory 或 loom memory add --type <类型> --content "..." |
| 技术选型、架构决定,需要保留背景和原因 | type=adr,context 写背景和原因 |
| 实际遇到的坑,含根因和解决方式 | type=踩坑,content 写“问题 + 根因 + 解决方式” |
| 用户明确表达的工作习惯、风格偏好、禁止事项 | type=偏好 |
| 技术栈或当前阶段变化 | type=状态 |
| 本次会话有重要内容需要归档 | loom memory archive --slug <slug> --file <session.md> |
命令示例:
loom memory add --type 决策 --content "选择 codegraph 作为默认图后端"
loom memory export
会话归档规则:
loom memory archive --slug <feature-slug> --file <session.md> 写入归档。loom memory export。不写入的情况:
.loom → 不为同步或记录记忆违反该约束。只有引入新约定、新命令、入口程序变化或开发流程调整时,才更新入口文件。一般性代码变更不更新。
报告模板见:
assets/report-graph-template.md(图后端可用,路径 A)assets/report-no-graph-template.md(图后端不可用,路径 B)freshness 不是 fresh 时以源码为准。loom index;图后端不可用时跳过,不生成任何 Markdown 索引。同步完成后输出报告;图后端不可用时必须明确注明已跳过。
已通过代码审查的 Loom 流水线,完成同步、记忆和入口文件更新后再核对最终候选的验证收据。 如果这些写入改变了收据绑定的快照,则在候选工作区复验并刷新过期的验证 handoff,再结束流水线。
What SKILL.md sets; muted values are Claude Code's defaults
Sync graph backend, structured memory, and entry docs after verified code changes.
Three short reads, in order
Other plugins' skills for the same job
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-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.
/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.
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.