/loom:loom-kbfrom loom
Routes queries to the correct Loom knowledge base files for a given model, GPU, and task. Run `kb.py route` with model/arch, device, and topic to get a reading list of device, quant, arch family, facet, and topic files. Use before porting, optimizing, benchmarking, or rooflining any model.
Ships in loom. 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.
Bundled paths ? first shell action. Before running commands, set LOOM_SKILL_DIR in the shell to the
absolute directory containing this SKILL.md, using its path from the skill listing or read tool.
In Claude Code, run export LOOM_SKILL_DIR="${CLAUDE_SKILL_DIR}" (the host substitutes the path).
In Codex, Pi or another host, export LOOM_SKILL_DIR to the loaded file's directory. Use a
shell-compatible absolute path (Git Bash on Windows). Rebind before using another skill's commands
and in every new shell; it is not the working directory or SDK root. On Windows, use native C:/...
paths for file tools; /c/... paths belong to Git Bash. Never run an unresolved placeholder. Run bundled commands by quoted absolute path; do not run scripts/... from the working directory
or change into the installed skill tree. Install the complete Loom suite: sibling paths are required.
Domain knowledge is stored once, in the most specific node it applies to; the workflow skills hold process only and send you here.
python3 "${LOOM_SKILL_DIR}/kb.py" route --config W/pkg/llm_config.json --device strix-halo --topic prefill,decode
python3 "${LOOM_SKILL_DIR}/kb.py" route --arch gemma4 --facets drafted --device rdna4 --topic speculative
python3 "${LOOM_SKILL_DIR}/kb.py" route --arch z-image --device strix-halo --topic image-porting
python3 "${LOOM_SKILL_DIR}/kb.py" list # valid devices, families, facets, topics
It prints one file per line in reading order, then a # resolved choices footer. Read the printed files, in that
order, and nothing else from the knowledge base (an unknown arch, device or topic fails and lists the valid values).
| Printed first to last | Holds |
|---|---|
device/..., quant/<fmt>/, arch/llm/... (root, topology, family), facet/<tag>/, model/<slug>/ | the selector nodes the model and device match: GPU family and device, quant formats, the one family, properties that cross families (drafted, vision, hybrid-gdn, moe, sliding-window, kv-le2, wide-head), and the one package (model/<slug>, only when it has its own facts or settings) |
<node>/README.md | what is true of the node for every task |
<node>/<topic>.md | that node's facts for one task; printed only when the topic is requested |
topic/<topic>.md | the task's knowledge that applies to every model |
Use image-porting for image pipelines. Other topics include porting, kernels-ir (write kernels), ir-debug, program-abi, cfg-review, starter to port, prefill, decode,
optimize-loop, long-context, concurrency, speculative, spec-tuning, roofline to optimize; sdk (hrx-loom limits per SDK version, for kernel work); benchmark, org, kb-authoring.
Name only the ones the work needs: the router prints a node's task file for each topic you name and nothing else.
Adding or moving a fact, a family, a facet, a device or a topic: topic kb-authoring (kb.py route --arch qwen3 --topic kb-authoring).
These apply to loom-port-llm, loom-optimize and loom-fleet; they link here instead of copying.
loom-scope block (kind, scopes, kernels; DECISIONS section 6)
before any edit. Work only inside it.fleet/scope_lint.py before opening the PR and fix what it reports; a PR that reaches other models than its
scope is split or declares leak: with the reason.dual_target.py, build.py,
kb.py, choices.py legacy values, methodology, registries, card schema, workflows) is an architecture PR, not part
of a targeted task. Report the need and stop; do not work around it.The full process around these rules: loom-fleet/reference/targeted-fix.md (a narrow change, checklist) and
loom-fleet/reference/campaign.md (a team campaign); why the guards exist: loom-fleet/reference/architecture.md.
arch/image/README.md (opens in a new tab)arch/image/diffusion/README.md (opens in a new tab)arch/image/diffusion/flux2/README.md (opens in a new tab)arch/image/diffusion/flux2/scope.json (opens in a new tab)arch/image/diffusion/krea2/README.md (opens in a new tab)arch/image/diffusion/krea2/scope.json (opens in a new tab)arch/image/diffusion/z-image/README.md (opens in a new tab)arch/image/diffusion/z-image/scope.json (opens in a new tab)arch/llm/README.md (opens in a new tab)arch/llm/dense/README.md (opens in a new tab)arch/llm/dense/gemma3/README.md (opens in a new tab)arch/llm/dense/gemma3/fleet.md (opens in a new tab)arch/llm/dense/gemma3/scope.json (opens in a new tab)arch/llm/dense/gemma4/README.md (opens in a new tab)arch/llm/dense/gemma4/decode.md (opens in a new tab)arch/llm/dense/gemma4/fleet.md (opens in a new tab)arch/llm/dense/gemma4/porting.md (opens in a new tab)arch/llm/dense/gemma4/prefill.md (opens in a new tab)arch/llm/dense/gemma4/scope.json (opens in a new tab)arch/llm/dense/granite/README.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub loom-fun/loom-skills --plugin loom11 skills in this plugin
/loomEntry point for AMD Loom work (hrx-loom SDK, loom-serve, loom-fetch, Loom IR kernels) on AMD GPUs/NPUs such as Strix Halo — installing, serving catalog models, the demo web UI, porting a new LLM to Loom, optimizing it while preserving correctness, and benchmarking against llama.cpp. Use whenever the user mentions Loom, loom-serve, loom-fetch, hrx-loom, .loom files, or evaluating/porting models for Loom./loom-benchmarkCorrectness and performance methodology for Loom models vs llama.cpp ROCm — golden token-by-token comparison with log-prob near-tie analysis, a multi-turn tool-calling (agent) gate, a native-context admission check, batching consistency, decode/prefill/long-context/concurrency throughput on real-text workloads, and how to report results honestly (tables, executive artifact). Use for "benchmark", "compare with llama.cpp", "is the port correct", "performance report"./loom-demo-uiStart and use the Loom Playground web UI (chat with streaming reasoning and tok/s, ASR with mic recording, TTS, image generation, embedding similarity) that proxies to one or more running loom-serve instances and discovers their models automatically. Use when the user wants a browser demo/UI for Loom models./loom-fleetRuns loom-skills fleet work - a targeted fix to one model, family, GPU or quant (scoped change, sampled DevLab A/B, promotion), a campaign (new GPU, many models, a refactor, regenerating cards), populating or extending a Hugging Face org with new models (pick the top models, port and publish each, sweep gates on DevLab), publishing, staging and promoting regenerated cards, and improving the loom skills themselves against the KPIs with fresh-agent trials. Use for "improve the loom skill", "make the loom skill faster or more reliable", "targeted fix", "campaign", "populate the org", "polish the HF org", "which models still need cards", "regenerate cards", "publish to staging", "fresh-agent trial", or any change to the skills in this repo./loom-migrateMigrates the loom-skills kit, fleet of model cards and skills to a new hrx-loom SDK release - research the release, apply the version entry's mechanical steps (IR renames, program ABI, card schema, install/pin), prove the fleet parses and links under the new SDK, A/B the old cards against the new packages on DevLab, publish qualifying cards directly and stage regressions, and record simplifications and optimization opportunities. Holds one entry per adjacent SDK pair (v0.1.0 to v0.2.0 first) and sweep and rewrite scripts. Use for "new Loom SDK", "migrate to hrx-loom X", "SDK upgrade", "port the fleet to a new SDK", "my package fails to parse or load on the new SDK", or "what changed between hrx-loom versions"./loom-optimizeMake a Loom LLM port faster (decode, prefill, long context, concurrency) while proving it stays correct — targets from the best published numbers and the roofline, real per-kernel profiles (HAL dispatch timestamps), bucket budgets, fuse-by-default designs tried in parallel, perf-only iteration rounds with gates once on the winner, and a lane that ends only when every lever has a measured stop reason. Use for "speed up", "beat llama.cpp / vLLM / leader X", "SOTA", "optimize prefill/decode" on a Loom model, or an optimization lane of a campaign.Other plugins' skills for the same job