/nvidia-doca-plugin:doca-setupfrom NVIDIA DOCA
Guides DOCA environment setup: verifying install health, preparing build env (pkg-config, headers, hugepages, devlink, representors), debugging env-class failures, and choosing container vs bare-metal deployment. Routes to correct deployment path via system recognition.
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.
Where to start: If the user's question is deployment-shaped
("how do I deploy", "how do I run my DOCA workload", "I just got a
BlueField, what now", "my code is built, what next"), walk
TASKS.md ## recognize first. It is the
bundle's front-door: it detects the system shape (host x86 / BlueField
Arm bare-metal / DPU-only / fresh laptop), asks the developer the
minimal set of questions needed to disambiguate, and routes to the
correct downstream skill — the container deployment path
(doca-container-deployment/SKILL.md),
the bare-metal hardware deployment path
(doca-bare-metal-deployment/SKILL.md),
or the no-hardware fallback
(TASKS.md ## no-install). The wrong failure
mode is to silently steer every developer onto containers because the
agent loaded that skill first; ## recognize exists to prevent that.
If the user does not have DOCA installed yet and the request is not
deployment-shaped, jump straight to
TASKS.md ## no-install for the NGC container
path. Deployment-shaped requests still enter ## recognize first,
which routes fresh-laptop cases to ## no-install. Otherwise read
## When to load this skill to confirm the
question is env-class, then route to the section below that matches the
user's intent.
Do not use this skill for:
doca-flow: name it
and stop. Do not run ## recognize, environment checks or the
verification contract for it.DOCA_ERROR_* means: doca-programming-guide.doca-public-knowledge-map.The CLASSES this skill is built to handle, each with one worked example. The skill must answer the class; the worked example is illustrative.
doca-setup TASKS.md): copy the tag from the NGC catalog Tags page
(https://catalog.ngc.nvidia.com/orgs/nvidia/teams/doca/containers/doca/tags);
never guess a tag or use :latest.<flavor>-<version>[-host], for
example devel-3.5.0-host. Flavor devel builds, full-rt / base-rt
run; -host is the multi-arch host image (x86_64 and aarch64 alike) and
the same tag without -host is the BlueField Arm image; 3.5 has no OS
or architecture fragment, while DOCA 3.3 also published
<version>-devel-amd64-host / -arm64-host. Always say which CPU
architecture the recommended tag serves (x86_64 = amd64, Arm / Apple
Silicon = arm64) and whether it is the host or the BlueField image.
Before giving one tag, ask which CPU architecture (amd64 or arm64)
and which target (host or BlueField) they pull for, unless the user
already said; then give the tag for that answer.pkg-config --modversion doca-common inside
the container and check it matches the version in the tag.pkg-config --modversion doca-common (or ls /opt/mellanox/doca). No
install yet: pull the NGC DOCA container, copying the tag for your DOCA
version from the NGC catalog Tags page; never hardcode a tag.Follow ## Loading order. Open TASKS.md or
CAPABILITIES.md as named there. Do not open every companion file.
TASKS.md ## recognize, which detects the
system shape, asks the minimum residual question, and routes to
either the container or the bare-metal deployment skill.TASKS.md ## test plus the
version-detection rules in
CAPABILITIES.md ## Capabilities and modes.TASKS.md ## no-install (NGC DOCA container
as universal Stage-1).pkg-config --cflags doca-flow returns nothing — what's
missing?" Resolved by the build-prep workflow in
TASKS.md ## configure and the build-class
error taxonomy in
CAPABILITIES.md ## Error taxonomy.TASKS.md ## configure and the runtime
observability rules in
CAPABILITIES.md ## Observability.pkg-config cannot find it at runtime." Resolved by the layered
env-class debug workflow in TASKS.md ## debug.CAPABILITIES.md ## Safety policy.
Hugepage reservation, mlxconfig reset, and eswitch mode changes
are host-global: they can disrupt live networking and representors,
may require a reboot, and can be hard to undo. Obtain explicit user
confirmation before recommending or executing them.If the question is library-API-shaped (Flow pipe construction, RDMA
queue setup, …) or program-shaped (how to build, modify a sample, debug
the program itself), route to
doca-programming-guide/SKILL.md or the
matching library skill instead — env-class only lives here.
Route the code and stop — but keep the orientation. For a library-API or program-shaped request, naming the owning skill and then answering it anyway is the failure mode to avoid: no pipe-construction steps, no queue-setup sketch, no example code, not even as a summary. This holds even when the user has already ruled the environment out ("versions are verified, I just need to define the rules") — that phrasing removes the env-class hook that would make it this skill's work.
It is scoped to that work, and stops there. Saying where a component runs — which side of the BlueField / host split owns it, what the host talks to it over — is deployment orientation, which this skill owns as the front door and must still answer in full. The shared Core lifecycle is the same kind of orientation: name create → configure (properties, permissions, and tasks before start) → start → connect → use → stop → destroy, and that configuration MUST happen before
doca_ctx_start(). Then hand the per-library calls to the owning skill. Handing off the API surface is not a reason to go quiet about the system shape around the object.
Load this skill when the user is dealing with the environment around DOCA — installing it, verifying the install is healthy, preparing the build / runtime preconditions, debugging env-class failures, figuring out how to reach an install from a host that doesn't have one yet, or asking a deployment-shaped question that hasn't yet been routed (containers vs. bare-metal) — the front-door routing decision lives here. Concretely:
## recognize first so the agent does not silently push the user onto the wrong path.pkg-config, headers, library paths).devlink device visibility, representor enumeration, kernel-module prerequisites.*.pc file, hugepages not mounted, representor not visible, header-vs-runtime version mismatch.TASKS.md ## no-install.Do not load this skill for:
doca-public-knowledge-map/SKILL.md.DOCA_ERROR_BAD_STATE mean?" — those are programming-class questions and live in doca-programming-guide/SKILL.md, which owns the universal ## modify (first-app derivation), the canonical ## build pattern, the universal lifecycle, and the cross-library DOCA_ERROR_* taxonomy.doca-flow/SKILL.md). This skill stops at "the install is healthy and the env is ready"; it does not own program semantics.This is a thin loader. The body keeps only the orientation needed to pick the right next file. The substantive env material lives in two companion files:
CAPABILITIES.md — what the install / build / runtime environment surface looks like: install profiles (doca-all, doca-ofed, doca-networking), where the build flavors (release vs trace) live on disk and how to point LD_LIBRARY_PATH at them, the env-side version-detection rules, the env-class error taxonomy (pkg-config not finding doca-flow, hugepages not reserved, representors not visible), what a healthy install looks like under observation, and the safety constraints on environment changes (hugepages global, mlxconfig reset, eswitch mode change).TASKS.md — env workflows: recognize (the front-door system-shape detect + dev-Q decision tree that routes deployment-shaped questions to either container or bare-metal), configure (env prep), test (install health snapshot), debug (env-class layered diagnosis), and no-install (the I have no install yet procedure with the NGC container as Path 0). Three other anchors (build, modify, run) route to doca-programming-guide/SKILL.md, which owns those verbs after the env / program split.This skill assumes nothing about whether DOCA is installed — the ## no-install workflow exists precisely for the fresh laptop case.
TASKS.md ## no-install Stage 1 vs Stage 2 roadmap
before any greeting, recommendation, or command. The opening must
explicitly name Stage 1 — container learning and Stage 2 —
hardware runtime; do not open by jumping directly to Docker or
installation. Then route Stage 1/container learning to
## no-install Path 0 and Stage 2/hardware runtime to
## no-install Paths A/C, followed by ## recognize before
selecting container versus bare-metal. Ask one clarifying question
when the stage is unknown; if it remains unknown or no reply is
possible, stop and present both paths rather than guessing. Include the authoritative
DOCA SDK documentation as the
next-reading link; an NGC catalog link alone is not documentation.configure, test, debug, and
no-install — see TASKS.md. The build, modify,
and run anchors route to
doca-programming-guide/SKILL.md.doca-programming-guide, then the matching library skill.Both companion files cross-link to each other and to doca-public-knowledge-map whenever the right answer is "look it up in the public docs or the installed package layout" rather than "setup-specific guidance".
doca-container-deployment/SKILL.md — the container deployment runtime (kubelet standalone + YAML pod-spec drop) for any DOCA service container on BlueField. ## recognize here routes to this skill when the developer's workload + system shape land on the container path.doca-bare-metal-deployment/SKILL.md — the bare-metal hardware deployment runtime (host x86 OR BlueField Arm direct launch — systemd / tmux / direct invocation, hardware-resource binding, per-tenant isolation, restart discipline) for a DOCA-linked binary. ## recognize here routes to this skill when the developer's workload + system shape land on the bare-metal path.doca-public-knowledge-map/SKILL.md — public DOCA documentation routing and the on-disk layout of an installed DOCA package. This skill defers all "where is X documented", "where on disk is Y", and "how do I check the installed version" questions to the knowledge-map.doca-programming-guide/SKILL.md — general DOCA programming patterns once the env is healthy: the canonical pkg-config doca-<library> build pattern, the universal derive a custom first app from a sample workflow (with C / C++ + non-C tracks), the universal lifecycle, and the cross-library DOCA_ERROR_* taxonomy. Anything beyond "is the install healthy and the env ready" lives there.doca-flow/SKILL.md — DOCA Flow on BlueField. Builds on this skill for env preparation and on doca-programming-guide for the universal first-app derivation, then layers Flow-specific overrides on top.BENCHMARK.md (opens in a new tab)CAPABILITIES.md (opens in a new tab)TASKS.md (opens in a new tab)evals/evals.json (opens in a new tab)references/command-appendix.md (opens in a new tab)references/hardware-binding.md (opens in a new tab)references/no-install.md (opens in a new tab)references/recognize.md (opens in a new tab)skill-card.md (opens in a new tab)skill.oms.sig (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
doca, bluefield, environment-setup, build-env, container-deployment, bare-metal
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