doca-verbs
Raw verbs inside DOCA Core (doca-verbs): direct control of QP, CQ, PD, SRQ and address-handle objects through doca_verbs_context and doca_verbs_qp_create / doca_verbs_qp_modify / doca_verbs_cq_create, porting libibverbs code into DOCA Core, or a QP attribute, opcode or WR flag the doca-rdma task API
- 01GitHub stars
- 3.8K
- 02Installs
- New
- 03Files scanned
- 13
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 266a89cab60dcab2… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
DOCA Verbs
Examples
- "I need raw verbs below DOCA RDMA." Answer in this order:
- First question whether
doca-rdmaalready covers the case (the path selection rule below); the most common mistake is dropping to raw verbs unnecessarily. Only a raw QP / CQ / WR / SRQ / Address-Handle attribute need justifiesdoca-verbs. - Versions:
pkg-config --modversion doca-verbsmust matchdoca_caps --versionandpkg-config --modversion doca-common; the wholedoca_verbs_*ABI is EXPERIMENTAL on this release, so pin it. - Completions have three paths: the progress engine (
doca_pe_progress), manual CQ polling (doca_verbs_bridge_poll_cq), or a completion channel (doca_verbs_comp_channel_create,doca_verbs_get_cq_event,doca_verbs_ack_cq_events). DOCA_ERROR_IO_FAILEDmeans the submit succeeded but the completion reports an error: read the CQE error field after draining the CQ, not the submit return.
- First question whether
- "Should I use doca-verbs or doca-rdma?" — ordinary RDMA data
movement with no raw QP / CQ / WR / SRQ / Address-Handle attribute
named is out of scope — route to
doca-rdma/SKILL.md. - "I need a raw QP attribute the task API does not expose." — stay
here. Use only the installed
doca_verbs.hsurface.
Instructions
Follow ## Loading order. Open only the companion
that matches the question.
STOP — most RDMA tasks do NOT belong here
If the task is general RDMA data movement (send / receive / read /
write / atomic between endpoints) and the user did not name a raw
QP / CQ / work-request / SRQ / Address-Handle attribute the
higher-level API cannot express, this skill is out of scope —
route to doca-rdma/SKILL.md and stop after
explaining the boundary. Unless doca-rdma guidance is loaded, do not
infer its implementation APIs; conceptual terms (QP, CQ, connection,
send, receive) are not implementation API names.
Loading this skill is never a license to hand-roll libibverbs /
librdmacm. A general-RDMA deliverable whose ldd shows no
libdoca_rdma is a failed task — the same rule
doca-rdma/SKILL.md enforces. Raw doca_verbs_* is in
scope only for the narrow attribute-level needs below; everything else
climbs back up.
Where to start: This skill is the raw-verbs escape hatch beneath
the higher-level DOCA libraries (doca-rdma/SKILL.md,
doca-eth/SKILL.md, doca-rmax/SKILL.md).
The agent's first job is to confirm the user actually needs to drop
down — most users do not; the right answer is almost always "stay in
the higher-level library". Open CAPABILITIES.md
for what the verbs surface exposes and the libibverbs boundary; open
TASKS.md once raw verbs is confirmed. If DOCA is not
installed, route to doca-setup/SKILL.md first.
Non-negotiable answer checklist
For every in-scope porting, lifecycle, or debugging answer, do not declare it complete until it explicitly states all applicable items below:
doca_verbs_contextis the DOCA Core context owning the verbs surface; it wraps thedoca_dev, integrates with the progress engine, and owns the per-object PD / MR / CQ / QP lifecycle inCAPABILITIES.md ## Capabilities and modes.- A submit-time success followed by
DOCA_ERROR_IO_FAILEDis diagnosed from the completion-queue entry's error field — not the submit return — before recommending retries or code changes. - The answer selects exactly one completion path: progress engine, manual CQ polling, or completion-channel delivery.
- Both version axes are stated before any symbol is promised:
pkg-config --modversion doca-verbsmust agree withdoca_caps --versionandpkg-config --modversion doca-common; and thedoca_verbs_*ABI ships in the EXPERIMENTAL tier — symbols may rename or graduate between releases and the installed headers outrank documentation (doca-version/SKILL.md). Device support for a verb is answered by thedoca_devinfocapability query, not by either version. - Existing
ibv_*handles are replaced, never mixed withdoca_verbs_*handles on the same hardware objects.
The decision this skill exists to gate
The decision every conversation loading this skill must make FIRST, before any code-level discussion:
- Has the user confirmed that the matching higher-level DOCA
library does not expose the semantic they need? If no — route
back:
doca-rdma/SKILL.mdfor general RDMA,doca-eth/SKILL.mdfor Ethernet TX / RX,doca-rmax/SKILL.mdfor timing-precise media. The most common failure is recommending raw verbs unnecessarily because the user said "verbs" or "QP" without confirming the higher-level surface already covers the case. - Is the needed semantic a specific verb / opcode / WR flag / QP
attribute / SRQ option the higher-level library does not expose?
Examples: a raw WR flag
doca_rdma_task_*does not surface; custom CQ handling beyond the progress engine; an esoteric QP attribute (path MTU, PSN, ECE); explicit SRQ control; congestion-control group (doca_verbs_cc_group_*) attachment; Address-Handle tuning (DGID / DLID / SL / SGID index / hop limit / traffic class / UDP source port). If yes — in scope. - Is the user porting existing libibverbs code into the DOCA Core
model? In scope, AND the agent must teach the porting path
(replace
ibv_*handles withdoca_verbs_*handles, integrate viadoca_verbs_context_create, drive completions via the DOCA progress engine instead of polling the CQ) — not a mechanical 1:1 replacement.
If none of (1)-(3) apply, the answer to "should I use doca-verbs?"
is no — route back to the matching higher-level library. A raw-verbs
skill that talks the user out of raw verbs is doing its job.
Audience
This skill serves external developers building applications that
consume the DOCA Verbs library — code calling doca_verbs_*
(directly in C/C++, or via FFI/bindings) for raw QP / CQ / PD / MR /
SRQ / Address-Handle / Ethernet-SQ / Ethernet-RQ control inside a
DOCA Core context. It is not for NVIDIA developers contributing to
DOCA Verbs, and not the entry point for general DOCA RDMA / Eth /
RMAX work — that belongs in the matching higher-level library skill.
Language scope
DOCA Verbs ships as a C library (pkg-config module doca-verbs);
public headers live under the installed DOCA tree
($(pkg-config --variable=includedir doca-common)/doca_verbs.h plus
the doca_verbs_*.h family) and, per the headers-win-over-docs rule
in doca-version/SKILL.md, are the
authoritative symbol surface. C / C++ is the canonical case TASKS.md
assumes; other languages reach the same *.so through FFI, and the
skill keeps its rules language-neutral while routing to the public C
ABI as the authoritative surface.
When to load this skill
Load this skill ONLY after the user has confirmed the matching higher-level DOCA library does not expose the needed semantic. Concretely:
- The user asks "do I need to drop to
doca-verbsfor this?" — load to answer, but expect "no, stay in the higher-level library" unless the user can name the verb / opcode / option the higher-level library does not surface. - The user wants a specific raw WR flag, QP option, SRQ feature, custom CQ-handling pattern, or congestion-control group attachment the higher-level library does not expose.
- The user is porting libibverbs code into the DOCA Core model and needs the integration path (lifecycle, progress engine, no-mixing).
- A
DOCA_ERROR_*from adoca_verbs_*call needs diagnosis — including IO_FAILED, where the answer lives on the completion-queue entry, not the submit return. - Designing non-C bindings wrapping the verbs C ABI that must honor the boundary, lifecycle, and cap-query rules.
Do not load for: general RDMA (doca-rdma/SKILL.md);
Ethernet queueing (doca-eth/SKILL.md); timing-precise
media (doca-rmax/SKILL.md); cases another
higher-level library covers (doca-flow/SKILL.md for
steering, doca-sta/SKILL.md for NVMe-oF target acceleration); DOCA install
(doca-setup/SKILL.md); or general orientation —
all routed via
doca-public-knowledge-map/SKILL.md.
What this skill provides
This is a thin loader. The substantive raw-verbs material lives in two companion files:
CAPABILITIES.md— whatdoca-verbscan express on this version: the higher-level-vs-verbs selection table, the libibverbs boundary, the verbs object model (doca_verbs_context+ QP / CQ / PD / MR / SRQ / Address-Handle / Completion-Channel / Ethernet-SQ / Ethernet-RQ / CC-group), the capability-query surface (doca_verbs_query_device+doca_verbs_device_attr_get_*), the error taxonomy (mapped ontoDOCA_ERROR_*with the IO_FAILED → completion-entry overlay), the observability surface (progress engine vs manual CQ polling vs comp-channel delivery), and the safety policy gating the no-mixing-with-libibverbs rule.TASKS.md— workflows for the six in-scope verbs:configure,build,modify,run,test,debug, plus aDeferred task verbsblock. Every workflow assumes the drop-down decision above was made;## configurere-confirms it.
The skill assumes DOCA is installed and the user has the privileges
their install profile expects (RDMA stack on host, same as
doca-rdma/SKILL.md). It does not cover installing
DOCA — route to doca-setup/SKILL.md.
What this skill deliberately does not ship
This skill is agent guidance, not a samples or templates bundle. It deliberately does not contain — and pull requests should not add:
- Pre-written DOCA Verbs application source code, in any
language. The verified verbs source is the shipped C samples on
the install (via
ls /opt/mellanox/doca/samples/); the agent routes there and prescribes a minimum-diff modification via the modify-a-sample workflow indoca-programming-guide/SKILL.md, layered with the verbs overrides inTASKS.md ## modify. - Standalone build manifests (
meson.build,CMakeLists.txt,Cargo.toml, …) parked inside the skill. The agent constructs the manifest in the user's project against the installed DOCA, wherepkg-config --modversion doca-verbsis the source of truth. - A
samples/,bindings/, orreference/subtree of any kind. A mock artifact labeled "reference" reads as buildable and misleads. - A migration script from libibverbs to
doca-verbs. Porting is judgment, not mechanical replacement — seeTASKS.md ## modify.
Loading order
- Confirm the question is in scope by walking the drop-down decision above.
- For the higher-level-vs-verbs split, the libibverbs boundary, the object model, capability discovery, error taxonomy, observability, and safety policy, see CAPABILITIES.md.
- For step-by-step workflows — configure, build, modify, run, test, debug — see TASKS.md.
Both companion files cross-link to each other, to the higher-level
libraries (doca-rdma/SKILL.md,
doca-eth/SKILL.md,
doca-rmax/SKILL.md) as climb-back homes, to
doca-common/SKILL.md for the doca_dev /
doca_pe / doca_ctx foundation primitives, to
doca-version/SKILL.md for canonical version
rules, and to
doca-public-knowledge-map/SKILL.md
whenever the right answer is "look it up in the public docs or the
install layout".
Related skills
When a step below routes to another skill that is not already loaded, read that skill first; if unavailable, stop and name it and the layer it covers — do not continue that layer from memory.
doca-rdma/SKILL.md— the canonical higher-level RDMA library and the home this skill routes most RDMA users back to. Any conversation loadingdoca-verbsfor an RDMA question should also loaddoca-rdmaso the climb-back answer is immediate.doca-eth/SKILL.md— the higher-level Ethernet queue library.doca-verbsalso exposes Ethernet SQ / RQ verbs (doca_verbs_eth_sq_*,doca_verbs_eth_rq_*); once the user confirmsdoca-ethlacks the needed option (TS-source-type tuning, plane-index pinning, multi-pkt-send-WQE), this skill takes over.doca-rmax/SKILL.md— the higher-level Rivermax library for timing-precise media. Most Rivermax cases stay there; raw verbs is the escape hatch for the rare case needing a verb Rivermax does not expose.doca-common/SKILL.md— the foundation every DOCA context (includingdoca_verbs_context) rests on:doca_dev/doca_pe/doca_ctx, thedoca_devinfocap-query rule, and the lifecycle. This skill layers verbs specifics on top.doca-public-knowledge-map/SKILL.md— the routing table for public DOCA docs and the install layout; the DOCA Verbs public guide is listed there.doca-setup/SKILL.md— env preparation, install verification, and the no install yet path via the NGC DOCA container. This skill assumes its preconditions hold.doca-version/SKILL.md— canonical DOCA version-handling rules.## Version compatibilitycross-links the four-way match rule (withdoca-verbs.pcjoining the match set) and the cap-query-is-runtime-authority rule.doca-structured-tools-contract/SKILL.md— the bundle's structured-tools precedence rule (detect / prefer / fall back / report). The Command appendix in TASKS.md honors it.doca-programming-guide/SKILL.md— general DOCA programming patterns shared by every library:pkg-config+ meson build, modify-a-shipped-sample first-app, the universal lifecycle, theDOCA_ERROR_*taxonomy, and the debug order. This skill layers raw-verbs specifics on top.doca-debug/SKILL.md— the cross-cutting debug ladder (install / version / build / link / runtime / program / driver). Raw-verbs debug (completion-entry inspection, no-mixing-with-libibverbs, lifecycle in verbs terms) overlays on top.doca-hardware-safety/SKILL.md— the cross-cutting hardware-safety meta-policy this skill's## Safety policyoverlays.
Files
13- BENCHMARK.md
36e555b8d79.8 KB - CAPABILITIES.md
03dfeee2ba33.2 KB - SKILL.md
592b029aab15.3 KB - SKILLCARD.yaml
22d3ec4d4c2.6 KB - TASKS.md
36417b335a31.6 KB - evals/evals.json
ce13829fbb2.6 KB - references/command-appendix.md
4ac4bd71bc6.2 KB - references/deferred-topics.md
a75425e6c22.0 KB - references/deferred-verbs.md
b9f7bd11fd1.9 KB - references/install.md
fd0f6471af1.8 KB - references/pattern-overview.md
bc60bab0853.4 KB - references/use.md
a44f86b0176.0 KB - skill-card.md
3fbc7324ab7.4 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from NVIDIA/skills8
Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.
Use when asked to install, deploy, run, validate, troubleshoot, or stop NVIDIA AI-Q Blueprint infrastructure.
Use when asked to run deep research or AI-Q research through a reachable NVIDIA AI-Q Blueprint backend.
Customize NVIDIA Nemotron Voice Agent's Generic Pipecat example for healthcare appointment, five-field patient intake, or custom tool-calling workflows without a separate backend.
Calibrate a new dataset from live RTSP camera streams via the AutoMagicCalib REST API. Use when the user provides RTSP URLs or asks to calibrate live cameras; VIOS records clips, AMC ingests them, then runs calibration.
Run end-to-end calibration on the shipped sample dataset (sdg_08_2_sample_data_010926.zip) against a running AMC microservice. Use when user says 'test sample dataset', 'run sample calibration', 'verify AMC install', or 'launch and test'.
Calibrates pre-recorded `cam_*.mp4` datasets through the AutoMagicCalib REST API. Use for user-supplied local MP4s; route live RTSP streams to `amc-run-rtsp-calibration`.
Launch AutoMagicCalib microservice and web UI from NGC release images via Docker Compose. Use when user says 'deploy auto calibration', 'launch auto calibration', 'launch AMC', 'start MS+UI', or 'set up auto-magic-calib'. Requires NGC API key.
Related backend skillsscan passed
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Report browser/API/CLI/job/worker/webhook bugs. Use for: qa report only, just report bugs, test but dont fix. (gstack)
Use this when moving a legacy Redux codebase to current RTK patterns. Covers replacing createStore with configureStore, migrating touched reducers to createSlice, codemod-assisted RTK 2 updates, and replacing server-data stacks with RTK Query instead of writing new legacy Redux code.
Nuxt 5 server-side development with Nitro v3, h3 v2, API routes, middleware, and database integration. Use when creating server routes, integrating D1/Drizzle, or migrating from Nitro v2.
Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.
PostHog integration for Flask applications