deploy-spur

deploy-spur is a skill for Claude Code, Codex from ROCm/spur-toolkit. It costs 134 tokens per session (14,851 once invoked), scanned D, original, Apache-2.0.

A deployment guide for installing or upgrading a Spur cluster, an AI-focused system that schedules jobs across computers. It uses SSH to configure bare-metal hosts and runs the cluster components as services.

In plain words
What is it for?
Use it to deploy single-node, multi-node, or highly available Spur clusters, including setups with separate compute machines. It also helps roll out builds and configure optional PostgreSQL-backed accounting.
Why use it?
It removes the need to manually configure different cluster layouts or remember upgrade steps. It also covers moving older accounting setups to the newer design.

Skill for Claude CodeCodex

Part of the spur-toolkit plugin — 1 skill shipped together

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.

agentmods
npx agentmods add skills/rocm/spur-toolkit/deploy-spur
Any agent
npx skills add ROCm/spur-toolkit --skill deploy-spur
Clone the repo
git clone --depth 1 https://github.com/ROCm/spur-toolkit

Made for: Claude Code, Codex.

Or install spur-toolkit, the plugin that ships this one along with the rest of its 1 skill.

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 deploy-spur

README.md
[![agentmods](https://agentmods.dev/badge/skills/rocm/spur-toolkit/deploy-spur.svg)](https://agentmods.dev/skills/rocm/spur-toolkit/deploy-spur)
Your own site
<a href="https://agentmods.dev/skills/rocm/spur-toolkit/deploy-spur"><img src="https://agentmods.dev/badge/skills/rocm/spur-toolkit/deploy-spur.svg" alt="Measured on agentmods" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 14,851 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. Scan, not verified.
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 $0.00134 $0.14851
Opus 5 $0.00067 $0.07426
Sonnet 5 $0.00027 $0.02970
Haiku 4.5 $0.00013 $0.01485

Measured 3d ago against content hash e3d9cc354b24, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade D, and why

deploy-spur scanned grade D with 3 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 3d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

> Every command below is written to work whether the SSH user is `root` or a non-root user with (passwordless) `sudo` — confirm `sudo -n true` succeeds during Step 1's preflight. `SPUR_HOME`/`SPUR_INSTALL_DIR` default un

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

ssh "$tgt" "sudo rm -rf ${SPUR_HOME}/state && sudo mkdir -p ${SPUR_HOME}/state"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

for t in curl tar bash ss pgrep pkill systemctl; do command -v $t >/dev/null || echo "MISSING:$t"; done
skills/deploy-spur/SKILL.md · 840 lines

How it starts

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

Deploy Spur Cluster

Spur is an AI-native job scheduler with these daemons:

  • spurctld — controller / scheduler / Raft consensus (1 instance, or ≥ 3 for HA). Also serves accounting (sacct/fairshare, backed by PostgreSQL) in-process on its own gRPC port whenever [accounting].database_url is set — there is no separate accounting daemon. Only Postgres itself is a distinct service, on ACCT_HOST (default: first controller; may be a dedicated node).
  • spurd — node agent, runs on every compute host

Pre-merge Spur builds additionally shipped a standalone spurdbd accounting daemon; upstream folded it into spurctld. If you're upgrading a cluster that still has spurdbd.service active, see Step 5b: migrating off a standalone spurdbd below — don't skip it, or you'll end up with two accounting paths fighting over the same Postgres.

This skill stands a cluster up with only SSH + bash on the targets. It is the standalone equivalent of ansible/ and reaches the same end state: daemons run as systemd services (survive reboot), Slurm-compatible CLI names are symlinked, and accounting is optional (default on). One flow covers all four topologies — only the host list, Raft topology, and which hosts run an agent differ. A rolling-upgrade flow (Step 12) upgrades an already-running cluster one host at a time instead of bouncing everything at once.

Defaults (override only if the user asks):

Var Default
SPUR_HOME /root/spur
SPUR_INSTALL_DIR /root/.local/bin
SPUR_VERSION latest (passed to install.sh; or nightly / vX.Y.Z)
SPUR_BINARY_SRC (empty) — local dir with pre-built spur/spurctld/spurd and optionally spur_mpi_pmix.so; used when set, else install.sh
SPUR_MPI_PLUGIN_DIR /usr/lib/spur — where spur_mpi_pmix.so is installed on agents (matches spurd default)
SPUR_CONTROLLER_PORT 6817
SPUR_AGENT_PORT 6818
SPUR_RAFT_PORT 6821 (hardcoded inside spurctld; cannot be changed via CLI)
ACCT_DB_PORT 5432 (PostgreSQL)
SPUR_CLUSTER_NAME spur-cluster
SPUR_LOG_LEVEL info
SPUR_WIPE_STATE false (preserve Raft state so re-runs/upgrades are non-destructive; set true for a fresh install or intentional Raft reinit)
ACCOUNTING true (deploy PostgreSQL; accounting is served by spurctld itself; set false to skip)
ACCT_DB_NAME / ACCT_DB_USER / ACCT_DB_PASSWORD spur / spur / spur
TRANSPORT direct (LAN) — or wireguard for an encrypted mesh
ROLLING_BATCH_SIZE 1 (agents upgraded per batch in Step 12; controllers are always one at a time)
SSH user root (unless the user specifies otherwise)

Every command below is written to work whether the SSH user is root or a non-root user with (passwordless) sudo — confirm sudo -n true succeeds during Step 1's preflight. SPUR_HOME/SPUR_INSTALL_DIR default under /root, which is mode 0700: a non-root user cannot even cd/execute/test -x into it, let alone write there, and no chown of a subdirectory fixes this (the block is on traversing /root itself). So:

  • Every remote command that reads/writes under /root, /etc/systemd/system, or runs spur/sbatch/sacct/etc. must be sudo-prefixed — not just the file-writing steps. This applies uniformly (as root, sudo is a harmless no-op).
  • scp and heredoc redirects (cat > /path <<EOF) run as the plain SSH user and cannot land a file directly under /root even with the SSH user later sudo-reading it. Copy to /tmp first, then sudo install/sudo mv it into place.
  • Alternatively, set SPUR_INSTALL_DIR/SPUR_HOME to a world-traversable path (e.g. /opt/spur) up front to sidestep all of this — but then every install/sudo note below is still harmless, just unnecessary.

Password-based SSH works too — every ssh/scp command in this skill is a plain invocation with no auth-method assumptions baked in, so if key-based auth isn't set up, prefix each one with sshpass -p "$SSH_PASSWORD" ssh -o StrictHostKeyChecking=no ... (and the scp equivalent). Do not add -o BatchMode=yes anywhere — it disables SSH's password prompt outright and silently breaks password auth even with sshpass supplying the answer.

Read the full file on GitHub · 840 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. 3d ago First seen · 840 lines · 134 tokens per session scan D e3d9cc354b24

Subscribe to this mod's changes

deploy-spur is a skill published in the GitHub repository ROCm/spur-toolkit (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 134 tokens to every session and 14,851 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, recursive force delete, makes network calls). 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

cloud-architect

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost…

Jeffallan/claude-skills · 71 tokens

rule

Skill "rule" from x-cmd/x-cmd, covering rule — rules to rule, 核心命令, 规则文件格式, 示例 and 验证规则文件格式.

x-cmd/x-cmd · 0 tokens

cve

Look up CVE records via x cve — cached, zero-API-key, daily xz TSV. Load for cve, vulnerability id, kev, epss, nvd, cvelist, or security advisory.

x-cmd/x-cmd · 49 tokens

azmon-mirroredcatalogs-operations-cli

Brings Azure Monitor, Application Insights, and Log Analytics telemetry into Fabric as Eventhouse external delta tables and correlates it with business data. Use to onboard observability data, judge whether latency or availability affected revenue, or build a Real-Time dashboard and Operations Agent over it.

microsoft/skills-for-fabric · 66 tokens

atmos-auth

Authentication and identity management: providers (SSO/SAML/OIDC/GCP/Atmos Pro), identities, keyring, identity chaining, login/exec/shell/console, and github/sts for private GitHub access.

cloudposse/atmos · 48 tokens

terraform-search-import

Discover existing cloud resources using Terraform Search queries and bulk import them into Terraform management. Use when bringing unmanaged infrastructure under Terraform control, auditing cloud resources, or migrating to IaC.

hashicorp/agent-skills · 39 tokens