/loom:loom-migratefrom loom
Migrates model cards and skills to a new hrx-loom SDK release. Applies mechanical steps (IR renames, schema updates, install/pin), validates parsing, A/B tests on DevLab, and publishes qualifying cards.
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; scripts run unread.
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. Never run an unresolved placeholder.
Run bundled commands by quoted absolute path; do not run scripts/... from the working directory.
Install the complete Loom suite: sibling paths (loom-fleet, loom-setup, loom-kb) are required.
An SDK release changes what the kit emits (source IR, program ABI), what cards say (model.json schema, SDK pin, Quick start) and how things
install and run. The work is the same for every adjacent pair; only the list of changes differs. This skill holds the procedure (below)
and one version entry per pair in versions/. A user who owns a hand-written or catalog package uses the entry and the rewrite
script on their own tree; a campaign uses the whole procedure.
| Request | Do |
|---|---|
| Migrate one package or tree I own to a newer SDK | Read versions/<from>-to-<to>.md, section 3a: install the new wheel, rewrite_<from>_<to>.py, the manual items, sweep.py, serve and chat. (A package the repo's kit generated: regenerate it with the kit instead) |
| Uplift published cards | Run the per-model DevLab workflow in steps 5–7 for each production card. One failure does not hold the rest of the fleet. |
| The next release is out and there is no entry for the pair | Procedure step 1 (research), write the entry from versions/TEMPLATE.md, then continue |
A package fails with unknown op, unknown model field, a publish/prepare signature error on the new SDK | Find the symptom in the entry's "Gotchas" and "Breaking changes" |
Entries: 0.1.0 to 0.2.0 and 0.2.0 to 0.3.0. Template for the next: versions/TEMPLATE.md.
Run this from a loom-skills checkout with an authenticated GitHub CLI:
python fleet/uplift_dispatch.py MODEL_SLUG X.Y.Z
The wrapper resolves the current production commit and dispatches the workflow on main. Measure once. Develop a model's fix on its PR branch, and qualify the final commit with publish off (--ref BRANCH -f publish=false). After review, merge without pushing again, then publish THAT run instead of qualifying again: python fleet/uplift_dispatch.py MODEL_SLUG X.Y.Z --from-run RUN_ID. The workflow skips DevLab and publishes the run's combined result once fleet/uplift_reuse.py confirms the run passed, measured the dispatched production commit and SDK, and its commit is the head of a merged PR into main, so the reviewed code is the measured code. A push after the measured run (including a rebase) changes the head, and the model is measured again. A model that needs no fix is dispatched from main with publish on, once. Only Loom LLM packages are uplifted: fleet/uplift_eligibility.py refuses image packages and the repos listed in fleet/uplift_exclude.json (owner decisions), both in the wrapper and before the workflow plans, so no DevLab job or uplift issue is created for them. python fleet/uplift_eligibility.py --list prints the eligible repos for a fleet sweep.
Supply --gufo-bundle-run RUN_ID when the published card passed
the logits gate. The run must have a retained gufo-bundle artifact. Use --dry-run to print the
resolved dispatch or --qualify-only to collect DevLab evidence without publication.
Each dispatch qualifies both Strix Halo and the Radeon AI PRO R9700. Each GPU compares the old and new SDK on the same runner. Publication requires both GPUs to pass on the same package. The result includes per-device gate outcomes and paired metric values. The publication receipt records the destination commit and issue when applicable. An unsuccessful build can leave only failure evidence on staging because there is no usable candidate package.
Configure the Actions secret HF_UPLIFT_PUBLISH with permission to update and tag production
models and create and update staging models. Only the publication job uses this credential.
The fallback HF_LOOM_FACTORY credential may have narrower organization access. If a Hub
permission error interrupts publication, download the combined uplift-result artifact and
run python fleet/uplift_publish.py result/qualification.json result/package --report receipt.json --execute
with authorized Hub and GitHub credentials. This reuses the measured result and checks the pinned
parent before writing.
After a production or staging publication, DevLab dispatches the dashboard's
summaries.yml workflow on loom-fun/loom-dev. Set the LOOM_DEV_ACTIONS_TOKEN
Actions secret in loom-skills to a fine-grained token scoped to loom-dev with
Actions read and write permission. If dispatch fails, rerun the failed dashboard job.
The end-to-end checklist for a whole release, including the repos and pages outside loom-skills and the promotion order: reference/release-checklist.md. Start the release's tracking issue from it.
Order matters: each step's proof is the next step's precondition. Big outputs go on disk (campaign dir eng/), never /tmp.
notes/sdk<NNN>_research.md in the campaign dir.
SHA256SUMS).fleet/build_fleet.py), then run
scripts/sweep.py --sdk NEWVENV on it. The histogram of first-error classes is the real breaking-change list for source. It
replaces guessing from the notes; the notes explain it and name what the sweep cannot see (load-time ABI, schema, behaviour).--help of every tool the repo calls (grep skills/ .github/ fleet/ scripts/ tests/ for loom-*), old vs new.versions/<from>-to-<to>.md) while the engineers work: breaking changes with exact
before and after, the files, the step (and script), the check, and the gotchas as they are found. It is the deliverable that outlives
the campaign; update it from every engineer's gotcha lines before it is final.fleet/build_fleet.py --tree . --out DIR (programs only), then scripts/sweep.py --sdk NEWVENV DIR --json OUT: 0 parse failures, and
every package links (a link failure is a load failure on a GPU). The old SDK on the old fleet is the control (same script, the old venv).fleet/diff_fleet.py OLDDIR NEWDIR: unlike a normal change the program diff is NOT empty. It must be explained: summarize it
by class and count (renames, ABI lines, pool/pin lines) and show that after mapping the renames back the remainder is only the
deliberate ABI/schema lines. Anything unexplained is a bug in the migration.fleet/scope_lint.py --local as for any PR (loom-fleet reference/targeted-fix.md).v<old SDK> and sends the candidate directly to loom-fun. A compile failure, loss of a previously passing gate, or slowdown of 10% or more on any compared metric routes the candidate to loom-fun-staging and opens a model issue under Uplift to SDK vX.Y.Z in loom-skills. A gate that failed on both versions is a pre-existing failure. Missing evidence cannot qualify a candidate.notes/simplifications.md): what the new SDK lets us delete (a flag, a computation, a workaround). Land what
is inside the campaign scope; list the rest with the reason. Measure a simplification that depends on behaviour (for example
dropping an explicit tuning flag) with an A/B before claiming it.notes/opportunities.md): when the release opens an optimization (a fixed overhead, a new
primitive), open an issue in the skills repo with the evidence and the expected gain and do not pursue it in this campaign. File
it only if a measurement or the source shows the gain; "might help" is not an issue.| Class | Symptom on the new SDK | How to find it | Typical fix |
|---|---|---|---|
| Source IR | loom-opt/loom-link: error [PARSE/...] unknown op, then undefined SSA values | sweep.py parse sweep (cheap, complete for syntax) | op rename/split: regex rewrite by operand type or attribute |
| Program ABI | server fails to load: export signature mismatch, missing export role, record validation | release notes "source ABI" rows, the fixture programs in the SDK tree and library at the new tag, sweep.py link (partly) | edit the templates/emitters; the fixture is the reference; a GPU smoke is the proof |
| Card schema | unknown model field 'X' at serve; readers raise KeyError | diff of the card parser/validator between tags; every card key the repo writes or reads (grep) | drop or rename the key in writers and tolerate absence in readers |
| Install and pin | wheel not where it was (PyPI vs release asset), catalog tag, pin schema | the release page, pip download, loom.json of the catalog | installer source, pin stamping, card Quick start, CI install steps |
| Device runtime | numbers move, kernel A/B not comparable, a device selector disappears | notes "runtime" rows, the loom-test/benchmark driver, completion/wait policy | re-measure the Loom side (llama.cpp rows stay, rule 17); keep explicit tuning flags until an A/B shows they are redundant |
| Request semantics | gates that send a field get a different answer (400 became ignored; a null means default) | the server's request decoder diff | adjust gates and integrations; note what silently changed |
A change can sit in two classes (a pool-size change is card schema and program bounds). Record both.
| Script | Does |
|---|---|
"${LOOM_SKILL_DIR}/scripts/sweep.py" --sdk VENV FLEET_DIR [--json OUT] [--no-link] | version-agnostic: loom-opt parse of every program file and loom-link link of every variant/service of every package (a fleet dir or one package), the first-error-class histogram, JSON out. Run it with the old venv as control and the new venv as the test |
"${LOOM_SKILL_DIR}/scripts/rewrite_v010_v020.py" [--check] [--json OUT] [--no-widen-pool] [--py] PATH... | the v0.1.0 to v0.2.0 source migration on a file, package or tree: vector.constant to splati/splatf by element type, command.program.* to command.*, the publish_epoch control-state argument, the weights-policy import key range, pool_capacity out of cards, the KV pool bounds, the one-token conv guard, the vision finite-batch ABI; idempotent; prints manual: FILE:LINE: ... section N for what needs a hand edit |
"${LOOM_SKILL_DIR}/scripts/tag_org.py" --org ORG --tag vX.Y.Z [--message M] [--only REPO...] [--force] [--dry-run] | tags the head of every *-loom repo of the org with the OUTGOING SDK version; skips a repo that has the tag; refuses a repo whose head is not on that SDK (its llm_config.json pin) unless --force; exit 1 if any repo failed, was refused, or has the tag on another commit; used before promotion |
A new pair gets its own rewrite_<from>_<to>.py beside these and a row here; keep scripts standard-library only.
SHA256SUMS, because it is not on PyPI. When the stable release lands after a candidate, diff candidate..stable and re-run the offline proofs (sweep, link check) before re-pinning.symptom -> cause -> fix, in the version entry.reference/release-checklist.md (opens in a new tab)scripts/publish_epoch_pc.loom (opens in a new tab)scripts/rewrite_v010_v020.py (opens in a new tab)scripts/sdk030_proposal_counts.py (opens in a new tab)scripts/sweep.py (opens in a new tab)scripts/tag_org.py (opens in a new tab)versions/TEMPLATE.md (opens in a new tab)versions/v0.1.0-to-v0.2.0.md (opens in a new tab)versions/v0.2.0-to-v0.3.0.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-kbRouter for the Loom knowledge base - which facts to read for a given model, GPU and task. Run `kb.py route` with a model slug or config, GGUF or arch name plus device and topic, then read exactly the files it prints (device, quant, arch family, facets, topic). Use before porting, optimizing, benchmarking or rooflining any model, when asking "what is special about gemma4 / qwen35moe / flint", "which tricks apply to this model on the R9700", or when adding a model family, facet, device or scope rule to the knowledge base./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