loom-router

loom-router is a skill for Claude Code from xiqin/loom. It costs 45 tokens per session (1,292 once invoked), scanned A, original, MIT.

An entry-point router for deciding which loom capability fits a software request. It distinguishes development work, bugs, testing, reviews, branch cleanup, and other workflow needs.

In plain words
What is it for?
It helps route new features to pipeline selection, failures to systematic debugging, behavior changes to TDD, review preparation to review workflows, and other requests to the appropriate loom capability.
Why use it?
It prevents requests from entering the wrong process and clarifies when to investigate, clarify requirements, select a pipeline, or use a specialised workflow.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

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

Good fit It helps route new features to pipeline selection, failures to systematic debugging, behavior changes to TDD, review preparation to review workflows, and other requests to the appropriate loom capability.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiqin/loom/loom-router
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-router
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-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiqin/loom/loom-router/github.svg)](https://agentmods.dev/skills/xiqin/loom/loom-router)
Your own site
<a href="https://agentmods.dev/skills/xiqin/loom/loom-router"><img src="https://agentmods.dev/badge/skills/xiqin/loom/loom-router/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-router

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiqin/loom/loom-router"><img src="https://agentmods.dev/badge/skills/xiqin/loom/loom-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,292 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.00045 $0.01292
Opus 5 $0.00023 $0.00646
Sonnet 5 $0.00009 $0.00258
Haiku 4.5 $0.00005 $0.00129

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

Security

Grade A, and why

loom-router 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.

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-router/SKILL.md · 105 lines

How it starts

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

loom 入口路由

loom-router 是轻量入口分流层,只判断当前请求应该进入哪个 loom 能力。它不生成 dynamic_steps,不写 pipeline.state.json,不替代 loom-pipeline-selector

触发条件

  • 用户提出新请求,但还不清楚应使用哪个 loom skill。
  • 用户问“这个任务应该走什么流程”。
  • 请求可能属于 bug、功能开发、代码审查、QA、分支收尾、索引更新、架构改进、技能编写或 loom 使用咨询之一。
  • 当前会话需要判断继续当前上下文、写 handoff、压缩,还是开 fresh session。

非触发条件

  • 已经处在明确的 pipeline stage 中,并且下一步由 pipeline.state.json / progress.md 决定。
  • 用户已经明确指定要运行某个 skill。
  • loom-pipeline-selector 已完成选择且用户已确认,后续应按 pipeline 状态执行。

职责边界

router 负责

  • 识别请求入口类型。
  • 解释推荐路径和理由。
  • 判断是否需要先澄清、先复现、先审查、先 QA,或交给 loom-pipeline-selector
  • 给出上下文卫生建议:继续当前会话、写 handoff、压缩,或开 fresh session。

router 禁止

  • 禁止直接写 pipeline.state.json
  • 禁止生成或持久化 dynamic_steps
  • 禁止绕过 loom-pipeline-selector 的用户确认门禁。
  • 禁止把自己变成第二套 pipeline planner。

路由表

用户请求类型 推荐入口 说明
新功能、需求、跨模块改动 loom-pipeline-selector router 只说明应进入开发流水线;具体 steps 由 selector 选择并等待用户确认。
需求含糊、设计取舍多 loom-brainstorming 先澄清 shared understanding,再进入 spec / plan。
bug、测试失败、异常行为 loom-systematic-debugging 先构造 red-capable feedback loop,再考虑修复。
明确行为变更或 bug 修复 loom-test-driven-development 在实现阶段使用 seam gate 和红绿重构。
准备发起审查 loom-requesting-code-review 先做 Standards + Spec 双轴预审查,再生成审查请求。
收到审查反馈 loom-receiving-code-review 分类处理、修复或 push back。
新功能验收或 release 验收 loom-qa 生成/执行 QA 用例并输出报告。
开发分支已验证完成 loom-finishing-a-development-branch 选择 merge、PR、keep 或 discard。
代码已变更且验证通过 loom-index-update 同步图后端、memory 和必要入口文档。
多个独立任务可并行 loom-dispatching-parallel-agents 仅在无共享文件冲突且已有确认 plan 时使用。
需要编写或修改 skill loom-writing-skills 检查职责边界、触发条件、完成标准和 context load。
用户询问 loom 能力 loom-using-loom 解释框架、skills 和 pipeline。

执行流程

Step 1:分类请求

用一句话标注请求类型,例如:bug 调试新功能开发代码审查QA 验收分支收尾loom 咨询

Step 2:说明推荐路径

输出推荐入口、原因和下一步。开发型任务必须说明:具体流水线仍由 loom-pipeline-selector 选择,且需要用户确认后才会写入状态。

Step 3:判断是否需要阻塞执行

以下情况必须先停下,不直接实现:

  • 需求关键行为不清楚。
  • bug 没有可运行的失败信号。
  • 要审查的 diff 或 fixed point 不明确。
  • pipeline selector 尚未展示步骤并获得用户确认。
  • 阶段切换前还没有写 handoff。

Read the full file on GitHub · 105 lines

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 · 105 lines · 45 tokens per session scan A 1ff6a6080ad3

Subscribe to this mod's changes

loom-router is a skill published in the GitHub repository xiqin/loom (5 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 1,292 once invoked, about $0.0002 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