Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

doca-upgrade

БесплатноБез исполняемых скриптовНе проверен

Changing DOCA versions safely: upgrading or downgrading the host DOCA packages, refreshing the BlueField BFB, bumping the NGC DOCA container tag, or rolling…

NVIDIAот NVIDIA★ 4 269 звёзд на GitHub

Об этом скилле

DOCA upgrade

Host checks. Commands here that inspect the user's DOCA host (listing or reading /opt/mellanox/doca, release files such as /etc/mlnx-release or /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

  • "Should I move to the next DOCA release?" — detect what is installed, report the gap, then STOP and ask. Never auto-upgrade.
  • "apt upgrade drifted my DOCA packages." — this is recovery, not a silent repair. Detect, report, ask, then guide.
  • "An upgrade broke my app — get me back to known-good." Roll back to the state the operator captured, never to a version recalled from memory: pin or reinstall the captured prior DOCA package set (or redeploy the prior base image / container tag), re-align the BFB if it changed, then re-verify the four-way match against the captured baseline.

Quick answers (answer from this file)

  • Not changing versions (a runtime error on the current, pinned install)? This skill does not apply: name doca-debug and stop.

These two answers are complete here; open TASKS.md only for a guided upgrade after the user confirms. Run only the read-only detection commands yourself. Package commands (sudo dpkg, apt, apt-get) need root and change the system: give them to the user to run and stop; in an agent shell sudo waits for a password and the session stalls.

  • "Can I just apt upgrade to the next DOCA?" Never upgrade automatically. Detect the installed release with the doca-version four-source chain (pkg-config --modversion doca-common, cat /opt/mellanox/doca/applications/VERSION, doca_caps --version, and the BFB version on BlueField), report the gap to the target release, then STOP and ask for explicit confirmation. BFB, firmware or reboot steps follow doca-hardware-safety.
  • "The upgrade aborted half-way and dpkg reports an interrupted transaction." Recover the package database first: after the user explicitly confirms (both commands change system package state), the user runs sudo dpkg --configure -a, then sudo apt-get -f install (Debian/Ubuntu). Do not re-run the upgrade as the first action; re-detect the release with doca-version before deciding the next step.

Instructions

Follow Loading order below. Open the tasks companion for detect → report → ASK → guided upgrade. Open the capabilities companion for the upgrade-mode taxonomy and refuse-auto-upgrade rule. Do not open every companion file.

Where to start: This skill is the bundle's single source of truth for the discipline that wraps a DOCA upgrade or downgrade. Open the tasks companion when the user wants to do something with an upgrade (detect the gap, ask for confirmation, walk the guided upgrade, verify it, or diagnose a failed one); open the capabilities companion when the question is what does an upgrade even cover (the host apt-upgrade vs BFB reflash vs container-tag bump vs downgrade/rollback modes, the never-auto rule, the confirmation gate, the sunset-awareness concern, the error taxonomy, and the upgrade-specific safety overlay).

How to use this skill. Read this file, then search the companion file for the ## <name> heading the question needs and read that whole section. Answer completely from it, quoting only its symbols and commands. Do not browse docs; use the entry points in doca-public-knowledge-map. Give environment checks as commands for the user's DOCA host. For out-of-scope requests, name the skill that owns them and stop.

For a planned move, the single most important rule this skill exists to enforce is detect → report → ASK → only-then guided upgrade. Never upgrade automatically. The skill detects the installed DOCA env and what newer release is available, reports the gap clearly, then STOPS and asks the user for explicit confirmation. Only on an explicit "yes" does it walk a guided upgrade. A failed or partial move instead enters the recovery ladder without presenting a new target move. In both paths every hardware / firmware / reboot step is delegated to doca-hardware-safety/SKILL.md, never redefined here. Version detection itself is owned by doca-version/SKILL.md; this skill routes there and does not restate the detection chain.

Example questions this skill answers well

The CLASSES of upgrade questions this skill is built to answer, each with one worked example. The agent should treat the class as the load-bearing piece — the worked example is a single instance.

  • "Is there a newer DOCA than what I have, and how far behind am I?" — worked example: "pkg-config --modversion doca-common says <installed X.Y.Z>; what's current and what does moving cost me?". Answered by the detect-and-report-the-gap workflow in

Полный SKILL.md на GitHub

Установить doca-upgrade в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

BENCHMARK.mdCAPABILITIES.mdTASKS.mdevals/evals.jsonskill-card.mdskill.oms.sig

FAQ

Что делает скилл doca-upgrade?

Changing DOCA versions safely: upgrading or downgrading the host DOCA packages, refreshing the BlueField BFB, bumping the NGC DOCA container tag, or rolling back, with the discipline detect -> report -> ASK -> only then a guided upgrade. Trigger on "is there a newer DOCA", "I want the newest DOCA features, can I just apt upgrade in place", "should I move to the next release", "the upgrade stopped midway and dpkg is in a broken state", "my component is being deprecated, what now", or "roll me back", even without the word upgrade. Detect what is installed, find the newer release, report the gap, then STOP and ask for explicit confirmation; never upgrade automatically. Do not use it for a runtime error on an unchanged install (doca-debug). Version detection alone belongs to doca-version, first-time install to doca-setup, any hardware / firmware / reboot step to doca-hardware-safety, and public-docs or sunset routing to doca-public-knowledge-map.

Как установить скилл doca-upgrade?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл doca-upgrade запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить doca-upgrade с