doca-structured-tools-contract — Claude Code skill for DOCA
The doca-structured-tools-contract skill guides an agent through gathering DOCA environment and device details with a structured helper or manual commands. It also covers pre-commit validation and host-versus-DPU checks.
no license ★ 4,106 updated 2026-10-23
npx skills add NVIDIA/skills --skill doca-structured-tools-contract -a claude-codeWhat doca-structured-tools-contract does
The skill defines a decision path for DOCA questions. The agent checks whether the relevant structured helper is available and validates its JSON against the selected schema. If that path fails, it follows the matching manual command sequence and tells the user which route it used.
Its scope covers versions, devices, library capabilities, specification checks before commit, and host/DPU state comparisons. Running probes and fallback commands requires access to the target host; validation steps need a working DOCA installation at /opt/mellanox/doca. This skill does not cover library implementation or a fresh DOCA setup.
What it helps with
- Gather DOCA version and environment details
- List devices and their capabilities
- Check a specification before commit
- Compare DOCA state on host and DPU
Example prompts for the agent
- Summarize my DOCA installation, including its version, devices, and available capabilities.
- Check whether this specification passes validation before I commit it.
- Compare the DOCA state on the host with the DPU.
How to install doca-structured-tools-contract
1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill doca-structured-tools-contract -a claude-code2Manually: put the files in place
~/.claude/skills/doca-structured-tools-contract/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/doca-structured-tools-contract/
1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill doca-structured-tools-contract -a codex2Manually: put the files in place
.agents/skills/doca-structured-tools-contract/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill doca-structured-tools-contract -a cursor2Manually: put the files in place
.cursor/skills/doca-structured-tools-contract/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install NVIDIA/skills skills/doca-structured-tools-contract2Manually: put the files in place
.github/skills/doca-structured-tools-contract/SKILL.md1Skills CLI (Vercel)
npx skills add NVIDIA/skills --skill doca-structured-tools-contract -a gemini-cli2Platform CLI
gemini skills install https://github.com/NVIDIA/skills --path skills/doca-structured-tools-contractManually: put the files in place
.devin/skills/doca-structured-tools-contract/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about doca-structured-tools-contract
How do I install doca-structured-tools-contract in Claude Code?
Run npx skills add NVIDIA/skills --skill doca-structured-tools-contract -a claude-code. The skill file is at ~/.claude/skills/doca-structured-tools-contract/SKILL.md.
What does doca-structured-tools-contract do?
It guides an agent through collecting DOCA details: check for a structured helper, use the matching manual command sequence if needed, and report which route produced the answer.
Does this skill require DOCA to be installed?
You can read the skill without a DOCA installation. Its validation steps need a working installation at /opt/mellanox/doca.