agentleFS
NVIDIAKnown publisherNVIDIA/AI-Factory-Operations-Agent/helm/mosaic-stack/files/openclaw-seed/skills/hardware-agent/SKILL.md

hardware-agent

Skill37 starsChanged 10 days agoApache-2.0View on GitHub

Triage hardware faults on NVIDIA GPU compute nodes through the Hardware Agent. Starting a triage is read-only log collection and hardware_analyze_dut is available in View mode; never require Edit or Auto. Before asking to start any fresh NVDebug collection, you MUST say: 'A fresh NVDebug collection can take 5-30 minutes. Do you want me to start it?' Stop and wait for the next user response. An ordinary affirmative such as yes, let's go, do it, or proceed is sufficient; start immediately without demanding formal confirmation or asking twice. Use recent Hardware Agent triages for quick answers when possible. The backend owns DUT lookup and credentials; do not prompt for BMC credentials. Not for ML training, CI, or unrelated application errors.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every response that offers, proposes, or asks about starting a fresh collection must include that duration.

    line 54
  2. Very specific:

    After the mandatory duration disclosure, the user's next ordinary affirmative response is sufficient, including yes, yeah, I want to do the …

    line 60
  3. Distinctive:

    If no relevant triage exists, use the exact mandatory duration disclosure and stop until the user answers.

    line 72
  4. Very specific:

    After the user confirms a fresh collection, use only hardware_analyze_dut for the turn.

    line 88
  5. Very specific:

    Use hardware_triage_status and hardware_triage_report only for a triage returned by hardware_triage_list or an id supplied by the user.

    line 96
  6. Very specific:

    If the incoming turn includes a [Runtime Context] block with ai_factory_operations_agent_chat_session_key="...", treat that block as …

    line 120
  7. Very specific:

    If the conversation already contains user-provided or tool-provided hardware evidence, include that evidence in event_text.

    line 125
  8. Very specific:

    If the user asks about an existing Hardware Agent triage id, do not submit a new triage.

    line 131
  9. Distinctive:

    Never include BMC passwords in the payload.

    line 177
  10. Distinctive:

    Check status later when requested:

    line 179

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 -->

Hardware Agent

Delegate hardware failure analysis to the Hardware Agent service. The backend handles:

  • DUT and credential lookup
  • Targeted nvdebug collection
  • LLM diagnosis via the Hardware Agent backend's configured inference endpoint
  • Typed recommended_actions

Expected Latency

Submission is immediate. A fresh NVDebug collection and diagnosis commonly takes 5–30 minutes.

  1. POST returns 202 Accepted with a triage_id.
  2. Backend runs Base Command Manager (BCM) lookup, nvdebug collection, and diagnosis.
  3. The tool returns the triage_id immediately. Do not wait or poll in the same turn.

Mandatory duration disclosure

This is a hard requirement. Before asking for confirmation or invoking a fresh NVDebug collection, send this sentence to the user:

A fresh NVDebug collection can take 5–30 minutes. Do you want me to start it?

Every response that offers, proposes, or asks about starting a fresh collection must include that duration. Do not invoke hardware_analyze_dut in the same turn as the disclosure. Wait for the user's next response.

Collection confirmation

After the mandatory duration disclosure, the user's next ordinary affirmative response is sufficient, including yes, yeah, I want to do the collection, let's go for dgx-07, let's do it, or proceed. Start the collection immediately. Do not demand a formal confirmation phrase, repeat the question, or expose the tool schema. Interpret the user's response in conversation and invoke the tool without encoding their wording into its arguments.

For a quick response, call hardware_triage_list first. If a completed triage matches the DUT and fault and its summary contains a root cause, answer from that summary and include the triage id. Use hardware_triage_status for an active triage and hardware_triage_report only when the user asks for detailed evidence or the summary is insufficient. These tools do not start a collection. If no relevant triage exists, use the exact mandatory duration disclosure and stop until the user answers.

Invocation

Starting a Hardware Agent triage only collects logs and diagnostic information. It is a read-only operation permitted in View mode. Call hardware_analyze_dut after confirmation even when the runtime access mode is View. Do not ask the user to switch to Edit or Auto, and do not infer an Edit requirement from the backend's access to the target.

Preferred path: use the OpenClaw hardware_analyze_dut tool. It submits to /api/v1/analyze-dut, returns the queued triage id, and emits a live NVDebug subagent card in the UI. The Hardware Agent backend owns NVDebug collection, collection validation, retry policy, RCA generation, and completion notification.

