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.
npx agentmods add skills/rocm/spur-toolkit/deploy-spurnpx skills add ROCm/spur-toolkit --skill deploy-spurgit clone --depth 1 https://github.com/ROCm/spur-toolkitWrote 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.
[](https://agentmods.dev/skills/rocm/spur-toolkit/deploy-spur)<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>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.
| Model | Per session | Once 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 |
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 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_urlis set — there is no separate accounting daemon. Only Postgres itself is a distinct service, onACCT_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
spurdbdaccounting daemon; upstream folded it intospurctld. If you're upgrading a cluster that still hasspurdbd.serviceactive, 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
rootor a non-root user with (passwordless)sudo— confirmsudo -n truesucceeds during Step 1's preflight.SPUR_HOME/SPUR_INSTALL_DIRdefault under/root, which is mode0700: a non-root user cannot evencd/execute/test -xinto it, let alone write there, and nochownof a subdirectory fixes this (the block is on traversing/rootitself). So:
- Every remote command that reads/writes under
/root,/etc/systemd/system, or runsspur/sbatch/sacct/etc. must besudo-prefixed — not just the file-writing steps. This applies uniformly (as root,sudois a harmless no-op).scpand heredoc redirects (cat > /path <<EOF) run as the plain SSH user and cannot land a file directly under/rooteven with the SSH user latersudo-reading it. Copy to/tmpfirst, thensudo install/sudo mvit into place.- Alternatively, set
SPUR_INSTALL_DIR/SPUR_HOMEto a world-traversable path (e.g./opt/spur) up front to sidestep all of this — but then every install/sudonote below is still harmless, just unnecessary.Password-based SSH works too — every
ssh/scpcommand 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 withsshpass -p "$SSH_PASSWORD" ssh -o StrictHostKeyChecking=no ...(and thescpequivalent). Do not add-o BatchMode=yesanywhere — it disables SSH's password prompt outright and silently breaks password auth even withsshpasssupplying the answer.
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.
- 3d ago First seen · 840 lines · 134 tokens per session scan D e3d9cc354b24
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.
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…
rule
Skill "rule" from x-cmd/x-cmd, covering rule — rules to rule, 核心命令, 规则文件格式, 示例 and 验证规则文件格式.
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.
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.
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.
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.