/nvidia-doca-plugin:doca-spcx-ccfrom NVIDIA DOCA
Guides invocation of doca_spcx_cc CLI to load, parameterize, start, observe, or stop SPC-X congestion-control algorithms on BlueField DPA processors over RDMA/RoCE fabrics.
Ships in NVIDIA DOCA. 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.
Read when SKILL.md points to them.
Host checks. Commands here that inspect the user's DOCA host (listing or reading
/opt/mellanox/doca, release files such as/etc/mlnx-releaseor/etc/nvidia/bf-release,/dev/mst) or reach the BlueField (RShim, SSH, BMC) are for that host. Run them yourself only if the user confirms you are on it; otherwise answer from this skill, give the commands for the user to run, and treat values you can't see as unknown.
doca-pcc for a custom CC
algorithm?" — this is in scope. Walk the decision tree
before loading anything on a live fabric.Follow Loading order below. Open the tasks companion for configure / run. Open the capabilities companion for the SPCX-vs-PCC tradeoff and safety. Do not open every companion file.
Where to start: This is a tool skill for invoking
doca_spcx_cc — the host-side CLI that exercises
an SPC-X congestion-control algorithm on a
live RDMA / RoCE fabric driven by a BlueField with a DPA
processor. Open the tasks companion and start at
## configure for the
SPCX-vs-PCC-vs-factory-firmware decision tree (load-bearing
gate before any code), the role decision (RP / NP), the
DPA-side algorithm authoring vs consumption split, and the
live-link / contention precondition. Open
the capabilities companion when the question is
what does SPCX let me express that doca-pcc does not,
what is the SPCX-vs-PCC tradeoff, what runtime metrics
does the tool surface, or what is the safety posture for
loading a custom CC algorithm on a production fabric. If
DOCA is not installed yet, route to
doca-setup/SKILL.md first.
This skill covers the SPC-X CC tool.
doca-pcc/SKILL.md is the established
PCC story; SPCX is the documented extension that authors
SPCX-class algorithms on the same DPA hardware substrate.
The zero-touch RTT-based CC algorithm (ZTR-RTT) is one
NVIDIA reference algorithm that can be loaded through either the PCC or SPCX path
depending on the install and the user's algorithm choice;
the agent surfaces this decision tree explicitly per
the capabilities companion.
The CLASSES of doca_spcx_cc questions this skill is built
to answer, each with one worked example. The class is the
load-bearing piece; the worked example is one instance.
doca-pcc for my custom CC
algorithm?" — worked example: "I want to write a new
RTT-based congestion-control algorithm for my RoCE
fabric — which surface do I target?". Answered by the
SPCX-vs-PCC-vs-factory-firmware decision tree in
the capabilities companion
DOCA_PCC_PS_ACTIVE and a stable session, but my
RoCE flows look unchanged". Answered by the live-link /
contention rule in
the capabilities companion
No contention → no signal → no conclusion.
Activeplus an unchanged traffic curve is not evidence that the algorithm failed to take over from factory CC. A CC algorithm has no observable behaviour without actual contention on the fabric, so an idle-link or contention-absent run is uninformative by construction — it supports no verdict in either direction. Establish that the run actually generated contention before concluding anything, and never declare an algorithm either broken or safe on such a run. Rule in the capabilities companion.
doca-hardware-safety/SKILL.md):
blast-radius bounded, observability gate proven, OOB
reachable, factory-PCC rollback rehearsed, escalation
path documented before any production cutover.doca_spcx_cc on my install, and is it paired
with the matching doca-pcc library and DPACC compiler
version?" — worked example: "is the SPCX surface
available on my DOCA install?". Answered by the
version-overlay in
the capabilities companion,
which redirects to the canonical
doca-version/SKILL.md chain
and adds the tool ↔ doca-pcc library ↔ DPACC
compiler ↔ firmware custom-PCC slot match rule.doca_spcx_cc exits with
DOCA_PCC_PS_ERROR on start". Answered by the
layered error taxonomy in
the capabilities companion
This skill serves external developers, platform operators, and AI agents authoring, loading, and evaluating an SPC-X congestion-control algorithm on a BlueField with a DPA processor, against a live RDMA / RoCE fabric. Concretely:
doca-public-knowledge-map
on the SPCX path when the install + algorithm support
it) and needs the operator-side harness to load,
parameterize, start, observe, and stop the algorithm.It is not for users debugging the doca_spcx_cc
binary itself, not a substitute for the installed --help, the
DOCA release notes, or the public DOCA PCC guide, not the
right place for the DPA-side algorithm authoring detail
(that path goes through the public DOCA PCC programming guide and the
doca-pcc/SKILL.md +
doca-dpa/SKILL.md skills), and
not the right place for default factory PCC
configuration (no host-side library or SPCX tool needed;
route via
doca-public-knowledge-map/SKILL.md).
The tool is shipped as a CLI binary under
/opt/mellanox/doca/tools/, not a library you link
against; it uses the same kind: tool three-file
shape as the rest of the bundle.
doca_spcx_cc is a C host-side CLI that links the
host-side doca-pcc/SKILL.md
library and loads a DPA-side SPCX algorithm image built
by the DPACC compiler. The algorithm body is a separate
DPA-side translation unit written in the language DPACC
accepts. The skill keeps workflow guidance
language-neutral and routes per-language questions to
the public DOCA PCC / DPACC guides via
doca-public-knowledge-map/SKILL.md.
Load this skill when the user is — or the agent needs to
— invoke doca_spcx_cc on a real host with DOCA
installed, paired with a BlueField that has its DPA
processor exposed AND the firmware custom-PCC slot
enabled, against a port carrying RDMA / RoCE traffic with
actual contention. Concretely:
doca-pcc paths for the same
algorithm class on the same install (where both paths
are available) and deciding which to commit to.DOCA_PCC_PS_ERROR or a silent-no-effect
symptom against the layered error taxonomy.Do not load this skill for general DOCA orientation,
DPA-side algorithm authoring detail, raw cycle profiling
of the DPA, the factory PCC algorithm shipped in the
firmware, or DOCA install. For those, route to
doca-public-knowledge-map/SKILL.md,
doca-pcc/SKILL.md,
doca-dpa/SKILL.md, or
doca-setup/SKILL.md.
This is a thin loader. Substantive material lives in two companion files:
doca-pcc/SKILL.md: DPA-capable
BlueField + firmware custom-PCC slot enabled +
doca_pcc_cap_* agreement) extended with SPCX-specific
availability, the version overlay (tool ↔ library ↔
DPACC ↔ firmware), the layered error taxonomy
(install / device-binding / fw-slot / DPA-image /
algorithm-precondition / live-link-precondition /
runtime / version / cross-cutting), the observability
surface, and the heavily-overlaid safety posture (a
wrong CC algorithm on production can melt the
fabric).install (host-side DOCA install + DPA
prerequisites + firmware custom-PCC slot), configure
(SPCX-vs-PCC decision + role + algorithm + parameters
build (route to install —
the host-side tool is shipped; the DPA-side algorithm
is user-built by DPACC), modify (refuse — do not
patch the binary; modify the invocation, algorithm,
and parameters), run (the
prepare → smoke → contention-positive evaluation
flow), test (iterative loop on the replica before
production), debug (walk the error taxonomy),
use (the "safe to roll forward" decision with
evidence + rollback + escalation), plus a Deferred task verbs block.The skill assumes a host where DOCA is already installed, a BlueField with a DPA processor and the firmware-level custom-PCC slot enabled is present and visible, the DPACC compiler is installed at a version matched to the host-side DOCA, the user already knows how (at sketch level) to write the DPA-side SPCX algorithm (or has a shipped reference algorithm to consume), and a non-prod RDMA / RoCE fabric with controllable contention is available for evaluation.
This skill is agent guidance, not a samples or scripts bundle. To keep the boundary clean, it deliberately does not contain — and pull requests should not add:
--help.
Flags can change between releases; --help wins.samples/ or reference/ subtree. This is
a thin loader for a shipped CLI; substantive
material lives in the release notes, in --help,
and in
doca-pcc/SKILL.md +
doca-dpa/SKILL.md.install, configure, build,
modify, run, test, debug, use — see
the tasks companion.doca-pcc/SKILL.md — the host-side
Programmable Congestion Control library SPCX builds on and links.
The SPCX-vs-PCC decision tree in
the capabilities companion
is the load-bearing routing rule; conflating the two is the most
common programmable-CC first-touch error.doca-dpa/SKILL.md — the DPA control
library the algorithm's DPA-side body builds on: kernel-launch
model, DPACC build flags, DPA-side comms / verbs.doca-rdma/SKILL.md — the RDMA / RoCE
flows being controlled. Without traffic in flight and contention
on the fabric the algorithm has no signal; surface this
precondition before any evaluation.doca-pcc-counters/SKILL.md — read-only
PCC counter inspection; the cheaper "is anything happening on
this port" step before or during an SPCX evaluation.doca-hardware-safety/SKILL.md —
the bundle-wide hardware-safety meta-policy this skill's
## Safety policy layers on. Deploying a wrong CC algorithm on a
production fabric is a meta-policy STOP case.doca-public-knowledge-map/SKILL.md
— routing to the DOCA release notes and the public PCC, DPA, and DPACC guides.doca-version/SKILL.md — canonical DOCA
version handling. ## Version compatibility in
the capabilities companion adds the tool ↔ doca-pcc
↔ DPACC ↔ firmware custom-PCC slot matching rule.doca-setup/SKILL.md — env preparation,
install and DPACC compiler verification, BlueField firmware
configuration (the custom-PCC slot is a firmware-level setting),
and the no install yet path via the public NGC DOCA container.doca-debug/SKILL.md — the cross-cutting
debug ladder. Cross-link runtime evidence and counter snapshots
into a doca-debug session when the cause sits below DOCA.doca-structured-tools-contract/SKILL.md
— the detect → prefer → fall back → report contract the command
appendix in the tasks companion honors.doca-programming-guide/SKILL.md
— shared DOCA programming patterns, including the cross-library
DOCA_ERROR_* taxonomy this tool's error layer overlays.The factory PCC algorithms inside ConnectX firmware are not in
scope: they work without doca_spcx_cc and are configured through
firmware knobs, not a host-side API. Route via
doca-public-knowledge-map/SKILL.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nvidia/skills --plugin nvidia-doca-plugin53 skills in this plugin
/doca-aes-gcmUse this skill when the user is doing hands-on DOCA AES-GCM work on a BlueField DPU or ConnectX NIC — configuring `doca_aes_gcm_task_encrypt` / `_task_decrypt`, querying `doca_aes_gcm_cap_*` for per-key-type (only `DOCA_AES_GCM_KEY_128` / `_256` — AES-192 not supported) and per-task support, sizing plaintext against the max-buf cap, setting source / destination mmap permissions, validating with a NIST GCMVS or RFC 5288 vector, or debugging DOCA_ERROR_* including the security-critical tag-verification-failed outcome on decrypt. Trigger even when the user does not explicitly mention "DOCA AES-GCM" or "AEAD" — typical implicit phrasings: "decrypt completion IO_FAILED", "auth tag isn't verifying", "NOT_PERMITTED on my encrypt buffer", "is AES-192-GCM on this BlueField" (no), or "encrypted record came back tampered". Refuse and route elsewhere for non-GCM AES modes (CBC / CTR / XTS — CPU OpenSSL), key management (KMS / HSM / rotation), SHA (doca-sha), or general AEAD background.
/doca-argpUse this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring `doca_argp_init` → register params → `doca_argp_start` → `doca_argp_destroy` in order; picking a parameter type from the full public enum (`DOCA_ARGP_TYPE_STRING`, `_INT`, `_BOOLEAN`, `_DEVICE`, `_DEVICE_REP`, `_DOUBLE` — six values, not three); preserving the built-in DOCA flags (`-h` `-v` `-l` `--sdk-log-level` `--log-filter` `-j`/`--json`, NOT `--json-config`); `--device` is per-program; or debugging `DOCA_ERROR_BAD_STATE` / `INVALID_VALUE` / `NOT_SUPPORTED` / `IO_FAILED` from `doca_argp_*`. Trigger on implicit phrasings: "add a custom flag to a DOCA sample", "should I use getopt here", "BAD_STATE registering a new param", "my JSON config key is rejected", or "my sample's --json is ignored". Refuse and route elsewhere for variadic-flag / subcommand / shell-completion features, DOCA Core context, or DOCA Log internals.
Other plugins' skills for the same job