Infrahub Analyzing Data logo

Infrahub Analyzing Data

Organization
opsmill
infrahub-analyzing-data

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.

Overview

Publisheropsmill
Repositoryinfrahub-skills
Skill nameinfrahub-analyzing-data
Stars
27
Forks
0
Bundled files
8
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by opsmill on GitHub. Read the source before you install it.

Installation

Install the Infrahub Analyzing Data AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/opsmill/infrahub-skills/tree/main/skills/infrahub-analyzing-data
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opsmill/infrahub-skills.git /tmp/infrahub-skills
mkdir -p .claude/skills
cp -r /tmp/infrahub-skills/skills/infrahub-analyzing-data .claude/skills/infrahub-analyzing-data
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Infrahub Analyzing Data in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Infrahub Analyzing Data on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Infrahub Analyzing Data is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Overview

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:

  • Compliance — "Are all devices following the naming convention?"
  • Service impact — "Which services are hosted on devices in this rack?"
  • Maintenance windows — "Which devices are currently in a maintenance window, and what depends on them?"
  • Drift detection — "Which realized devices differ from their topology design?"
  • Capacity — "Which racks are over 80% full?"
  • Change impact — "What BGP sessions, services, and IPs depend on this prefix?"
  • Inventory gaps — "Which devices have no platform or OS version recorded?"

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.

Project Context

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>").

When to Use

  • Answering operational questions interactively via natural language
  • Cross-referencing two or more node types to find relationships or gaps
  • Investigating the blast radius of a change before executing it
  • Auditing data quality across the inventory
  • Producing one-time or on-demand reports for stakeholders
  • Exploring schema structure and data before writing a generator or check

How It Works

The Infrahub MCP server exposes tools that let Claude query Infrahub data directly. The typical workflow:

  1. Query — use MCP tools to fetch current state from Infrahub
  2. Correlate — join, diff, or filter the data against a policy or second dataset
  3. Reason — identify gaps, anomalies, or relationships
  4. Report — surface findings with context and remediation hints

Rule Categories

PriorityCategoryPrefixDescription
CRITICALMCP Toolsmcp-Available Infrahub MCP tools, invocation patterns, response structure
CRITICALQuery Patternsquery-GraphQL structures for fetching, filtering, and traversing relationships
HIGHCorrelationcorrelation-Joining, diffing, and reasoning over data from multiple queries
HIGHReporting Outputreporting-Presenting findings: summaries, tables, per-object detail, remediation hints
MEDIUMApproach Selectionapproach-When to use MCP analysis vs InfrahubCheck vs Transform

MCP Server Basics

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 substring
  • mcp__infrahub__get_schema — Discover schema kinds and their filters
  • mcp__infrahub__query_graphql — Execute a read-only GraphQL query
  • mcp__infrahub__get_session_info — Report the active session branch and instance address

Write (branch-isolated — land on an auto-created mcp/session-* branch, never the default branch):

  • mcp__infrahub__node_upsert — Create or update an object
  • mcp__infrahub__node_delete — Delete an object
  • mcp__infrahub__mutate_graphql — Run a GraphQL mutation for complex writes
  • mcp__infrahub__propose_changes — Open a Proposed Change for human review
  • mcp__infrahub__reset_session_branch — Reset or switch the active session branch

Full per-tool signatures (parameters, examples, response shapes) and the branch model are in rules/mcp-tools.md — read that before invoking any of these.

graphql
# 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 } }
              }
            }
          }
        }
      }
    }
  }
}

Typical Analysis Workflow

text
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

Supporting References

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Infrahub Analyzing Data AI skill do?

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.

Why use Infrahub Analyzing Data on TypingMind?

Because you install it once and use it with any model. Infrahub Analyzing Data is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Infrahub Analyzing Data in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/opsmill/infrahub-skills/tree/main/skills/infrahub-analyzing-data. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Infrahub Analyzing Data?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Infrahub Analyzing Data?

As many as you like. As long as a model supports skills, you can use Infrahub Analyzing Data with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Infrahub Analyzing Data AI skill free?

It is published on GitHub by opsmill. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