/nvidia-doca-plugin:doca-fireflyfrom NVIDIA DOCA
Configures and debugs the DOCA Firefly PTP service on NVIDIA BlueField SmartNICs. Covers PTP role/profile/domain/interface selection, PHC wiring, host follower setup, and sync troubleshooting.
Ships in NVIDIA DOCA. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
Follow Loading order below. Open the tasks companion for configure / sync / debug. Open the capabilities companion for PTP axes. Do not open every companion file.
Subsystem inventory. DOCA Firefly is NOT just "a PTP daemon." The shipped
doca_firefly.yamlexposes six PTP-stack subsystems via environment variables, each with its own*_STATE,*_CONFIG_FILE, and (where relevant)*_INTERFACE/*_DEVICEknobs (the count is six because the PTP Monitor subsystem ships an internalphc2sysmonitor client that is distinct from the standalone PHC2SYS subsystem — both ship in the same container image):
- PTP (
PTP_STATE,PTP_INTERFACE,PTP_CONFIG_FILE) — theptp4ldaemon (or master, depending on profile) that drives the BlueField PHC.- PTP Monitor (
MONITOR_STATE,MONITOR_CONFIG_FILE,MONITOR_CLIENT_TYPE,MONITOR_CLIENT_PHC2SYS_INTERFACE,MONITOR_CLIENT_CONNECTION_TIMEOUT) — the monitor server + client surface; the internalphc2sysmonitor client (MONITOR_CLIENT_TYPE=phc2sys) is a real subsystem inside Firefly, not just a host-side concern.- PHC2SYS (
PHC2SYS_STATE,PHC2SYS_ARGS,PHC2SYS_CONFIG_FILE) — the container-internalphc2sysinstance (not host-only).- PPS (
PPS_STATE,PPS_DEVICE) — the Pulse-Per-Second output (with the additionalenable_while_runninganddo_nothingstates beyond plain enable/disable).- SyncE (
SYNCE_STATE,SYNCE_INTERFACE,SYNCE_CONFIG_FILE) — Synchronous Ethernet frequency distribution; orthogonal to PTP.- Firefly Servo (
SERVO_STATE,SERVO_CONFIG_FILE) — the proprietary Firefly servo loop (alternative to the upstream linuxptp servo).The valid
PROFILEvalues are exactlydefault/media/telco-l2/custom(perdoca_firefly.yamlcomments) — the agent must not invent additional values. Subsystems configured asdefined_by_profileare controlled by the activePROFILE.Configuration-override env vars follow the pattern
CONF_<SUBSYSTEM>_<section>_<key>(e.g.CONF_PTP_global_priority1,CONF_SYNCE_global_backend,CONF_MONITOR_global_telemetry_export); these are the documented surface for overriding individual config keys without shipping a full custom config file.Configuration hierarchy: the mounted Firefly config file is mandatory and owns the primary PTP axes (role, profile, domain, interface, and transport).
CONF_<SUBSYSTEM>_<section>_<key>variables are optional, documented per-key overrides of that file; they are not a second standalone configuration model.
Where to start: This skill is for operating the DOCA Firefly
Service container, not for linking against a library. Firefly is
the PTP / PHC2SYS / PPS / SyncE / Servo / Monitor stack that
drives and observes the BlueField PTP Hardware Clock (PHC); it is
not the host-side time follower, not the consumer workload, and
not a programming surface. If the user wants to deploy the
container, open the tasks companion and start at
## configure. If the question is what shape
of service is Firefly and what PTP roles / profiles does it speak,
start at the capabilities companion. If DOCA is not installed
on the BlueField yet, route to
doca-setup/SKILL.md first. If the user's
real question is “I have a Rivermax SMPTE workload and the docs say I
need PTP”, the right pairing is this skill plus
doca-rmax/SKILL.md — Firefly disciplines
the PHC; Rivermax reads the disciplined time.
The CLASSES of Firefly questions this skill is built to answer, each with one worked example. The class is the load-bearing piece; the worked example is one instance.
ptp4l /
Firefly says it's locked but chronyc tracking on the host shows
drift”. Answered by the END-TO-END time-sync discipline in
the capabilities companion
doca-rmax/SKILL.md and refuses to
collapse the two services into one.SLAVE / MASTER state — was it role, domain, profile, or
interface?” — worked example: “container green but the
ports-state output never advances past LISTENING”. Answered by
the four-axis-mismatch rule in
the capabilities companion
This skill serves external operators and platform teams who deploy
the DOCA Firefly Service container to provide PTP-grade time
synchronization to time-sensitive workloads on BlueField + the host
behind it. Concretely: people running the Firefly container on
BlueField Arm, choosing its PTP role / profile / domain / interface
from the public Firefly guide, wiring the host-side follower (chrony
with the PHC source, or ptp4l reading the PHC) so the host clock
tracks the BlueField PHC, and validating the end-to-end discipline
before scaling a Rivermax, 5G UPF, financial-trading, or distributed-
database workload that depends on it.
It is not for NVIDIA developers contributing to Firefly itself,
nor a programming guide for building on DOCA libraries (see
doca-programming-guide/SKILL.md). Firefly is a service: the
operator runs a container and configures PTP; there is no
libfirefly.so to link against.
Path selection up front. Use Firefly when sub-microsecond, PTP-grade time precision is required on BlueField AND the host (SMPTE ST 2110 broadcast workloads layered on Rivermax, 5G UPF time requirements, distributed systems that need PTP-grade time, anything where NTP / chrony jitter is not tight enough). Do not reach for Firefly when NTP / chrony already meets the workload's time-precision budget, when no PTP-aware switching / boundary-clock infrastructure exists in the path, or when pure software-side time precision is sufficient — in those cases the correct answer is to keep the host's existing chrony / NTP setup and route the agent away from Firefly, not to deploy it speculatively.
Load this skill when the user is doing hands-on Firefly deployment work on a BlueField where DOCA is already installed. Concretely:
PROFILE env var accepts EXACTLY default / media /
telco-l2 / custom per the shipped doca_firefly.yaml;
these map onto industry PTP profile names: default → IEEE 1588,
media → SMPTE 2059-2, telco-l2 → G.8275.1 only (G.8275.2
corresponds to the separate telco-l3 config, reached via
custom) — do NOT put the industry names directly into the env
var), domain number,
network interface — for the user's deployment.ptp4l /
phc2sys reading the PHC) — without this step the host clock
does NOT follow the Firefly-disciplined PHC, regardless of how
cleanly Firefly comes up.Do not load this skill for general DOCA orientation, install of
DOCA itself, library-API questions, or non-PTP time topics. For
those, route via
doca-public-knowledge-map/SKILL.md,
doca-setup/SKILL.md, or the matching
libs/<library> skill.
This is a thin loader. Substantive material lives in two companion files:
configure, build, modify, run, test, debug,
plus a Deferred task verbs block routing out-of-scope questions
and a Command appendix of recurring commands.The skill assumes a BlueField where DOCA is already installed and
the operator has the privileges the public Firefly Service Guide
expects to pull, run, and configure containers on BlueField Arm.
It does not cover installing DOCA — that path goes through
doca-setup/SKILL.md.
This skill is agent guidance, not a templates or sample-config bundle. To keep the boundary clean, it deliberately does not contain — and pull requests should not add:
doca-public-knowledge-map ## DOCA services (doca-public-knowledge-map/SKILL.md#doca-services);
Firefly's image tag is version-bound and changes between DOCA
releases. Inventing or memorizing a tag is the canonical
hallucination failure mode for a service skill.ptp4l / phc2sys config files.
Those are host-environment-specific and live on the host, not
inside the Firefly container. The skill names that the
host-side follower must be wired and what its source must be
(the BlueField PHC); the chrony / ptp4l config bodies belong
to the host operator and to upstream Linux PTP documentation.samples/, templates/, or reference/ subtree of any
kind. A mock or incomplete artifact in this skill's tree, even
one labeled “reference”, is misleading: operators will read it
as production-ready.doca-public-knowledge-map/SKILL.md
— the routing table to the public DOCA Firefly Service Guide and
the rest of the public DOCA documentation set. The Firefly URL is
listed under
## DOCA services (doca-public-knowledge-map/SKILL.md#doca-services).doca-setup/SKILL.md — env preparation and
install verification on the BlueField where the Firefly container
will run, including the I have no install yet path via the
public NGC DOCA container. This skill assumes its preconditions
are satisfied on BlueField Arm.doca-version/SKILL.md — canonical DOCA
version-handling rules. Firefly's container tag is version-bound;
this skill's ## Version compatibility cross-links the four-way
match rule and adds the container-tag-lags-host-package overlay.doca-structured-tools-contract/SKILL.md —
the bundle's structured-tools precedence rule (detect / prefer /
fall back / report). The Command appendix in the tasks companion
honors this contract.doca-programming-guide/SKILL.md
— general DOCA patterns. Firefly is service-shaped not library-
shaped, so the build / modify / first-app pattern there does not
apply directly, but the cross-library debug discipline (frontend-
before-backend, env-before-program) remains useful when Firefly
reports an error that originated in the container runtime or in
a DOCA library it called.doca-rmax/SKILL.md — the canonical
paired workload. SMPTE ST 2110 Rivermax streams depend on a
Firefly-disciplined PHC; Firefly is the time-source side and
Rivermax is the timing-precise data-plane side. The two skills
load together for any broadcast-style deployment, and they do
NOT collapse into one another — Firefly does not stream media;
Rivermax does not discipline the PHC.doca-dms/SKILL.md — sibling service skill. The
agent reading both skills should see the same service-skill shape
(container, BlueField Arm, deployment pattern, smoke-before-scale,
env preconditions, config schema) layered on top of a different
per-service domain (DMS = device management via gNMI / gNOI;
Firefly = time synchronization via PTP).doca-debug/SKILL.md — the cross-cutting
debug ladder (install / version / build / link / runtime /
program / driver). Firefly-specific debug (PTP not syncing,
host clock not following, jitter past spec) overlays on top of
that ladder.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nvidia/skills --plugin nvidia-doca-plugin53 skills in this plugin
/doca-aes-gcmUse this skill when the user is doing hands-on DOCA AES-GCM work on a BlueField DPU or ConnectX NIC — configuring `doca_aes_gcm_task_encrypt` / `_task_decrypt`, querying `doca_aes_gcm_cap_*` for per-key-type (only `DOCA_AES_GCM_KEY_128` / `_256` — AES-192 not supported) and per-task support, sizing plaintext against the max-buf cap, setting source / destination mmap permissions, validating with a NIST GCMVS or RFC 5288 vector, or debugging DOCA_ERROR_* including the security-critical tag-verification-failed outcome on decrypt. Trigger even when the user does not explicitly mention "DOCA AES-GCM" or "AEAD" — typical implicit phrasings: "decrypt completion IO_FAILED", "auth tag isn't verifying", "NOT_PERMITTED on my encrypt buffer", "is AES-192-GCM on this BlueField" (no), or "encrypted record came back tampered". Refuse and route elsewhere for non-GCM AES modes (CBC / CTR / XTS — CPU OpenSSL), key management (KMS / HSM / rotation), SHA (doca-sha), or general AEAD background.
/doca-argpUse this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring `doca_argp_init` → register params → `doca_argp_start` → `doca_argp_destroy` in order; picking a parameter type from the full public enum (`DOCA_ARGP_TYPE_STRING`, `_INT`, `_BOOLEAN`, `_DEVICE`, `_DEVICE_REP`, `_DOUBLE` — six values, not three); preserving the built-in DOCA flags (`-h` `-v` `-l` `--sdk-log-level` `--log-filter` `-j`/`--json`, NOT `--json-config`); `--device` is per-program; or debugging `DOCA_ERROR_BAD_STATE` / `INVALID_VALUE` / `NOT_SUPPORTED` / `IO_FAILED` from `doca_argp_*`. Trigger on implicit phrasings: "add a custom flag to a DOCA sample", "should I use getopt here", "BAD_STATE registering a new param", "my JSON config key is rejected", or "my sample's --json is ignored". Refuse and route elsewhere for variadic-flag / subcommand / shell-completion features, DOCA Core context, or DOCA Log internals.
Other plugins' skills for the same job