56 results available
Sign in
Skills directory

doca-version

nvidia

·

Last changed
Hardened

This skill has been hardened by Chainguard

Last changed

This version passed the hardening gate. Hardening applied 30 targeted changes and preserved all other text. Classified findings before hardening: 7. Classified findings closed: 1. Classified findings remaining: 6. Unclassified scanner findings remaining: 0. Review findings closed: 15. Review findings remaining: 1.


Open before hardening

1

Medium

6

Low
Open after hardening

1

Medium

5

Low

Expand
File
Group
Subtype
Severity
Status
BENCHMARK.md

Sensitive Data & Secret Exposure

Agent snooping

Medium
Open
SKILL.md

Malicious Code & Command Execution

—

Low
Open
SKILL.md

Supply Chain & Install-Time Trust

Install-time download and execute

Low
Open
CAPABILITIES.md

Prompt Injection

Indirect prompt injection

Low
Open
CAPABILITIES.md

Supply Chain & Install-Time Trust

Install-time download and execute

Low
Open
TASKS.md

Excessive Agency & Rogue Autonomy

—

Low
Closed
CAPABILITIES.md

Malicious Code & Command Execution

—

Low
Open

7 findings


SKILL.md

DOCA version

Examples

  • "What DOCA version do I actually have installed?" — run the four-source detection chain and require a four-way match.
  • "The program built but does nothing on the wire." — treat mixed-install drift as a version problem before rewriting application code.

Instructions

Follow Loading order below. Open TASKS.md for detect / validate / diagnose, and CAPABILITIES.md for the four-way match and NGC tag rules. Do not open every companion file.

Where to start: This skill is the bundle's reference for DOCA version handling. Open TASKS.md if the user wants to do something with the version (detect / validate / diagnose mismatch); open CAPABILITIES.md when the question is what does version handling cover (the four-way match, the detection chain, NGC semantics, the per-library overlay pattern). Other skills in the bundle that touch version are recommended to rely on this skill rather than restating its rules.

Example questions this skill answers well

The CLASSES of version-handling questions this skill is built to answer, each with one worked example. The agent should treat the class as the load-bearing piece — the worked example is a single instance.

  • "What DOCA version do I actually have installed?" — worked example: "the docs say 3.3 but I'm not sure what's on this host". Answered by the canonical detection chain in TASKS.md#configure + CAPABILITIES.md#capabilities-and-modes source-of-truth table.
  • "My program built but does nothing on the wire — is my install consistent?" — worked example: "pkg-config --modversion says 3.3.0; doca_caps --version says 3.2.0". Answered by the four-way match rule in the Version compatibility section of CAPABILITIES.md
    • the partial-install diagnosis in TASKS.md#debug.
  • "Is this DOCA capability / API / sample on the version I have?" — worked example: "is the symmetric-RSS hash mode in Flow 2.6.0". Answered by the capability-availability lookup procedure in TASKS.md#test (which uses the capability-availability table schema defined in doca-structured-tools-contract/SKILL.md#schemas with fallback to per-library docs via doca-public-knowledge-map/SKILL.md).
  • "Can I run my host package version X against BFB version Y?" — worked example: "host is 3.5.0 GA, BlueField BFB is 3.2.3 LTS". Answered by the routing to the DOCA Compatibility Policy documented in the Version compatibility section of CAPABILITIES.md.
  • "I'm inside the NGC DOCA container — what does the version match look like?" — worked example: "do I still need to check pkg-config / applications/VERSION / doca_caps separately?". Answered by the NGC container rule in the Version compatibility section of CAPABILITIES.md
    • the container path in TASKS.md#configure.
  • "How do I write a per-library version-compatibility section for a new skill?" — worked example: "adding doca-comch to the bundle, what does its ## Version compatibility look like?". Answered by the per-library overlay pattern in CAPABILITIES.md#safety-policy
    • the worked-example template in TASKS.md#modify.
  • "My apt list shows DOCA 3.3.0109, but /etc/apt/sources.list.d/doca.list is pinned at latest / a different release — is the next apt install doca-* going to silently upgrade me?" — worked example: "I rolled back BFB to 3.1.0105 but my sources still point at the latest channel." Answered by the apt-source consistency precheck in the apt-source consistency section of TASKS.md, which enumerates the three legitimate shapes of a configured DOCA apt source (network URL, local file-repo, RHEL/OEL equivalent) and the do-not-install-until-the-source-matches rule that protects pinned installs from accidental drift.

When to load this skill

Load this skill whenever version handling is the load-bearing concern. The activation checklist below mirrors the optional bundle AGENTS.md#cross-cutting-overlay-activation-triggers guidance; when that file is absent, this checklist is the full activation guidance.

Agent activation checklist — load this skill when any cell below is true

Trigger classConcrete prompt-side signals (any one fires the overlay)

Direct version question

"what DOCA version do I have", "is X consistent", "is feature Y supported on version Z", "can I mix host package version A with BFB version B", "is my LTS still supported", "what does the version string mean"

Container tag question

any prompt that mentions a specific NGC container tag, or asks about latest, or asks how to pin a tag in a Dockerfile / pod spec / Compose file. The agent MUST also cite the "never invent a tag string from memory, never quote latest without confirming it" rule from CAPABILITIES.md#safety-policy.

Build vs runtime drift

any debug session where the symptom is "the program built fine but DOCA_ERROR_NOT_SUPPORTED at runtime", "undefined reference to a symbol the docs say exists", "my code does nothing on the wire", "counter didn't increment" — these are the canonical partial-install symptoms

Upgrade / downgrade plan

