/infrahub:infrahub-analyzing-diagnosticsfrom infrahub
Analyzes Infrahub diagnostic bundles to triage tracebacks, correlate service-log incidents, and match crashes against known GitHub issues. Use after collecting a bundle.
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.
infrahub-collecting-diagnostics produces a bundle;
this skill is the next step — it reads that bundle
and turns raw logs into a triage report. It parses
bundle_information.json, sweeps every service's
logs for error signals (tracebacks, ERROR/CRITICAL
lines, panics, OOM kills, restart evidence),
correlates related errors into incidents, and
searches existing opsmill/infrahub GitHub issues
so the user learns whether their crash is already
known before anyone files anything.
The output is a findings report grounded in bundle evidence — not a fix. The skill is strictly read-only toward the deployment: it reads files from an already-collected bundle and runs GitHub searches; it never touches the running Infrahub instance and never applies remediation.
Trigger this skill when the user says things like:
Do not trigger when:
infrahub-collecting-diagnostics to collect one
first. Do not hand-roll log collection here.infrahub-reporting-issues)infrahub-analyzing-data)Follow these steps in order.
Ask the user where the bundle is — never scan the
filesystem for it or assume the collector's default
output directory. A machine often holds several
bundles, and picking the wrong one produces a
confident report about the wrong incident.
Mentioning the default as a hint is fine
(./infrahub_bundles/ when --output-dir wasn't
set), but the user names the path. Skip the question
only when the user already gave a path or pasted
bundle contents, even a single log excerpt. When the
user gave a path, confirm it looks like
an infrahub-collect bundle — a bundle/ directory
containing bundle_information.json. If the user has
neither a bundle nor pasted contents, stop and hand off to
infrahub-collecting-diagnostics; do not scrape
docker compose logs/kubectl logs as a substitute.
See
rules/workflow-ask-bundle-location.md.
Read bundle/bundle_information.json before opening
any log. It records what was collected, what failed,
and for which deployment. Collection failures are
findings in their own right — a service whose logs
could not be collected is often the service that is
down. See
rules/workflow-manifest-first.md.
Then establish the deployment context — running Infrahub version, topology (Compose or Kubernetes), replica counts — and open the report with it. The version is what later turns a matched GitHub issue into a conclusion ("already fixed in X.Y.Z — upgrade" vs "already running the fix — possible regression"). See rules/workflow-deployment-context.md.
Scan every service directory under
bundle/logs/ — not just the server — for the
signal classes in
rules/triage-error-signals.md:
Python tracebacks, ERROR/CRITICAL log lines, panics,
OOM kills, and connection failures. Treat any
*.previous.log file as restart evidence and read
its tail — the pre-restart log usually holds the
crash cause
(rules/triage-restart-evidence.md).
reference.md has ready-made grep patterns per
signal class.
If the manifest shows a benchmark was collected
(create --benchmark), evaluate it alongside the
logs — the single-CPU score and the storage IOPS of
the Neo4j/PostgreSQL volumes often decide whether a
slowness symptom is a software issue or an
undersized host. If it's absent and the symptom is
performance-shaped, the report must recommend a
next bundle with --benchmark. See
rules/triage-benchmark-results.md.
If the manifest has a traces entry with traces
written (create --include-traces), read the files
of bundle/traces/ before you conclude on a
slowness, from 0001 (the slowest). For each trace,
find the spans that took the time from their
durations and self times, and report the service and
the operation. Read the files only: never start or
query a Tempo or Grafana, not even a local one. When
the symptom is a slowness and the bundle has no
usable traces, recommend a next bundle with
--include-traces and a window that covers the
slowness. See
rules/triage-traces.md.
Group the raw signals by timestamp and causal chain into incidents — one incident per underlying problem, with root errors distinguished from cascade errors in downstream services. A database OOM at 14:02 followed by server connection errors at 14:02+ is one incident, not two. See rules/correlate-into-incidents.md.
For each incident backed by a traceback or a distinctive error message, build a search key from its stable parts (exception class, normalized message, innermost Infrahub frame — variable IDs, branch names, and hostnames stripped) and search:
gh search issues --repo opsmill/infrahub "<stable keywords>"
The default search covers open and closed issues —
do not pass --state, which would hide one half.
Present the top matches with title, state, and URL —
which is all gh search issues returns. The fix
version is not in that output, so open a promising
match for it and compare it against the deployment
context from step 2; when the issue names no version,
say so and leave the upgrade question open. See
rules/match-stable-search-keys.md
for key construction and fallbacks when gh is
unavailable, and reference.md for the
command that reads a match, plus the known failure
patterns worth checking before searching — several
common symptoms have well-understood causes that make
the search targeted instead of generic.
Write the findings report: one section per incident, each with severity, the evidence (bundle file paths plus quoted excerpts), the correlation reasoning, and any matching GitHub issues. Every claim must trace back to a quoted bundle line; unknowns are stated as unknowns (rules/report-evidence-per-finding.md). Include in the open questions whether the symptom reproduces on demand and when it last did — a reproduced timestamp sharpens the incident window and tells the next bundle what to capture. The report recommends next steps but applies none — no restarts, no config edits (rules/scope-read-only-analysis.md).
Close with the right hand-off for what was found:
infrahub-reporting-issues.infrahub-reporting-issues. Never run
gh issue create from this skill.infrahub-collecting-diagnostics. If the findings
suggest a reproducer is needed, propose a minimal
reproducible example first; a full backup
(--include-backup) is the last resort, not the
default ask.See rules/cross-link-skill-boundaries.md.
| Prefix | Category | Description |
|---|---|---|
| workflow | Workflow | Manifest first; collection failures are findings |
| triage | Triage | Error-signal classes, all services, restart evidence |
| correlate | Correlation | Group signals into incidents; root vs cascade |
| match | Issue matching | Stable search keys against opsmill/infrahub issues |
| report | Reporting | Evidence per finding; unknowns stay unknowns |
| scope | Scope | Analysis only — no mutations, no fixes |
| cross-link | Cross-linking | Hand-offs to sibling skills |
See rules/_sections.md for the full index.
gh search recipes. Read in steps 3-5.infrahub-collect.docs.infrahub.app
on a genuine gap../infrahub_bundles/. Ask; the user names the
path.opsmill/infrahub issues and
docs.infrahub.app; what the bundle lacks goes
into the recommendations as a richer next bundle.docker/kubectl mutations, no config edits.
Recommendations go in the report; actions go to
the user or to OpsMill support.infrahub-reporting-issues. Cross-link, don't
duplicate its routing and sanitization.infrahub-collecting-diagnostics.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/correlate-into-incidents.md (opens in a new tab)rules/cross-link-skill-boundaries.md (opens in a new tab)rules/match-stable-search-keys.md (opens in a new tab)rules/report-evidence-per-finding.md (opens in a new tab)rules/scope-read-only-analysis.md (opens in a new tab)rules/triage-benchmark-results.md (opens in a new tab)rules/triage-error-signals.md (opens in a new tab)rules/triage-restart-evidence.md (opens in a new tab)rules/triage-traces.md (opens in a new tab)rules/workflow-ask-bundle-location.md (opens in a new tab)rules/workflow-deployment-context.md (opens in a new tab)rules/workflow-manifest-first.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
infrahub, diagnostics, log-analysis, incident-correlation, triage
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-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-collecting-diagnosticsCollect a redacted local diagnostic bundle (logs, config, version, state) for an OpsMill expert hand-off. TRIGGER when: Infrahub is broken/failing/erroring, the user asks for help debugging, wants to collect logs/diagnostics, prepares a hand-off for OpsMill support, or reports a crash/timeout/connection issue (upgrade failure, stuck branch, container CrashLoopBackOff, 500s, OOM). DO NOT TRIGGER when: debugging a check, transform, generator, menu, or schema in the repository (use the infrahub-managing-* skills), a bundle has already been collected and the user wants it analyzed (use infrahub-analyzing-diagnostics), filing a public GitHub issue (use infrahub-reporting-issues), running operational queries (use infrahub-analyzing-data), or planning an upgrade that has not run yet (use infrahub-planning-upgrades)./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