/infrahub:infrahub-analyzing-data [question about infrastructure data]from infrahub
Queries and correlates live Infrahub infrastructure data via MCP server for compliance checks, drift detection, impact analysis, and ad-hoc operational reports.
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.
Expert guidance for interactive data analysis against a live Infrahub instance. This skill uses the Infrahub MCP server to query, correlate, and reason over infrastructure data on demand — answering operational questions that span multiple node types and relationships.
Use this skill for any question of the form "what does Infrahub currently know about X, and how does it relate to Y?"
Typical question patterns:
For automated, pipeline-enforced checks that
block proposed changes, see
../infrahub-managing-checks/SKILL.md.
For repeatable scheduled reports exported as
artifacts, see ../infrahub-managing-transforms/SKILL.md.
This skill runs in a forked subagent context and has no visibility into the parent conversation. The user's question MUST be passed via arguments.
If invoked with arguments (e.g., /infrahub:analyzing-data Which devices have no platform assigned?),
treat the arguments as the question to answer.
If invoked with no arguments, do not guess, do not use any example question from this file, and do not proceed. Return immediately with:
Error: No question was passed to
infrahub-analyzing-data. This skill runs in a forked context and requires the user's question as args. Re-invoke with the question, e.g.Skill(skill="infrahub-analyzing-data", args="<the user's question>").
The Infrahub MCP server exposes tools that let Claude query Infrahub data directly. The typical workflow:
| Priority | Category | Prefix | Description |
|---|---|---|---|
| CRITICAL | MCP Tools | mcp- | Available Infrahub MCP tools, invocation patterns, response structure |
| CRITICAL | Query Patterns | query- | GraphQL structures for fetching, filtering, and traversing relationships |
| HIGH | Correlation | correlation- | Joining, diffing, and reasoning over data from multiple queries |
| HIGH | Reporting Output | reporting- | Presenting findings: summaries, tables, per-object detail, remediation hints |
| MEDIUM | Approach Selection | approach- | When to use MCP analysis vs InfrahubCheck vs Transform |
When the Infrahub MCP server (v1.1.7) is connected, Claude can call these tools.
Read:
mcp__infrahub__get_nodes — List nodes of a
kind with filtering/pagination (preferred typed
read)mcp__infrahub__search_nodes — Find nodes of
a kind by partial substringmcp__infrahub__get_schema — Discover schema
kinds and their filtersmcp__infrahub__query_graphql — Execute a
read-only GraphQL querymcp__infrahub__get_session_info — Report the
active session branch and instance addressWrite (branch-isolated — land on an auto-created
mcp/session-* branch, never the default branch):
mcp__infrahub__node_upsert — Create or update
an objectmcp__infrahub__node_delete — Delete an objectmcp__infrahub__mutate_graphql — Run a GraphQL
mutation for complex writesmcp__infrahub__propose_changes — Open a
Proposed Change for human reviewmcp__infrahub__reset_session_branch — Reset or
switch the active session branchFull per-tool signatures (parameters, examples, response shapes) and the branch model are in rules/mcp-tools.md — read that before invoking any of these.
# Example: find all devices in an active
# maintenance window
query MaintenanceDevices {
MaintenanceWindow(status__value: "active") {
edges {
node {
name { value }
start_time { value }
end_time { value }
devices {
edges {
node {
name { value }
role { value }
site {
node { name { value } }
}
}
}
}
}
}
}
}
1. Understand the question
→ "Which services depend on devices currently
in a maintenance window?"
2. Identify the node types involved
→ MaintenanceWindow, DcimDevice, Service
(or equivalent in your schema)
3. Query current state
→ mcp__infrahub__get_nodes per kind (typed), or
mcp__infrahub__query_graphql — one query
per node type, or combined
4. Correlate the data
→ Join across node types, filter, count, diff
5. Report findings
→ Summarize with counts, list affected objects,
suggest next steps
docs.infrahub.app
on a genuine gap (e.g. deleting nodes)examples.md (opens in a new tab)rules/_sections.md (opens in a new tab)rules/_template.md (opens in a new tab)rules/approach-selection.md (opens in a new tab)rules/correlation-patterns.md (opens in a new tab)rules/mcp-tools.md (opens in a new tab)rules/query-patterns.md (opens in a new tab)rules/reporting-output.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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-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-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