spark-environment-setup

spark-environment-setup is a skill for Claude Code from wshobson/agents. It costs 76 tokens per session (2,086 once invoked), scanned A, original, MIT.

A guide to installing and checking machine-learning software on NVIDIA DGX Spark, whose processor uses the aarch64 architecture and CUDA 13. It covers PyTorch and related tools in containers or direct package installations.

In plain words
What is it for?
Use it to prepare a new DGX Spark, repair an installation, diagnose library errors, or choose between an NGC container and direct package installation.
Why use it?
It helps avoid software packages that install successfully but cannot load, use the GPU, or match the system's CUDA version and processor architecture.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dgx-spark-ops plugin — 3 skills, 1 command, 1 agent shipped together

not rated 43krepo +205 2d ago A scan Socket: passSnyk: warnSkillSpector: warn 76 tokens original MIT

Good fit Use it to prepare a new DGX Spark, repair an installation, diagnose library errors, or choose between an NGC container and direct package installation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wshobson/agents/spark-environment-setup
About the project

Agentic Plugin Marketplace is a collection of reusable plugins, agents, skills, commands, and rules for coding-agent tools including Claude Code, Codex CLI, Cursor, OpenCode, Antigravity CLI, and GitHub Copilot. It is for developers assembling agentic workflows across multiple harnesses from shared Markdown sources, and the catalogue entries are examples or subsets of those workflow components.

wshobson/agents · 43,195 stars · on GitHub · sethhobson.com

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 wshobson/agents --skill spark-environment-setup
Clone the repo
git clone --depth 1 https://github.com/wshobson/agents

Made for: Claude Code.

Or install dgx-spark-ops, the plugin that ships this one along with the rest of its 3 skills, 1 command, 1 agent.

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 spark-environment-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wshobson/agents/spark-environment-setup"><img src="https://agentmods.dev/badge/skills/wshobson/agents/spark-environment-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,086 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. Third-party audits
  • Socket pass 14 Jul 2026
  • Snyk warn 14 Jul 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 47
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
How audits are shown
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.00076 $0.02086
Opus 5.5 $0.00030 $0.00834
Sonnet 5.5 $0.00015 $0.00417
Haiku 4.5 $0.00008 $0.00209

Measured 3mo ago against content hash 4fe4b4328a52, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spark-environment-setup 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 3mo 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.

plugins/dgx-spark-ops/skills/spark-environment-setup/SKILL.md · 201 lines

How it starts

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

Spark Environment Setup

DGX Spark ships a GB10 Grace Blackwell chip: aarch64 CPU, SM121 GPU, 128GB unified memory, CUDA 13. This is a narrower and younger platform than a standard x86 CUDA 12 box, so package selection and ABI matching matter more than usual — the wheel ecosystem for aarch64 + CUDA 13 is still filling in.

When to Use This Skill

  • Setting up a fresh Spark box for training or inference.
  • Hitting an import error mentioning libcudart, a missing symbol, or a wheel that "installed fine but won't load."
  • A framework install (PyTorch, Unsloth, TRL, vLLM, xformers) fails, hangs, or silently falls back to CPU.
  • Deciding whether to use an NGC container or bare pip.
  • Restoring a working setup after an OS reinstall or a base-image update, needing to re-verify from scratch.

Each of these accepts the same general fix: match the container/wheel combination to CUDA 13 and SM121, don't fight the ABI.

Container-First Rule

Quick decision, before the detail below:

  • Standard training/inference work → NGC PyTorch container.
  • Unsloth-centric fine-tuning → Unsloth container (it ships the pinned Triton/xformers/transformers combination already validated for that path).
  • Neither fits (custom system package, local IDE interpreter) → bare pip, following the exact sequence further down.

Default to a container. Use nvcr.io/nvidia/pytorch:25.09-py3 as the base for general work — the newest tag confirmed working on this hardware; pull a newer blessed tag if locally available rather than hard-blocking on 25.11-py3. NGC's tag is dated, so running it directly is fine:

docker run --runtime=nvidia --gpus all -it --rm \
  nvcr.io/nvidia/pytorch:25.09-py3

unsloth/unsloth:dgxspark-latest is a moving tag by contrast — resolve and pin its digest before running it for anything reproducible; the bare tag is a discovery step only, not the default invocation. Full pull-inspect-pin sequence and flag rationale/volume mounts for finetuning/ run dirs: references/container-workflow.md. Treat bare pip as the exception.

Read the full file on GitHub · 201 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 201 lines · 76 tokens per session scan A 4fe4b4328a52

Subscribe to this mod's changes

spark-environment-setup is a skill published in the GitHub repository wshobson/agents (43,195 stars, last pushed 2d ago), licensed MIT. It adds 76 tokens to every session and 2,086 once invoked, about $0.0003 per session on Opus 5.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-09-03.

Related

spark-environment-setup compared with skills from other repositories

spark-environment-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spark-environment-setupwshobson/agentsSkill43k2d agoMITA76Claude Code
inference-serving-llama-cppdavila7/claude-code-templatesSkill35kyesterdayMITA80Claude Code, Codex
9router-chatdecolua/9routerSkill33k11d agoMITA63Claude Code, Codex
tao-train-visual-changenetNVIDIA/skillsSkill4.3kyesterdayApache-2.0A92Claude Code
amc-run-rtsp-calibrationNVIDIA/skillsSkill4.3kyesterdayApache-2.0A59Claude Code, Codex
deepstream-import-vision-modelNVIDIA/skillsSkill4.3kyesterdayApache-2.0A72Codex
tao-run-automl-deft-pipelineNVIDIA/skillsSkill4.3kyesterdayApache-2.0A269Claude Code