doca-hardware-safety
БесплатноБез исполняемых скриптовНе проверенUse this skill whenever the agent is about to recommend or apply a change that touches DPU / NIC hardware state on a live system — mlxconfig…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
DOCA hardware safety
Host checks. Commands here that inspect the user's DOCA host (listing or reading
/opt/mellanox/doca, release files such as/etc/mlnx-releaseor/etc/nvidia/bf-release,/dev/mst) or reach the BlueField (RShim, SSH, BMC) are for that host. Run them yourself only if the user confirms you are on it; otherwise answer from this skill, give the commands for the user to run, and treat values you can't see as unknown.
Examples
- "Enable SR-IOV and reboot." — this is in scope. Inventory first, require out-of-band reachability, a maintenance window, replica rehearsal, then apply.
- A pre-flight source is missing (no
bfver, no/etc/mlnx-release). Record it as unknown, finish the read-only capture (flint -d <bdf> q,mlxconfig -d <bdf> q, link state), then stop before the write and say which item is still missing. - "Flip BlueField mode over SSH." — refuse if the host has no out-of-band path. A link-breaking change without BMC / RShim / console is a hard stop.
Quick answers (answer from this file)
- Thermal shutdown or hardware safety limits. Treat it as a hardware
event: capture read-only evidence first (BMC/Redfish chassis thermal
sensors and event log, the out-of-band console,
dmesg | grep -i mlx5, andmget_temp -d <mst device>from MFT). Never disable or raise thermal protection; airflow and cooling are facility fixes. Any remediation that is a firmware update, anmlxconfigwrite or a cold power cycle goes through the contract below; with no root cause or no rollback, refuse and escalate to NVIDIA support. - Read-only inventory or version questions do not need this skill: name
doca-version(four-source chain) ordoca-caps(doca_caps --list-devs) and answer there. - Name sibling skills (
doca-version,doca-setup,doca-structured-tools-contract) when they apply; do not open them to answer a safety question.
Instructions
Follow Loading order below. Open the tasks companion before applying a hardware-touching change. Open the capabilities companion for the in-scope change class and refuse-and-escalate rules. Do not open every companion file.
Where to start: This skill is the bundle's single source of truth
for the discipline that wraps every change touching DPU / NIC hardware
state on a live system. Open
the tasks companion when the operator is about to apply a
hardware-touching change and needs the change-application discipline
(pre-flight inventory → out-of-band path → window → apply → verify
→ rollback). Open the capabilities companion when the
question is what does hardware-safety even cover (the class of
changes in scope, the failure modes the policy prevents, the
observability surface that gates a change, and the meta-policy that
every per-artifact ## Safety policy overlays).
Every per-artifact skill (services, libraries, tools) in the bundle
that recommends a hardware-touching action overlays this meta-policy
with artifact-specific safety. The per-artifact ## Safety policy
anchors do NOT redefine the cross-cutting discipline — they layer the
artifact's own concerns on top of it. This skill is the layer they all
build on.
Mandatory answer contract for an mlxconfig-class production change
An answer about applying an mlxconfig-class write on production MUST
state every gate below explicitly; links to companion files do not
substitute for walking the gates:
- Name the change class before any apply step and state that its firmware-stored value commits at the next cold power cycle, not a warm reboot.
- Require a pre-flight capture of PCIe topology, link state, firmware
level, BFB level, the current
mlxconfigconfiguration, and the host kernel/modules/environment. These reads are all read-only: if one source is unavailable (for example nobfveror/etc/mlnx-releaseon an x86 host), record that item as unknown and still capture the rest, includingmlxconfig -d <bdf> q. A missing item blocks the write, never the read-only capture. - Treat the change as potentially link-breaking and refuse to issue
it until a deployment-specific OOB console class is named and
proven reachable. Never describe an
mlxconfig-class production write as inherently non-link-breaking. - Require a time-boxed maintenance window with stakeholders, rollback decision point, rollback plan, and verification gate documented before application.
- Rehearse both the forward change and the rollback on a non-production replica that matches production's hardware class (BlueField generation, running firmware level, host kernel, and the representors / VFs / SFs the change touches) before production. When the user asks whether the change is small enough to skip the replica, the answer is no, with the reason: the replica is the last chance to find out that the rollback does not work before production depends on it, so a ch
Установить doca-hardware-safety в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл doca-hardware-safety?
Use this skill whenever the agent is about to recommend or apply a change that touches DPU / NIC hardware state on a live system — mlxconfig firmware-parameter write, NIC firmware burn, BFB reflash, NIC ↔ DPU mode flip, SR-IOV or device-emulation slot enable, kernel boot-parameter change (IOMMU, hugepages, VFIO), PCIe rebind / rescan / link-state flip, BlueField cold reboot, or remediation of a BlueField thermal shutdown. Wrap the change in pre-flight inventory, OOB reachability, a maintenance window, replica rehearsal, and rollback. Trigger on implicit phrasing: "flip BlueField mode over SSH", "enable SR-IOV and reboot", "burned firmware but mlxconfig shows old value", "BlueField thermal shutdown". Not for read-only inventory or version queries (doca-version, doca-caps). Refuse orientation (doca-public-knowledge-map), install or env debug (doca-setup), and program-side debug (doca-debug, doca-programming-guide).
Как установить скилл doca-hardware-safety?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doca-hardware-safety запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic