All skills
nvidia avatar

/doca-structured-tools-contract

@a5736e4
by NVIDIA Corporationnvidia/skills3.5k stars
424

Use this skill whenever another DOCA skill says "prefer the structured tool per doca-structured-tools-contract", or when the user wants a one-shot answer that consolidates info multiple manual commands would produce — DOCA env / version / devices / capabilities / validate / host vs DPU state. Trigger even when the user does not explicitly mention "structured tool" or "doca-env --json" — typical implicit phrasings include "is there one command that tells me everything about my DOCA install", "what version is X capability available since", "every PF/VF/SF visible on this BlueField with PCIe address", "will this pipe pass validate before commit", "diff host vs DPU state", or "why does the agent give a one-line answer on host A and five commands on host B". Refuse and route elsewhere for general DOCA orientation, specific library API how-to, or install-from-scratch guidance — those belong to the per-library skill, doca-public-knowledge-map, or doca-setup.

Use this Skill: https://skilld.dev/gh/nvidia/skills/doca-structured-tools-contract

This session only. Nothing lands on disk.

referencesexamples.md

≈565 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Structured-tools routing examples

These are question shapes this skill routes. The shape is load-bearing; each worked example is one instance.

Environment inventory

Question: "Is there a single command that tells me everything about my DOCA install?"

Example: "Version, devices, installed libraries, sample paths, drivers, and hugepages — all at once."

Use the doca-env --json schema and its ordered manual fallback chain in SKILL.md ## Schemas.

Capability version

Question: "How do I look up which DOCA version a capability requires without fetching a doc page?"

Example: "Is symmetric RSS hash mode in DOCA 2.6.0?"

Use the version-matrix.json schema. Its manual fallback fetches the matching per-library page through doca-public-knowledge-map.

Hardware topology

Question: "What does my hardware actually look like to DOCA — every PCIe function and representor?"

Example: "Show every PF, VF, and SF visible on this BlueField, including PCIe address and link state."

Use the collect-host-state / collect-dpu-state schema. The manual fallback is devlink dev show, lspci | grep Mellanox, and ip -j link.

Validate before commit

Question: "How do I know my Flow, RDMA, or DMS specification is valid before I program hardware?"

Example: "Will this Flow pipe pass validation before commit?"

Use the validate-before-commit schema. The fallback uses the library's documented validation surface. For DOCA Flow, doca_flow_pipe_create is not a read-only probe and the public header does not provide doca_flow_pipe_validate; never invent one.

Different behavior across hosts

Question: "My agent behaves differently on two hosts — is one missing the helpers?"

Example: "Host A produced one line while host B walked five manual commands."

Use the report-which-path rule in SKILL.md ## The agent behavior contract. If the answer did not identify the selected structured or fallback path, ask it to do so.

Questions about writing code, debugging crashes, or setting up an environment route through the matching skill in AGENTS.md.

Source: SKILL.md on GitHub

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill establishes a contract for AI agents to interact with NVIDIA DOCA environment tools. It provides a standardized approach for system inspection, including environment discovery, capability checks, and hardware topology mapping. The analysis confirms the skill uses legitimate system diagnostic commands and incorporates explicit safety guidelines to prevent unauthorized privilege escalation.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at a5736e4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
metadata
{
  "kind": "knowledge"
}
Other metadata
compatibility
No DOCA install required to read this skill (it is an overlay loaded against any DOCA artifact skill); the validation steps within DO require a live DOCA install at /opt/mellanox/doca.

README badge

README badge for nvidia/skills/doca-structured-tools-contract