After the user confirms a fresh collection, use only hardware_analyze_dut for the turn. Do not call Base Command Manager, Kubernetes, Prometheus, Grafana, DCGM, observability, or other tools before or after the NVDebug RCA unless the user asks for those follow-up checks in a separate message.

For a fresh RCA, call hardware_analyze_dut once and return the queued triage id. Do not call bcm_*, bcm_execute_cmsh, or other Base Command Manager tools for prerequisite lookup: the Hardware Agent backend performs the DUT lookup and NVDebug orchestration. Use hardware_triage_status and hardware_triage_report only for a triage returned by hardware_triage_list or an id supplied by the user.

A specific fault signature improves targeting but is not required. When the user requests a general collection for a node, omit event_text; the tool will submit a general hardware-health event. Do not ask for a fault signature unless the user indicated that one exists but did not include it.

For DGX/HGX B200 hosts, pass dut.baseboard: "Blackwell-HGX-8-GPU" unless the user or prior tool output gives a more specific supported baseboard. This avoids an unclassified full collection.

Short operator prompts should still route here. First search recent triages. If none match, ask for confirmation before collecting. Normalize the DUT hostname when the cluster naming pattern makes it clear. Do not ask for BMC credentials; the Hardware Agent resolves the target.

Pass ai_factory_operations_agent_chat_session_key when the current chat session key was explicitly supplied so the Hardware Agent backend can stream NVDebug collection activity to the matching Terminal tab. If none was supplied, still call the tool; the plugin will infer the current session when possible. For chat-initiated triages, the Hardware Agent completion notification is the user-facing result. Do not hold the chat turn open while collection runs.

If the incoming turn includes a [Runtime Context] block with ai_factory_operations_agent_chat_session_key="...", treat that block as runtime metadata supplied by the UI. Pass the value as ai_factory_operations_agent_chat_session_key on hardware_analyze_dut, and do not quote or summarize the runtime block.

If the conversation already contains user-provided or tool-provided hardware evidence, include that evidence in event_text. Do not fetch additional context through Base Command Manager from this skill. The user-facing answer must be based on the Hardware Agent status/report returned by the backend; do not synthesize a root cause that is not present in the Hardware Agent result.

If the user asks about an existing Hardware Agent triage id, do not submit a new triage. Call hardware_triage_status for that id, then call hardware_triage_report when the status is complete, and summarize the existing report.

Tool payload shape:

{
  "dut": {
    "id": "dgx-01",
    "baseboard": "Blackwell-HGX-8-GPU"
  },
  "event_text": "NVRM: Xid (PCI:0000:c1:00): 149 NETIR_LINK_EVT",
  "ai_factory_operations_agent_chat_session_key": "agent:default:session-..."
}

Fallback path when OpenClaw tools are unavailable:

Submit triage:

curl -sSf -H "X-API-Key: $DIAGNOSTIC_AGENT_API_KEY" \
  -H "Content-Type: application/json" \
  -d "$PAYLOAD" \
  http://diagnostic-agent/api/v1/analyze-dut

Payload:

{
  "dut": {
    "id": "dgx-01",
    "baseboard": "Blackwell-HGX-8-GPU"
  },
  "event_text": "NVRM: Xid (PCI:0000:c1:00): 149 NETIR_LINK_EVT"
}
  • dut.id is the hostname as known to Base Command Manager.
  • dut.baseboard should use the nvdebug catalog baseboard name. For DGX/HGX B200 systems, use Blackwell-HGX-8-GPU rather than the informal shorthand HGX B200.
  • dut.bmc.ip is optional; normally omit it so the Hardware Agent resolves the target.
  • event_text is the dmesg/fault line or a free-text description.

Never include BMC passwords in the payload. The backend resolves them from Base Command Manager.

Check status later when requested:

TID="<uuid from submit response>"
curl -sS -H "X-API-Key: $DIAGNOSTIC_AGENT_API_KEY" \
  http://diagnostic-agent/api/v1/triage/$TID

Fetch full report:

curl -sS -H "X-API-Key: $DIAGNOSTIC_AGENT_API_KEY" \
  http://diagnostic-agent/api/v1/triage/$TID/report

Error handling

  • 429 Too Many Requests: retry with backoff.
  • 502 Bad Gateway: pod may be rolling; retry after 30 seconds.
  • status=failed: surface the error to the user verbatim.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.