swm: Skill for Claude Code

.agents/skills/swm-gpu-workflow/SKILL.md

swm-gpu-workflow is a skill for Claude Code, Codex from swm-gpu/swm. It costs 116 tokens per session (5,803 once invoked), scanned A, original, Apache-2.0.

A command-line workflow manager for cloud GPUs, which are rented computers with graphics processors used for AI workloads. It searches providers, creates GPU pods, installs listed AI tools, downloads models, syncs workspaces, and manages idle resources.

In plain words
What is it for?
Use it to find and provision GPUs, run tools such as ComfyUI, vLLM, Ollama, or Open WebUI, fetch models, persist workspace files, and limit idle spending.
Why use it?
It brings common GPU setup and lifecycle tasks into one workflow instead of requiring separate provider commands and manual server setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

This is swm-gpu/swm's own configuration. It tells Claude Code and Codex how to work on swm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything swm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to swm-gpu/swm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/swm-gpu/swm/main/.agents/skills/swm-gpu-workflow/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/swm-gpu/swm

Made for: Claude Code, Codex.

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 swm-gpu-workflow

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/swm-gpu/swm/swm-gpu-workflow"><img src="https://agentmods.dev/badge/skills/swm-gpu/swm/swm-gpu-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,803 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
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

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 →

  • high Tool Misuse · line 341
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 342
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Rogue Agent · line 166
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 169
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00116 $0.05803
Opus 5.5 $0.00046 $0.02321
Sonnet 5.5 $0.00023 $0.01161
Haiku 4.5 $0.00012 $0.00580

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

Security

Grade A, and why

swm-gpu-workflow 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 2mo 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.

.agents/skills/swm-gpu-workflow/SKILL.md · 410 lines

How it starts

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

swm — Cloud GPU Workflow Manager

One CLI to search, provision, install, sync, and tear down GPU pods across 10 cloud providers. Why swm over ad-hoc SSH scripts:

  • Cross-provider search — swm gpus hits 10 providers with live pricing and stock in one call.
  • Declarative frameworks — swm setup install <name> brings up ComfyUI / SwarmUI / vLLM / Ollama / Open WebUI / Axolotl / llm-studio idempotently; venv, custom nodes, and multi-GPU tensor parallelism handled.
  • Unified model store — swm models pull auto-detects HF / Civitai / Ollama / URL refs, lands files under /workspace/models/<bucket>/, symlinks them into each framework's expected path.
  • Workspace persistence — three-tier S3 sync (inotify → s5cmd → tar) survives auto-down. pod create -w <name> restores the last session.
  • Lifecycle guard — auto-down / auto-stop / remind policies stop idle bills.

Stop condition. Don't hand off until Phase 5 passes. A pod that's "almost up" still bills.

Prerequisites

  • swm --version works (pipx install swm-gpu or brew tap swm-gpu/swm && brew install swm).
  • ssh and scp on PATH.
  • At least one provider key: swm config set runpod.api_key <key> (or vastai, lambda, …).
  • Optional /workspace persistence: swm config set b2.key_id … + swm config set storage.default b2:<bucket>.

Phase 0 — State check

swm pod list && swm use --show               # running pods + active-pod selection
swm storage ls                               # existing workspaces in the default bucket

If a matching pod is RUNNING, set it active (swm use <name>) and skip to Phase 5. If a workspace prefix you want already exists in swm storage ls, restore it with pod create -w <name>. Otherwise continue.

Phase 1 — Clarify

Use AskQuestion:

Question Options
VRAM floor? ≤16 GB / 16–24 GB / 24–48 GB / 48–80 GB / >80 GB
Provider? runpod / vastai / lambda / tensordock / vultr / auto (cheapest)
Lifecycle? auto-down (default) / auto-stop / remind / manual
Idle timeout? 10 / 20 / 30 / 60 / 120 min
Persist /workspace? yes (default) / no — one-shot, --no-storage

Read the full file on GitHub · 410 lines

Files

What ships with it

1 file 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. 2mo ago First seen · 410 lines · 116 tokens per session scan A dc66b3db6de6

Subscribe to this mod's changes

swm-gpu-workflow is a skill published in the GitHub repository swm-gpu/swm (26 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 116 tokens to every session and 5,803 once invoked, about $0.0005 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-08-30.

Related

swm-gpu-workflow compared with skills from other repositories

swm-gpu-workflow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swm-gpu-workflowswm-gpu/swmSkill261mo agoApache-2.0A116Claude Code, Codex
runpodericrisco/rsc-harnessSkill5032d agoMITA114Claude Code, Codex
skypilot-multi-cloud-orchestrationsynthetic-sciences/openscienceSkill4.3k2d agoApache-2.0A51Claude Code, Codex
modal-serverless-gpuraphaelmansuy/edgecrabSkill933mo agononeA42Claude Code, Codex
serving-llms-vllmraphaelmansuy/edgecrabSkill933mo agononeA75Claude Code, Codex
tensorrt-llmraphaelmansuy/edgecrabSkill933mo agononeA75Claude Code, Codex
lambda-labs-gpu-cloudraphaelmansuy/edgecrabSkill933mo agononeC47Claude Code, Codex