Loading...
Loading...
Analyzes 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.
npx skill4agent add opsmill/infrahub-skills infrahub-analyzing-data../infrahub-managing-checks/SKILL.md../infrahub-managing-transforms/SKILL.md/infrahub:analyzing-data Which devices have no platform assigned?Error: No question was passed to. This skill runs in a forked context and requires the user's question as args. Re-invoke with the question, e.g.infrahub-analyzing-data.Skill(skill="infrahub-analyzing-data", args="<the user's question>")
| Priority | Category | Prefix | Description |
|---|---|---|---|
| CRITICAL | MCP Tools | | Available Infrahub MCP tools, invocation patterns, response structure |
| CRITICAL | Query Patterns | | GraphQL structures for fetching, filtering, and traversing relationships |
| HIGH | Correlation | | Joining, diffing, and reasoning over data from multiple queries |
| HIGH | Reporting Output | | Presenting findings: summaries, tables, per-object detail, remediation hints |
| MEDIUM | Approach Selection | | When to use MCP analysis vs InfrahubCheck vs Transform |
mcp__infrahub__get_nodesmcp__infrahub__search_nodesmcp__infrahub__get_schemamcp__infrahub__query_graphqlmcp__infrahub__get_session_infomcp/session-*mcp__infrahub__node_upsertmcp__infrahub__node_deletemcp__infrahub__mutate_graphqlmcp__infrahub__propose_changesmcp__infrahub__reset_session_branch# 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 stepsdocs.infrahub.app