Agent skill

Sparkdiffusion Setup

by AlibabaResearch in AlibabaResearch/SparkDiffusion

Prepare a SparkDiffusion checkout for training or inference.

Apache-2.0Auto-check passed

Install Sparkdiffusion Setup

skills CLI
$ npx skills add AlibabaResearch/SparkDiffusion --skill sparkdiffusion-setup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AlibabaResearch/SparkDiffusion sparkdiffusion-setup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AlibabaResearch/SparkDiffusion.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/sparkdiffusion-setup .claude/skills/sparkdiffusion-setup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sparkdiffusion-setup
GitHub stars
507
Token cost
~732 tokens
SKILL.md length
232 words
Files
2
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Prepare a SparkDiffusion checkout for training or inference.

  • Works in 7 steps: Identify the repository root and inspect… → Verify Python, PyTorch, CUDA, and GPU… → Install the repository requirements in… → …
  • A user asks to install dependencies
  • SKILL.md covers Rules, Workflow and Path Contract
  • Calls python, pip and bash

What it does

Sparkdiffusion Setup is an agent skill from AlibabaResearch/SparkDiffusion. Prepare a SparkDiffusion checkout for training or inference. Use when a user asks to install dependencies, configure model/data/output paths, validate a new machine, or troubleshoot missing weights and datasets.

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

The licence is Apache-2.0.

When your agent uses it

  • A user asks to install dependencies
  • Configure model/data/output paths
  • Validate a new machine
  • Troubleshoot missing weights and datasets

Example prompts

  • “/sparkdiffusion-setup”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Identify the repository root and inspect requirements.txt, scripts/env.sh, and README.md.
  2. Verify Python, PyTorch, CUDA, and GPU visibility
  3. Install the repository requirements in the active environment, using a CUDA-matched PyTorch build
  4. Configure repository roots
  5. For sparse finetuning or RoLa distillation, configure the external SLA checkout before starting Python
  6. Check the expected layout
  7. Validate source and launchers without starting a job

What it can do on your machine

Read from SKILL.md and the folder at commit caad1df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • pip
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sparkdiffusion Setup loads about 732 tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 232 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~732

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from AlibabaResearch/SparkDiffusion at commit caad1df, republished under its Apache-2.0 licence (© AlibabaResearch). 232 words, ~732 tokens.

Download SKILL.mdSave it as .claude/skills/sparkdiffusion-setup/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
sparkdiffusion-setup
description
Prepare a SparkDiffusion checkout for training or inference. Use when a user asks to install dependencies, configure model/data/output paths, validate a new machine, or troubleshoot missing weights and datasets.

SparkDiffusion Setup

Use this skill before launching training or inference on a fresh checkout or a new server.

Rules

  • Work from the repository root.
  • Prefer repository-relative paths and environment variables. Do not hard-code machine-specific paths.
  • Do not download or copy model weights into git-tracked source directories.
  • Do not launch a GPU job until the preflight checks pass.
  • Preserve the user's existing environment; only install packages after showing the proposed command.

