/infrahub:infrahub-reporting-issuesfrom infrahub
Guides users through filing bug reports and feature requests against the correct Infrahub-ecosystem GitHub repository. Classifies the request, routes to the right repo, searches for duplicates, gathers environment info, and prepares a draft issue for user review before submission.
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.
Help the user file a bug report or feature request against the correct Infrahub-ecosystem repository on GitHub. The skill does not auto-submit — it prepares a complete, sanitized issue and stops at the user's review gate. Submission only happens after the user explicitly approves both the content and the submission method.
The ecosystem has 11 candidate repos. Most users will not know which one owns their problem. The skill's job is to make a confident guess from local-repo context, confirm it with the user, search for duplicates, and produce a draft that matches the target repo's intake form.
Trigger this skill when the user says things like:
Do not trigger if the user is debugging locally and hasn't expressed an intent to file an issue. Filing is the action that distinguishes this skill from general troubleshooting.
Do not trigger directly when the friction is with an Infrahub skill's own guidance (a rule that's wrong, missing, or confusing) rather than the Infrahub product itself. That belongs to infrahub-reporting-skill-gaps, which checks the tracker for an existing report and decides bug vs. feature before handing a payload to this skill.
This skill may also be invoked directly by
infrahub-reporting-skill-gaps with a prepared payload:
{type, title, body, searched, issue?}. For that caller,
type is bug, feature, or docs gap, already decided
by that skill's two-level triage.
The payload carries no repo, and routing is yours.
That caller deliberately names no destination, so this
table is the only place the mapping lives:
type | Repo |
|---|---|
bug | opsmill/infrahub-skills |
feature | opsmill/infrahub-skills |
docs gap | opsmill/infrahub |
A bug or a feature is about a rule file, which lives in the skills repo. A docs gap is about Infrahub's own documentation, which lives in the main repo, and the skills maintainers have no power to write it. Resolve the repo from this table before step 4, then continue as though step 3 had run.
Titles use bug(docs): for the docs-gap case, without a
[skill] segment, since the originating skill means
nothing to opsmill/infrahub's maintainers; see
reference.md for that repo's own title
notes and the bug:/feat: convention this pairs with.
searched names the repo the caller already searched
at its own step 2, and issue is optional. When
issue is present, the caller matched an existing
issue: treat it as the target, render body as a
comment, and post with gh issue comment at step 8
rather than gh issue create.
Step 4 depends on searched. Skip it when searched
equals the repo you just resolved: the caller has already
run that exact search, and repeating it risks a second
answer that contradicts the one already written into
body. Run it as normal when they differ, which is the
docs-gap case: the caller searches
opsmill/infrahub-skills before it knows the kind, but a
docs gap routes to opsmill/infrahub, so that tracker has
not been checked by anyone yet.
When invoked this way, classification (step 2) is already decided, skip it. Step 3's detection logic does not apply either; the table above replaces it, and there is nothing to confirm with the user since the kind was already established from the session's own evidence. Skip environment info gathering (step 5) too; it collects Infrahub server, SDK, and OS versions, which apply to neither a report about a skill's own guidance nor a report about missing documentation. Use the caller's title and body as the render for step 6 instead of a generic template. Continue through steps 7-9 as normal: review gate, submission method, confirm.
Follow these steps in order. Stop at every user-gate step — never proceed past one without explicit confirmation.
Ask the user to describe the problem in their own words if they haven't already. Don't probe yet — just listen. Take note of any product names, version numbers, error messages, or workflow context they mention; they feed every later step.
Decide whether this is a bug, feature request, or question/usage help. Use 1-2 follow-ups only if classification is ambiguous:
If the user describes a workaround they're already using, lean toward "feature request" (the bug has a workaround → real problem is the missing ergonomics). If the user describes a crash, wrong output, or 500-level error, lean toward "bug". If the user is asking how to do something, route them to Discord/discussions instead of filing an issue — don't open issues for support questions.
Read reference.md for the full 11-repo registry,
detection cues, and template availability. Apply this
detection logic in order:
infrahub.toml, pyproject.toml deps,
galaxy.yml, .claude-plugin/plugin.json, etc.)The default-to-main rule: if detection is
ambiguous, if multiple repos match equally, if the
user expresses any uncertainty about which component
is at fault, or if the symptom plausibly lives at
the platform layer — default to opsmill/infrahub.
The main repo can re-route an incoming issue to a
sub-repo more easily than a sub-repo can re-route
back. Erring toward main is cheaper than erring
toward a wrong specialized repo.
Present your guess to the user with a one-sentence rationale and ask them to confirm or correct. Example:
"Based on
infrahub-sdkin yourpyproject.tomland the error mentioningInfrahubClient, this looks like anopsmill/infrahub-sdk-pythonissue. Confirm?"
Always search both bugs and features. Use the first available method:
gh CLI — gh search issues --repo <owner/repo> "<keywords>". Pull keywords from the
user's description plus any error message strings.
Run a second pass with synonyms if the first
returns nothing.gh is not installed,
use whichever GitHub MCP tool is available in the
user's environment.Show the user the top 3-5 matches with title, state (open/closed), and a one-line excerpt. Ask:
"Is your issue covered by any of these? If yes, we'll add a comment instead of opening a new one."
If a match exists, switch to comment mode and choose one of two paths. State which one to the user:
Either way, give the user the issue URL. Otherwise, proceed to draft a new issue.
For features, skip this step. For bugs, collect only:
macOS 14 arm64, Ubuntu 22.04 x86_64).That's it. Do not collect file paths, project
structure, logs verbatim, environment variable dumps, docker compose ps output, or anything that could leak
internal state. The
environment-info-sanitization rule
governs what is and is not allowed in the issue body
— read it before composing the bug section.
Where to find versions:
| Component | Command |
|---|---|
| Infrahub server | infrahubctl info (Infrahub Version line), or check image: tag in compose file |
| Python SDK | infrahubctl info (SDK Version line), or pip show infrahub-sdk |
| Ansible collection | ansible-galaxy collection list opsmill.infrahub |
| Nornir plugin | pip show nornir-infrahub |
| Helm chart | helm list -n <namespace> |
| infrahub-sync | infrahub-sync --version |
| infrahub-backup | infrahub-backup --version |
| MCP server | check MCP client config or pip show infrahub-mcp |
| VS Code extension | Extensions panel in VS Code |
| Skills plugin | .claude-plugin/plugin.json version field |
If a version can't be determined cleanly, mark it
unknown rather than guessing or running broader
discovery commands.
If the target repo has a .github/ISSUE_TEMPLATE/
directory, fetch the matching template (bug_report.yml
for bugs, feature_request.yml for features) and
follow its form fields. Use:
gh api repos/<owner>/<repo>/contents/.github/ISSUE_TEMPLATE/bug_report.yml --jq '.content' | base64 -d
Repos that ship issue templates:
opsmill/infrahubopsmill/infrahub-sdk-pythonopsmill/infrahub-ansibleopsmill/nornir-infrahubRepos without templates fall back to
templates/bug.md or templates/feature.md in this
skill.
Title conventions: use the form
<area>: <imperative summary>, keep it under 72
characters, no trailing punctuation. Examples:
SDK: InfrahubClient.create() raises on empty list payloadSchema: hierarchical generic loses parent on renameDocs: clarify human_friendly_id behavior for inherited nodesPresent the rendered issue to the user. Show:
Ask: "Does the content look right? Anything to add or remove before we proceed?"
Do not skip this step. Iterate with the user until they explicitly approve the content.
Once content is approved, ask the user how they want to submit. The commands differ for a new issue and a comment; pick the column that matches what step 7 showed:
| Method | New issue | Comment on an existing issue |
|---|---|---|
| CLI | gh issue create --repo <owner/repo> --title "..." --body "..." | gh issue comment <number> --repo <owner/repo> --body "..." |
| MCP GitHub server | Use it if the user has one. Confirm the tool name before invoking. | Same, using the server's comment tool. |
| Manual | Print title and body as copy-paste-ready markdown, plus https://github.com/<owner>/<repo>/issues/new. | Print the body as copy-paste-ready markdown, plus https://github.com/<owner>/<repo>/issues/<number>. |
A comment carries no title. If the render still has one, step 6 built the wrong artifact; go back rather than pasting a title into a comment body.
Never assume a default — always ask. After the user picks a method, execute it.
After submission, give the user:
| Prefix | Category | Description |
|---|---|---|
| env | Environment info | What can and cannot appear in issue bodies |
See rules/_sections.md for the index.
.github/ISSUE_TEMPLATE/.docs.infrahub.app
on a genuine gap (e.g. deleting nodes)opsmill/infrahub and let the maintainers
re-route. Wrong sub-repo issues create more work
for everyone.docker compose output.
These leak hostnames, IPs, container names, and
sometimes secrets. Stick to versions + OS for v1.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-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).Other plugins' skills for the same job