From loom-engineering
Synchronizes graph backend index, structured memory, and entry docs after verified code changes. Useful for keeping graph indexes and memory in sync with code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/loom-engineering:loom-index-update <spec_dir or sync scope>When to use
Sync graph backend, structured memory, and entry docs after verified code changes.
<spec_dir or sync scope>The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- 功能测试和 completion verification 通过后自动触发。
loom-verification-before-completion 已通过,或用户明确要求只同步图后端/记忆。git diff --name-only HEAD 确认变更文件。references/update-checklist.md 判断是否需要同步图后端或结构化记忆。先读取 .loom/graph.config.json 确认当前图后端;配置不存在时默认 codegraph(向后兼容)。
loom index # 同步当前图后端;后端不可用时跳过
loom index --check # 检查图后端状态;后端不可用时跳过
图后端可用时,AI 通过 loom 暴露的固定 MCP 工具按需查询(不直接调用后端专属工具名):
loom_graph_status — 查询后端能力、新鲜度和可用性loom_graph_query — 统一图查询入口(capability:explore / definition / references / impact 等)loom_graph_sync — 同步或检查索引当后端是 codegraph 时,
loom_graph_*内部委派给codegraph_explore等 MCP 工具;AI 不需要也不应该直接引用codegraph_*工具名。
图后端不可用(后端为 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。不写入的情况:
只有引入新约定、新命令、入口程序变化或开发流程调整时,才更新入口文件。一般性代码变更不更新。
报告模板见:
assets/report-graph-template.md(图后端可用,路径 A)assets/report-no-graph-template.md(图后端不可用,路径 B)freshness 不是 fresh 时以源码为准。loom index;图后端不可用时跳过,不生成任何 Markdown 索引。同步完成后输出报告;图后端不可用时必须明确注明已跳过。
npx claudepluginhub xiqin/loom --plugin loomGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Reference for writing and editing skills with predictable behavior, covering invocation models, description writing, and information hierarchy.