/infrahub:infrahub-collecting-diagnosticsfrom infrahub
Collects a redacted diagnostic bundle (logs, config, version, state) from a local Infrahub instance for OpsMill expert hand-off. Guides installation of the infrahub-collect binary and walks through problem capture, environment detection, and bundle creation.
Ships in infrahub. 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.
When an Infrahub user reports a problem, an expert
(OpsMill support, or a senior engineer) needs a
consistent set of artifacts to triage it: logs,
config, version info, and environment state. This
skill runs infrahub-collect,
OpsMill's dedicated diagnostic-bundle tool, to
produce that artifact set.
The skill is a guide around the binary, not a
hand-rolled collector. It does not diagnose root
cause, does not file a GitHub issue (use
infrahub-reporting-issues for that), and does not
mutate Infrahub state — infrahub-collect only reads.
Trigger this skill when the user says things like:
Do not trigger when:
infrahub-reporting-issues)infrahub-analyzing-data)infrahub-auditing-repo)Follow these steps in order. Two user-gates; everything else is automatic.
Ask the user to describe the problem in their own
words if they haven't already. Don't probe yet —
listen for product names, version numbers, error
messages, workflow context. This informs which
create flags to add in step 4.
Check whether the binary is already available:
infrahub-collect version
If it's missing, install it for the user's OS/arch
and confirm again with infrahub-collect version
(or infrahub-collect --help). See
rules/install-and-verify.md
for the exact install command, sudo, and airgap
notes.
infrahub-collect environment detect
If detection is ambiguous (multiple Compose projects,
non-default K8s namespace), run
infrahub-collect environment list and disambiguate
with --project=<name> or --k8s-namespace=<ns>.
No Infrahub API token is needed — the tool reuses
existing Docker/kubectl access. Only --include-traces
in step 4 uses one. See
rules/deployment-detection.md.
infrahub-collect create
Add flags that match the symptom from step 1 —
--benchmark for performance/OOM issues,
--include-queries for slow/failing DB operations,
--include-backup when support asks for a
reproducer. See
rules/create-flags.md for
the full symptom-to-flag mapping.
When the user reports that Infrahub is slow, read rules/create-traces.md before you write the command: it asks the user whether to add traces, for which window and from which minimum duration, and keeps the API token out of the conversation.
Partial bundles are expected on degraded
deployments — create still exits 0 and records any
collection failures in the manifest. Send the bundle
as-is; do not try to patch gaps by hand.
infrahub-collect only masks well-known secret key
names (password/secret/token/key →
********). It does not scrub log or query
contents, or secrets stored under other key names.
Walk the user through scanning bundle/logs/ and
bundle/server/ (and bundle/traces/ when the
bundle has traces) for hostnames, IPs, customer data,
or secrets under non-standard keys, and get explicit
confirmation before sharing. See
rules/review-before-sharing.md.
Once the user confirms the bundle is safe to share,
send it via the support channel (Discord, Slack,
email). If the user also wants to file a public
GitHub issue, hand off to infrahub-reporting-issues
— see
rules/cross-link-reporting-issues.md.
If the user wants a local first-pass analysis of the
bundle (tracebacks, failures, known-issue matching)
before or instead of the expert hand-off, continue
with infrahub-analyzing-diagnostics — this skill
only collects; the analyzer owns triage.
| Prefix | Category | Description |
|---|---|---|
| workflow | Workflow | User-gate semantics, step ordering |
| install | Install | Verify/install the infrahub-collect binary |
| deployment | Detection | Defer to environment detect/list |
| create | Create flags | Symptom-to-flag mapping for create |
| collection | Collection | Read-only tool, no mutations |
| bundle | Bundle | On-disk bundle/ layout (reference) |
| review | Review | Key-name masking gap; user review before sharing |
| cross-link | Cross-linking | Hand-off to infrahub-reporting-issues |
See rules/_sections.md for the full index.
docs.infrahub.app
on a genuine gap (e.g. deleting nodes)docker compose down, no kubectl delete.
infrahub-collect is read-only by design; don't
add commands that aren't.docker compose logs / kubectl logs scripting — infrahub-collect create already
covers every service, replica, and log rotation.infrahub-reporting-issues. Cross-link, don't
duplicate.examples.md (opens in a new tab)reference.md (opens in a new tab)rules/_sections.md (opens in a new tab)rules/_template.md (opens in a new tab)rules/bundle-layout.md (opens in a new tab)rules/collection-read-only.md (opens in a new tab)rules/create-flags.md (opens in a new tab)rules/create-traces.md (opens in a new tab)rules/cross-link-reporting-issues.md (opens in a new tab)rules/deployment-detection.md (opens in a new tab)rules/install-and-verify.md (opens in a new tab)rules/review-before-sharing.md (opens in a new tab)rules/workflow-user-gates.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
infrahub, diagnostics, opsmill, support-bundle, troubleshooting
infrahub@opsmill is listed by opsmill/claude-marketplace — review the source before installing
npx claudepluginhub opsmill/claude-marketplace --plugin infrahub18 skills in this plugin
/infrahub-analyzing-dataAnalyzes and correlates live Infrahub data via the MCP server — answers operational questions, detects drift, and investigates impact. TRIGGER when: querying infrastructure data, checking compliance, investigating change impact, producing ad-hoc reports. DO NOT TRIGGER when: writing automated checks, building transforms, designing schemas, populating data files, planning an Infrahub version upgrade (use infrahub-planning-upgrades). ALWAYS pass the user's question verbatim as args — this skill runs in a forked context and cannot see the parent conversation. Invoking without args will fail./infrahub-analyzing-diagnosticsAnalyze an already-collected infrahub-collect diagnostic bundle — traceback and failure triage across service logs, incident correlation, and known-issue matching against opsmill/infrahub GitHub issues. TRIGGER when: the user says they collected a diagnostic bundle, gives you a bundle path, or pastes bundle contents — and asks what's wrong, wants the logs or tracebacks analyzed, asks "what does this bundle say", wants errors triaged/correlated, or asks whether a crash is a known issue. DO NOT TRIGGER when: no bundle exists yet — collect one first (use infrahub-collecting-diagnostics), filing the issue itself (use infrahub-reporting-issues), or querying live data (use infrahub-analyzing-data)./infrahub-auditing-repoAudits an Infrahub repository against best practices and rules, producing a structured compliance report. TRIGGER when: reviewing repo for compliance, onboarding to existing project, pre-deployment validation, catching issues. DO NOT TRIGGER when: creating schemas, writing checks/generators, querying live data, populating objects, planning an Infrahub version upgrade (use infrahub-planning-upgrades). ALWAYS pass the user's request verbatim as args, with any scope, path, or focus they named. This skill runs in a forked context and cannot see the parent conversation./infrahub-commonShared references and cross-cutting rules for all Infrahub skills — GraphQL syntax, .infrahub.yml format, and common patterns. DO NOT TRIGGER directly — loaded automatically by other Infrahub skills when they need shared references./infrahub-converting-netbox-device-typesConverts NetBox device-type and module-type definitions (the netbox-community devicetype-library format, also published via the NetBox Data Exchange / NDX) into Infrahub object templates as Infrahub object YAML, using a bundled Python converter driven by a schema mapping profile. TRIGGER when: importing NetBox device types or module types, exporting device types from a running NetBox instance, building object templates from vendor device models, converting line cards / PSUs / transceivers from NetBox module types into Template* objects, re-running a conversion after changing the mapping profile, debugging a wrong or failed conversion. DO NOT TRIGGER when: importing CSV/TSV data (use infrahub-importing-data), authoring schemas from scratch (use infrahub-managing-schemas), writing ordinary object data files (use infrahub-managing-objects), or setting up continuous two-way replication with a live NetBox (that is infrahub-sync, a separate product; a one-off export of device types is in scope here)./infrahub-designing-modelsDesigns an Infrahub data model before any schema YAML exists. TRIGGER when: someone has an idea or a problem but no agreed model, asks "what should I model" or "help me design my data model", wants diagrams, spreadsheets or exports turned into a design, has a scope too big for one feature and needs it split, or is updating, extending or fixing an existing design brief. DO NOT TRIGGER when: a design or model sketch already exists and the user wants schema YAML (use infrahub-managing-schemas), wants to load data (use infrahub-managing-objects or infrahub-importing-data), or wants to learn concepts (use infrahub-teaching-concepts).Other plugins' skills for the same job