Workflow

  1. Identify the repository root and inspect requirements.txt, scripts/env.sh, and README.md.

  2. Verify Python, PyTorch, CUDA, and GPU visibility:

    bash
    python --version
    python -c "import torch; print(torch.__version__, torch.version.cuda, torch.cuda.is_available(), torch.cuda.device_count())"
  3. Install the repository requirements in the active environment, using a CUDA-matched PyTorch build:

    bash
    pip install -r requirements.txt
  4. Configure repository roots:

    bash
    source scripts/env.sh

    Override only the roots that live outside the checkout:

    bash
    PRETRAIN_ROOT=/path/to/pretrain_weights \
    DISTILL_DATA_ROOT=/path/to/distill_data \
    ROLA_DATA_ROOT=/path/to/rola_data \
    DISTILL_OUTPUT_ROOT=/path/to/distill_outputs \
    ROLA_OUTPUT_ROOT=/path/to/rola_outputs \
    source scripts/env.sh
  5. For sparse finetuning or RoLa distillation, configure the external SLA checkout before starting Python:

    bash
    export SLA_SRC=/absolute/path/to/SLA
    test -d "${SLA_SRC}/sparse_linear_attention"

    Standard dense and fused RoLa inference do not require SLA_SRC. PureSLA, unfused RoLa, and legacy INT8 sparse inference do.

  6. Check the expected layout:

    text
    pretrain_weights/
    datasets/distill/
    datasets/rola/
    outputs/distill/
    outputs/rola/
  7. Validate source and launchers without starting a job:

    bash
    python -m compileall -q sparkdiffusion imaginaire scripts
    bash -n scripts/env.sh scripts/distill/*.sh scripts/sparse_finetune/*.sh scripts/inference/*.sh

Path Contract

  • Wan model and tokenizer assets belong under PRETRAIN_ROOT.
  • Distillation shards belong under DISTILL_DATA_ROOT.
  • Sparse-finetuning shards belong under ROLA_DATA_ROOT.
  • Training outputs belong under DISTILL_OUTPUT_ROOT or ROLA_OUTPUT_ROOT.
  • Generated videos belong under outputs/inference/ unless OUT_ROOT or an explicit output argument is supplied.

When a required path is missing, report the exact expected path and stop. Do not silently substitute a local absolute path or a different model variant.

© AlibabaResearch, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/sparkdiffusion-setup of AlibabaResearch/SparkDiffusion.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit caad1df

Compare with similar skills

Sparkdiffusion Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sparkdiffusion Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sparkdiffusion Setup this skillAlibabaResearch/SparkDiffusion507—~732Automated safety check: PassApache-2.0
Checkoutremotion-dev/remotion62k—~166Automated safety check: PassCustom licence
Ito Inferenceaffaan-m/ECC275k1 repos~1.5kAutomated safety check: PassMIT
Train Infer Consistencyverl-project/verl-omni1.2k—~860Automated safety check: PassApache-2.0
Ray Train Distributed TrainingOrchestra-Research/AI-Research-SKILLs13k3 repos~2.7kAutomated safety check: PassMIT
Gke Inferencegoogle/skills21k—~2kAutomated safety check: PassApache-2.0

Similar skills

  • Checkout

    remotion-dev/remotion

    Official

    Checkout a requested branch or ref in the Remotion repo, rename the current task to the associated PR title when running in Codex, then install dependencies and build.

    62k GitHub stars~166 tokensUpdated today
    Media & CreativeAuto-check passed
  • Ito Inference

    affaan-m/ECC

    Inspect the availability of model serving on a completed Itô compute booking and, when the canonical backend becomes available, hand off an explicitly confirmed serving manifest.

    275k GitHub starsUsed in 1 repo~1.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Train Infer Consistency

    verl-project/verl-omni

    Route verl-omni training/inference consistency checks through MindStudio's MSProbe collection and root-cause analysis skills.

    1.2k GitHub stars~860 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Ray Train Distributed Training

    Orchestra-Research/AI-Research-SKILLs

    Scales PyTorch, TensorFlow and Hugging Face training from a single GPU to multi-node clusters with Ray Train, including Ray Tune sweeps and checkpoint recovery.

    13k GitHub starsUsed in 3 repos~2.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Gke Inference

    google/skills

    Official

    Deploys and optimizes AI/ML inference workloads on GKE, using GPUs, TPUs, and model servers.

    21k GitHub stars~2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • LLM Inference Scaling

    sickn33/agentic-awesome-skills

    Auto-scale LLM inference clusters on Kubernetes using KEDA, custom GPU metrics, and horizontal pod autoscaling.

    47k GitHub starsUsed in 1 repo~2.1k tokens
    AI & LLM EngineeringAuto-check passed

More from AlibabaResearch/SparkDiffusion

  • Sparkdiffusion Distill

    AlibabaResearch/SparkDiffusion

    Configure and launch SparkDiffusion few-step distillation for Wan 2.1 or Wan 2.2.

    507 GitHub stars~876 tokensUpdated 3 days ago
    Auto-check passed
  • Sparkdiffusion Finetune

    AlibabaResearch/SparkDiffusion

    Configure and launch SparkDiffusion sparse finetuning for Wan 2.1 or Wan 2.2.

    507 GitHub stars~904 tokensUpdated 3 days ago
    Auto-check passed
  • Sparkdiffusion Inference

    AlibabaResearch/SparkDiffusion

    Run validated SparkDiffusion inference for Wan 2.1 or Wan 2.2 T2V/I2V models.

    507 GitHub stars~853 tokensUpdated 3 days ago
    Auto-check passed

Questions about Sparkdiffusion Setup

What does Sparkdiffusion Setup do?

Prepare a SparkDiffusion checkout for training or inference. Sparkdiffusion Setup is an agent skill from AlibabaResearch/SparkDiffusion. Prepare a SparkDiffusion checkout for training or inference.

When should I use Sparkdiffusion Setup?

Sparkdiffusion Setup fits situations like: A user asks to install dependencies; configure model/data/output paths; validate a new machine; troubleshoot missing weights and datasets.

How do I install Sparkdiffusion Setup in Claude Code?

Run `npx skills add AlibabaResearch/SparkDiffusion --skill sparkdiffusion-setup -a claude-code`. Or copy the skill folder (.agents/skills/sparkdiffusion-setup in AlibabaResearch/SparkDiffusion) into .claude/skills/sparkdiffusion-setup in your project. Claude Code loads it when a task matches its description.

How do I install Sparkdiffusion Setup in Codex?

Run `npx skills add AlibabaResearch/SparkDiffusion --skill sparkdiffusion-setup -a codex`. Or copy the skill folder (.agents/skills/sparkdiffusion-setup in AlibabaResearch/SparkDiffusion) into .agents/skills/sparkdiffusion-setup in your project. Codex loads it when a task matches its description.

Can I use Sparkdiffusion Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AlibabaResearch/SparkDiffusion --skill sparkdiffusion-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sparkdiffusion-setup, .gemini/skills/sparkdiffusion-setup, .github/skills/sparkdiffusion-setup and .opencode/skills/sparkdiffusion-setup in your project.

What does Sparkdiffusion Setup need to run?

Going by SKILL.md and its folder, Sparkdiffusion Setup needs the command-line tools its instructions call (python, pip and bash). Our summary lists: Python 3.

Does Sparkdiffusion Setup access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Sparkdiffusion Setup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sparkdiffusion Setup use?

Sparkdiffusion Setup is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sparkdiffusion Setup use?

About 732 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Sparkdiffusion Setup?

Skills that share tags, products or a category with Sparkdiffusion Setup: Checkout (remotion-dev/remotion, 62k stars), Ito Inference (affaan-m/ECC, 275k stars), Train Infer Consistency (verl-project/verl-omni, 1.2k stars) and Ray Train Distributed Training (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sparkdiffusion Setup?

AlibabaResearch (a GitHub organization) maintains it in AlibabaResearch/SparkDiffusion, which has 507 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 5, 2026.

Source: AlibabaResearch/SparkDiffusion on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.