Command Palette

Search for a command to run...

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

doca-common

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

Use this skill whenever the user is doing hands-on DOCA programming on a BlueField DPU or ConnectX NIC and needs the foundation primitives every per-library…

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

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

DOCA Common

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

  • Any app-foundation answer: version first, progress loop, drain last.
    1. Start: pkg-config --modversion doca-common, four-way matched with doca_caps --version and cat /opt/mellanox/doca/applications/VERSION.
    2. Run: doca_pe_create (one per worker thread), doca_<library>_create, doca_pe_connect_ctx BEFORE doca_ctx_start, then a loop that calls doca_pe_progress; nothing completes without it.
    3. End: drain before doca_ctx_stop and any destroy, with doca_ctx_flush_tasks or doca_pe_progress until doca_ctx_get_num_inflight_tasks is 0; then stop, destroy the context, the buffer inventory, the mmap and the PE, in reverse order.
  • "Tasks submit but nothing completes." — start at the progress engine and ctx lifecycle, not a per-library rewrite.
  • "DOCA_ERROR_BAD_STATE from doca_ctx_start." — walk the Common lifecycle order before blaming Flow or RDMA.
  • "Set up and tear down the runtime foundation for my app." Anchor first on pkg-config --modversion doca-common, four-way matched with doca_caps --version and cat /opt/mellanox/doca/applications/VERSION. On shutdown drain first: doca_ctx_flush_tasks or loop doca_pe_progress until doca_ctx_get_num_inflight_tasks is 0, then doca_ctx_stop, the library destroy, doca_buf_inventory_stop / destroy, doca_mmap_stop / destroy, doca_pe_destroy, and close the device.

Instructions

Follow Loading order below. Open the tasks companion for configure / build / run. Open the capabilities companion for ctx / buf / pe / log. Do not open every companion file.

Where to start: This skill is the foundation every DOCA app loads first — before doca-flow, doca-rdma, doca-eth, doca-comch, or any other higher-level library. Every doca_<library>_* context is built on top of doca_ctx, every device handle is a doca_dev discovered through doca_devinfo, every zero-copy buffer is a doca_buf from a doca_buf_inventory over a doca_mmap, every task completion drains through a doca_pe, and every log line emits through doca_log. Open the capabilities companion when the question is what does Common express on this install; open the tasks companion when the user wants to do something (configure / build / modify / run / test / debug). If the user has not installed DOCA yet, route to doca-setup/SKILL.md first. If the user is already past the foundation and asking a library-specific question (e.g. "how do I program a Flow pipe"), load the matching per-library skill alongside this one — they cross-link back here for the shared primitives.

Example questions this skill answers well

The CLASSES of doca-common 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.

  • "What is the doca-common foundation I have to set up BEFORE I open a doca-flow / doca-rdma / doca-eth / … context?" — worked example: "I'm starting a brand-new DOCA Flow program on BlueField-3; what's the doca-common skeleton I need before I open the Flow port?". Answered by the universal foundation walk in

    configure +

    ctx +

    dev +

    progress engine.

  • "How do I discover a device and gate on its capabilities before trusting the public docs?" — worked example: "I want to use doca_eth_txq but the docs hint at a feature only on certain firmware bands". Answered by the capability-discovery rule (doca_devinfo_create_list → doca_*_cap_* against the active doca_devinfo is the runtime authority) in

    dev +

    use.

  • "What's the doca_buf / doca_mmap / doca_buf_inventory wiring for zero-copy I/O, and what's the lifecycle order?" — worked example: "I want to register a user-space buffer with my device, carve it into N data-plane buffers, and reference-count them across multiple DOCA libraries". Answered by the zero-copy buffer model in

    buf +

    the buffer-lifecycle walk in

    configure +

    use.

  • "How does the progress engine work and where do I have to call it?" — worked example: "my doca_rdma task submits cleanly but nothing completes — what loop am I missing?". Answered by the PE surface in

    progress engine

    • the run-loop pattern in ## run.
  • "Why don't my DOCA log lines appear at the level I expect, and what's the difference between --sdk-log-level and the app-side setter?" — worked example: *"I set --sdk-log-level 60 (DEBUG), my
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

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

FAQ

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

Use this skill whenever the user is doing hands-on DOCA programming on a BlueField DPU or ConnectX NIC and needs the foundation primitives every per-library context rests on — walking the doca_ctx lifecycle, discovering doca_dev / doca_devinfo and gating on doca_*_cap_* before trusting a feature, wiring doca_mmap / doca_buf_inventory / doca_buf for zero-copy I/O across libraries, driving doca_pe for completions, or DOCA Log's two-tier (--sdk-log-level vs app-side) model. Trigger even when the user does not say "DOCA Common" — typical implicit phrasings include "my tasks submit but nothing completes", "DOCA_ERROR_BAD_STATE from doca_ctx_start", "--sdk-log-level does nothing for my DOCA_LOG_DBG lines", "share a buf between doca_dma and doca_rdma", or "crashes far from the offending line". Refuse and route elsewhere for per-library questions in isolation (load doca-flow / doca-rdma / doca-eth alongside), installing DOCA (doca-setup), or doc lookup (doca-public-knowledge-map).

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

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

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

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

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

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