SSH into a remote host and build a custom Docker image with ROCm tools (rocprofv3, aiter, FlyDSL, rocprof-trace-decoder) based on rocm/vllm-dev:nightly.
Ships in flydsl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build a Docker image on a remote host with rocm gpu access based on rocm/vllm-dev:nightly.
| Argument | Required | Description |
|---|---|---|
<HOST> | Yes | The remote hostname to SSH into and build the image on. Example: gpu-host.example.com |
When this skill is invoked, the argument passed in is the target hostname. Replace all occurrences of <HOST> below with the provided hostname. If no hostname is provided, ask the user for it before proceeding.
<HOST> (provided as argument)rocm/vllm-dev:nightlyssh -o ConnectTimeout=30 <HOST> "cat > /tmp/Dockerfile.rocm-custom << 'DOCKERFILE'
FROM rocm/vllm-dev:nightly
# Uninstall existing aiter
RUN pip uninstall -y aiter 2>/dev/null; true
# Install build dependencies
RUN pip install ninja cmake pybind11
# Clone and install aiter from main branch
RUN cd /tmp && \
git clone --depth 1 --branch main https://github.com/ROCm/aiter.git && \
cd aiter && \
pip install -e . && \
cd / && rm -rf /tmp/aiter
# Clone and install FlyDSL from main branch
RUN cd /tmp && \
git clone --depth 1 --branch main https://github.com/ROCm/FlyDSL.git && \
cd FlyDSL && \
pip install -e . && \
cd / && rm -rf /tmp/FlyDSL
# Install the rocprof-trace-decoder release that matches the ROCm version.
RUN set -eux; \
ROCM_VERSION="$(sed -E 's/^([0-9]+)\.([0-9]+).*/\1.\2/' /opt/rocm/.info/version)"; \
RTD_VERSION="0.1.5"; \
echo "Using rocprof-trace-decoder ${RTD_VERSION} for ROCm ${ROCM_VERSION}"; \
RTD_INSTALLER="rocprof-trace-decoder-manylinux-2.28-${RTD_VERSION}-Linux.sh"; \
cd /tmp; \
wget -q "https://github.com/ROCm/rocprof-trace-decoder/releases/download/${RTD_VERSION}/${RTD_INSTALLER}"; \
chmod +x "${RTD_INSTALLER}"; \
"./${RTD_INSTALLER}" --skip-license --prefix=/tmp/rtd-install; \
find /tmp/rtd-install -name '*.so*' -exec cp -a {} /opt/rocm/lib/ \; ; \
ldconfig; \
rm -rf "${RTD_INSTALLER}" /tmp/rtd-install
# Verify installations
RUN python3 -c 'import aiter; print(\"aiter OK\")' && \
python3 -c 'import flydsl; print(\"FlyDSL OK\")' && \
which rocprofv3 && echo 'rocprofv3 OK' && \
ls /opt/rocm/lib/librocprof*decoder* && echo 'rocprof-trace-decoder OK'
LABEL description=\"ROCm dev image with aiter(main), FlyDSL(main), rocprofv3, and rocprof-trace-decoder\"
DOCKERFILE
"
Build the image with a descriptive tag. Use --network=host to ensure git clone works.
ssh -o ConnectTimeout=30 <HOST> "docker build --network=host -t rocm-dev-custom:main -f /tmp/Dockerfile.rocm-custom /tmp"
Note: Use --progress=plain to see full build logs.
ssh -o ConnectTimeout=30 <HOST> "docker run --rm rocm-dev-custom:main bash -c '
echo \"=== aiter ===\"
python3 -c \"import aiter; print(aiter.__version__)\" 2>/dev/null || python3 -c \"import aiter; print(\\\"aiter OK\\\")\"
echo \"=== FlyDSL ===\"
python3 -c \"import flydsl; print(flydsl.__version__)\" 2>/dev/null || python3 -c \"import flydsl; print(\\\"FlyDSL OK\\\")\"
echo \"=== rocprofv3 ===\"
rocprofv3 --version 2>/dev/null || which rocprofv3
echo \"=== ROCm ===\"
cat /opt/rocm/.info/version
'"
ssh -o ConnectTimeout=30 <HOST> "rm -f /tmp/Dockerfile.rocm-custom"
Report to the user:
/opt/rocm/.info/version and add the matching decoder release from ROCm release notesdocker image pruneTo start a container from the built image with GPU access:
ssh <HOST> "docker run -it --device=/dev/kfd --device=/dev/dri --group-add video --shm-size=64g rocm-dev-custom:main bash"
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/add-target-atom-opAdd a new target-specific Mma / Copy Op type to a FlyDSL backend dialect (`lib/Dialect/Fly<TARGET>/<SUBTARGET>/` + `include/flydsl/Dialect/Fly<TARGET>/IR/`). Covers the MmaOp/CopyOp type design, the stateful-vs-stateless variants, and the `emitAtomCall` / `emitAtomCallSSA` lowering contract to the backend dialect (LLVM/ROCDL/NVVM/SPIR-V/...). Use when adding a new tensor-core / matrix instruction (MFMA, WMMA, HMMA, WGMMA, ...), a new buffer / shared-memory / global copy atom, a new stateful copy (per-atom offset or descriptor), or bringing up a new backend dialect (`FlyPTX`, `FlyCPU`, ...). Reference implementations live in `FlyROCDL`. Usage: /add-target-atom-op
/bisect-perf-regressionFind the exact commit that caused a GPU kernel performance regression using binary search (git bisect). Given a good commit (fast), a bad commit (slow, defaults to HEAD), and a benchmark command, automatically checks out commits, runs the benchmark, extracts the metric, and narrows down to the offending commit. Reports the regression commit with its diff and suggested root cause. Usage: /bisect-perf-regression <good_commit> [bad_commit] -- <bench_cmd>
/build-flydslBuild and install FlyDSL (Flexible Layout Python DSL) on a remote host or Docker container. FlyDSL is a Python DSL and MLIR-based compiler stack for authoring high-performance GPU kernels with explicit layouts and tiling on AMD GPUs. Requires building LLVM/MLIR from source (~30min) then FlyDSL C++ and Python bindings (~5min). Usage: /build-flydsl [container@host]
/flydsl:build-rocm-imagefrom flydsl
npx claudepluginhub rocm/flydsl --plugin flydslOther plugins' skills for the same job