the user is planning to upgrade or downgrade DOCA on a host already running other DOCA workloads, or to refresh the BFB on a BlueField pair already attached to a host

Per-artifact cross-link

a per-artifact skill's ## Version compatibility section cross-links here for the rule body, OR the agent is about to author a new per-artifact skill and needs the overlay template

When any cell above fires, the agent MUST:

  1. Cite the four-source detection chain from CAPABILITIES.md#capabilities-and-modes explicitly in the answer — pkg-config --modversion doca-common → cat /opt/mellanox/doca/applications/VERSION → doca_caps --version → bfver plus cat /etc/mlnx-release (BlueField hosts). Do not paraphrase or summarize the chain; cite the commands by name. Do NOT substitute mlxprivhost or bfb-info for the BFB leg — those are common hallucinations and the bundle explicitly bans them in CAPABILITIES.md#capabilities-and-modes.
  2. State the four-way match rule verbatim if the prompt could possibly involve a mismatch (every deploy-shape question and every debug-shape question can; orientation-shape questions usually cannot). The rule, as quoted in the Version compatibility section of CAPABILITIES.md: "All of (a) pkg-config --modversion doca-common, (b) cat /opt/mellanox/doca/applications/VERSION, (c) doca_caps --version, and (on BlueField hosts) (d) the BFB-image version MUST match within a release. Any disagreement means the install is partial; the fix is to reinstall consistently, NOT a code change."
  3. Refuse to invent a version string. If the agent doesn't have the actual pkg-config --modversion output from the user's host, the answer must say so and route to the detection chain — not assert a version from training-data recall.

For an upgrade / downgrade plan or a BFB refresh, this skill produces plans and compatibility checks only. The user performs any change through doca-setup (or doca-hardware-safety for firmware) after a warning about disruption to running DOCA workloads and after explicit confirmation.

Universal version-coherence trigger

Whenever ANOTHER overlay (e.g. doca-setup/SKILL.md, doca-hardware-safety/SKILL.md, doca-container-deployment/SKILL.md, doca-bare-metal-deployment/SKILL.md) calls a ## test / ## configure / ## modify step that requires "the install is healthy" or "versions are consistent", it is recommended that the step cite this skill's four-source detection chain and four-way match rule rather than restating them. This routing is advisory guidance scoped to this skill.

Do not load this skill for general DOCA orientation, for install procedures (use doca-setup/SKILL.md), or for library-specific API questions (use the matching library skill).

What this skill provides

This is a thin loader. The body keeps only the orientation needed to pick the right next file. The substantive version-handling material lives in two companion files:

  • CAPABILITIES.md — the version-handling surface: the canonical source-of-truth table for version detection, the four-way match rule, NGC container semantics, the per-library overlay pattern, the routing to the DOCA Compatibility Policy, the error taxonomy for version-related failures (pkg-config missing, partial install, BFB/host mismatch, NGC mixing), the observability surface (which command to read for which version source), and the safety policy ("never invent a version, never quote latest").
  • TASKS.md — step-by-step workflows for the six in-scope version verbs: configure (detect on this host), build (build-time match), modify (update a version pin in a build manifest, or another file the user names, after the user sees and confirms the diff), run (runtime check), test (four-way validation + capability-availability lookup), debug (diagnose mismatch / partial install). Plus a Deferred task verbs block.

Workflows in CAPABILITIES.md and TASKS.md default to read-only inspection. Any file write needs the user's explicit confirmation of the shown diff first.

Loading order

  1. Read this skill first to confirm the user's question is in scope.
  2. For the version-detection sources, four-way match rule, NGC semantics, per-library overlay pattern, error taxonomy, observability, and safety policy, see CAPABILITIES.md.
  3. For step-by-step workflows — configure, build, modify, run, test, debug — see TASKS.md.
  • doca-structured-tools-contract/SKILL.md — the JSON schemas for optional helper tools. Prefer such a helper only when it is a reviewed, read-only tool the user or site has approved; otherwise use the four-source commands. This file is optional; when it is absent, use the per-library docs via doca-public-knowledge-map/SKILL.md and the four-source commands. This skill's ## test workflow uses the capability-availability table schema defined there; do not redefine the schema here.
  • doca-public-knowledge-map/SKILL.md — the routing table to public DOCA docs, including the Compatibility Policy. This skill cites the Compatibility Policy URL once via that map; it does not duplicate the routing.
  • doca-setup/SKILL.md — env-side install / verify / NGC container path. This skill assumes its preconditions are satisfied (i.e., something is installed somewhere; the version question is what was installed and is it consistent).
  • doca-programming-guide/SKILL.md — program-side guidance (quote the version observed, header-wins, capability-discovery rules). The program-side ## Version compatibility section there is now a 3-5 line redirect to this skill plus the program-side overlay (quote vs assume; never use agent-memory version).
  • doca-debug/SKILL.md — the cross-cutting debug ladder. Layer 2 (version mismatch) of that ladder is owned by this skill's ## debug workflow.

Install

Install with chainctl
chainctl skill install public/nvidia/doca-version:latest
Get started with chainctl
View source

Harden your own skills

Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.

Provenance

Upstream sourcehttps://github.com/nvidia/skills
Upstream commitf6f05709a2a1e16fe57a708fc680f2a83020e0b4
OCI reference

skills.chainreg.biz/public/github.com/nvidia/skills/doca-version:latest

License

Apache-2.0

Files

BENCHMARK.md

CAPABILITIES.md

HARDENING.md

SKILL.md

TASKS.md

evals/evals.json

skill-card.md

skill.oms.sig


The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.