Agent skill · AI & Agents

doca-structured-tools-contract

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 ad

NVIDIAgithub.com/NVIDIAGitHub ↗
claude-codecodexApache-2.0
Install
npx skills add NVIDIA/skills --skill doca-structured-tools-contract --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 6
SKILL.md size: 19 KB
Bundled scripts: none
Requires: > No DOCA install required to read this skill (it is an overlay loaded against any DOCA artifact skill); the validation…
Path: skills/doca-structured-tools-contract/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,789
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Describes a contract for using a structured tool to consolidate DOCA environment, devices, capabilities, validation, and host vs DPU state information. It enables an agent to prefer the structured tool when available and valid, or fall back to a defined manual command chain, always reporting which path was taken.

How it works

  • The agent first detects if a structured tool is installed by running the probe command named in the schema (e.g., command -v doca-env).
  • If the probe succeeds and the structured tool's JSON validates against the schema, the agent uses the structured JSON as the authoritative output.
  • If the probe fails or the JSON is invalid, the agent executes the manual fallback chain in the order listed (e.g., pkg-config --modversion doca-common; cat /opt/mellanox/doca/applications/VERSION; doca_caps --version; etc.), combining outputs to synthesize the answer.
  • The agent must report which path was taken at the start of the answer, signaling either the structured path or the manual fallback path with reason.
  • The agent should surface gaps if certain commands are unavailable and route to doca-setup when needed.

When to use it

Load this skill when another skill requests the structured tool path or a single-shot answer consolidating information from multiple commands (env, version, devices, capabilities, validate, host vs DPU state). It is triggered by phrases indicating a desire for an all-in-one view or when a workflow says "prefer the structured tool".

What it can touch

This contract references shell probes and a set of manual commands to gather data. It specifies the exact commands to run and the JSON schema outputs, but does not itself modify system state beyond detection and data collection. If the structured tool exists, its JSON is used; otherwise the manual command chain is executed.

Caveats

  • The manual fallback requires running on a host with the listed commands; if a command is unavailable, a gap is surfaced and routing to doca-setup may occur.
  • The structured output must strictly conform to the defined JSON schema; extra fields are advisory and not exposed as contract output.
  • Probes exist to detect presence; failed probes do not imply absence of the tool, only that the structured path is not authoritative in that instance.
From the SKILL.md

# DOCA structured-tools contract **Where to start:** Reach for this skill whenever a workflow in another skill says *"prefer the structured tool per `doca-structured-tools-contract`"*. Read [`## The agent behavior contract`](#the-agent-behavior-contract) first; then drill into the matching schema in [`## Schemas`](#schemas). If the host has the structured tool, prefer its output. If it does not, f

More from skills
All skills →
About this skill
What does the doca-structured-tools-contract skill do?

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 ad

How do I install it?

Run `npx skills add NVIDIA/skills --skill doca-structured-tools-contract --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From NVIDIA/skills, a repository with 2,789 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going