/nvidia-doca-plugin:doca-debugfrom NVIDIA DOCA
Guides debugging of DOCA SDK issues across install, version, build, link, runtime, program, and driver layers. Handles compile/link errors, runtime errors, verbosity controls, and container-debug constraints.
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.
An undefined reference is a Link-layer symptom, not proof of a
missing library or an application-code defect. Before recommending edits,
request these observations from the same host/container and shell that
ran the failing build:
pkg-config --modversion doca-common and the selected library's version;
for Flow, pkg-config --modversion doca-flow.pkg-config --libs doca-<library>; for Flow, pkg-config --libs doca-flow.pkg-config reports flags, not the command that failed.If these outputs are missing, request them and pause before prescribing a
repair. Listing a check is not evidence that it passed. Do not append a
speculative fix, guessed -L/-l flags, predicted library filenames, or a
replacement compiler command to that capture request. Once evidence is
available, compare the original invocation with the complete observed
pkg-config output through the existing build system; do not hand-assemble
DOCA's version-dependent split libraries. Use ldd only if a relevant binary
was actually produced; a declaration in a header does not prove that a linked
shared object exports the symbol.
Follow doca-version/TASKS.md#configure for version coherence,
doca-programming-guide/TASKS.md#debug for the
environment-before-program investigation, and
doca-public-knowledge-map/SKILL.md for verified
install locations and public documentation. A bundle skill name is not an SDK
page slug: never construct a documentation URL from it. If no matching guide
has been verified, use the DOCA SDK index
and say the specific page is not yet confirmed.
Then follow TASKS.md for the staged investigation; later
phases are conditional on observed results, not instructions to guess a fix.
First reply when only a linker error is available (Flow example). Use this capture-only shape, adapting the library to the actual question:
This is a link-time failure. An undefined-symbol message does not tell us the installed version or which build setting is wrong. From the same host/container and shell as the failing build, please paste these outputs:
pkg-config --modversion doca-common pkg-config --modversion doca-flow pkg-config --libs doca-flowAlso include the actual failing linker invocation, full error output and whether the build ran on the host or in a container. Do not change flags, packages or source yet. Phases 3–5 are pending this evidence; no repair has been selected. Once the observations are available, we can compare them, choose one justified correction and rerun the original build. The link check is successful only when that build exits cleanly without the missing symbols; it does not establish runtime or hardware correctness.
End that first reply at the evidence request and pending decision. Do not add an example repair command after it, even with a disclaimer to verify it later.
Where to start: This skill is the canonical layered-ladder
reference both doca-setup/SKILL.md
and doca-programming-guide/SKILL.md
escalate to. If the symptom does not fit cleanly in env-class or
program-class, start at the tasks companion — the
full layered ladder lives there.
The CLASSES of debug questions this skill is built to answer, each with one worked example.
ld says undefined reference to doca_flow_init — which layer?" Answered by the canonical layered
ladder in the tasks companion (layer 4 = Link).doca_caps returned nothing for RDMA
— does that mean unsupported?" Answered by the
tool-vs-capability decision tree in
the capabilities companion
doca-caps/SKILL.md.hugepages is empty inside the
container; is that a real problem or a container thing?"
Answered by the container-specific debug constraints in
the capabilities companion
doca-public-knowledge-map/SKILL.md.If the symptom is purely env-class, route to
doca-setup/SKILL.md; if purely
program-class, route to
doca-programming-guide/SKILL.md.
This skill is the cross-cutting layer both call into.
Load this skill when the user is debugging anything DOCA-related — a build that won't compile, a link step that can't resolve a doca_* symbol, a runtime call that returns DOCA_ERROR_*, a packet that does not appear on the wire, a service that won't start, or a tool that returns no useful output. Concretely:
valgrind output, or a core dump from a DOCA program and wants to know where to look first.Do not load this skill for:
DOCA_ERROR_BAD_STATE?", "what error codes does DOCA return?" — that is the cross-library error taxonomy, owned by doca-programming-guide/SKILL.md. This skill consumes that taxonomy; it does not redefine it.pkg-config cannot find doca-flow", "hugepages are not mounted", "my representor isn't visible" — those are env-class symptoms, owned by doca-setup/SKILL.md. This skill is the canonical pointer that env-class debug ladder redirects to once the symptom escalates beyond install / version / build prerequisites.doca-flow/SKILL.md). This skill provides the cross-cutting debug ladder; library skills layer their library-specific debug surface on top of it.This is a thin loader. The body keeps only the orientation needed to pick the right next file. The substantive debug material lives in two companion files:
doca_caps since DOCA 2.6.0), the cross-library error taxonomy (cross-link only — owned by doca-programming-guide), the observability primitives DOCA emits (stderr logs, --sdk-log-level, the doca-<lib>-trace build flavor, library counters), and the safety constraints on debug actions (read-only first, don't mutate install tree mid-investigation).## configure (set up env for high-verbosity debug), ## test (capture a reproducible state), ## debug (the canonical layered ladder, the universal entry point that every library ## debug redirects to), and the Where to ask for help routing (NVIDIA DOCA Developer Forum). Three other anchors (build, modify, run) route to doca-programming-guide/SKILL.md, which owns those verbs after the env / program split.build, modify, and run anchors in the tasks companion are stubs that route to doca-programming-guide/SKILL.md; their substance lives there.doca-setup/SKILL.md. If program-class, hand off to doca-programming-guide/SKILL.md. If library-internal, hand off to the matching library skill's ## debug (e.g. doca-flow/SKILL.md).The two companion files cross-link to each other and to doca-public-knowledge-map/SKILL.md whenever the right answer is "look it up in the public docs or the installed package layout" rather than "debug-specific guidance".
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-setup/SKILL.md — env-class debug (install / build prerequisites): pkg-config failures, missing hugepages, representors not visible, header-vs-runtime version mismatches. doca-setup ## debug is the env-class layered ladder; this skill is the cross-cutting debug ladder both env and program ladders escalate to.doca-programming-guide/SKILL.md — program-class debug (lifecycle order, DOCA_ERROR_* interpretation, doca_error_get_descr() use, the validate-before-commit rule). doca-programming-guide ## debug is the program-class layered ladder; this skill picks up where it leaves off when the symptom involves cross-library tooling (gdb, valgrind, container introspection, core dumps).doca-flow/SKILL.md, doca-dms/SKILL.md, doca-caps/SKILL.md) — library-specific debug overlays. Each library's ## debug builds on the cross-cutting ladder defined here, then adds its own counters, traces, and inspector tools.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
doca, nvidia-bluefield, sdk-debug, build-debug, runtime-debug
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