/infrahub:infrahub-reporting-skill-gapsfrom infrahub
Gathers evidence of friction from an Infrahub skill session, checks for existing reports, determines if the skill or product is at fault, and drafts a proposed rule change as a GitHub issue. Hands the redacted draft to infrahub-reporting-issues for user approval and 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.
Infrahub skills fail quietly. A missing rule does not crash; it produces eleven round trips and four user nudges before the model finds the right answer on its own. This skill works out which rule was missing, wrong, or unclear, and drafts the improvement as an issue report. It does not file anything itself, and it does not decide where the report goes: it prepares a complete, redacted draft and hands it to infrahub-reporting-issues, which owns the 11-repo registry and the routing, the consent gate, submission-method choice, and confirmation. This skill's job ends at the handoff.
Trigger this skill when the user says things like:
Do not trigger for a bug in Infrahub, the SDK, or any
other opsmill/infrahub-* product; that belongs to
infrahub-reporting-issues.
Do not trigger for ordinary Infrahub work that
completed without friction.
Follow these steps in order. Stop at every gate step; never proceed past one without explicit confirmation.
Start with the current conversation. Only look at a past session's transcript when the user points at one. Read reference.md for how transcript discovery works and where the signals live.
Then work the detection ladder in order, and stop as soon as the friction is described:
infrahubctl schema load,
object load, check run, transform run, a
pytest run). It is the strongest evidence there is,
because no self-assessment produced it. It only
counts when the skill was loaded before the first
attempt.ls skills/<skill>/rules/ and
grep the topic. This names the file, or its absence.A draft supported only by counters is not ready: say which probe came up empty and stop. See rules/evidence-detection-ladder.md.
Search opsmill/infrahub-skills before drafting
anything. The search decides the shape of the report,
never whether there is one: a match means a comment on
that issue, no match means a new issue with an explicit
confidence label. See
rules/workflow-tracker-first.md.
Decide whether the friction is a skill defect, a product defect, or neither. Only skill defects continue to level 2 and drafting. See rules/workflow-triage-classification.md.
For a skill defect, decide the kind from three outcomes: a bug (a rule or reference covers the topic and the model still got it wrong), a feature (no rule covers the topic, and a docs escape either found the answer or never happened), or a docs gap (no rule covers the topic, a docs escape happened but still failed to answer it, and the underlying behavior is settled). That last condition is a gate, not a detail: if the workflow is still being defined or is deliberately undocumented, there is nothing to document yet, so do not draft at all, tell the user why, and stop. This decides the title prefix used for drafting in step 6, and it is what the receiver routes on. See rules/workflow-bug-vs-feature.md.
If triage points at the underlying product rather than the skill's guidance, stop here and hand off to infrahub-reporting-issues instead of drafting a skill-friction issue. See rules/workflow-handoff-product-bugs.md.
Name the specific rule file, or lack of one, that should have prevented the friction. Probe B in step 1 already ran this read; this step is where its result becomes a citation. A draft that cannot name the implicated file, or the gap in coverage, is not ready. See rules/evidence-cite-the-artifact.md.
Fill templates/skill-friction.md,
using the bug:/feat:/bug(docs): title prefix
decided in step 3b and the confidence label decided in
step 2. Redact anything that identifies the user's
infrastructure or organization per
rules/evidence-no-customer-data.md.
This is security-critical and applies before the draft
ever leaves this skill.
The header carries three versions, and a report is not ready without all three:
metadata.version in the implicated
skill's own SKILL.md frontmatter. Says which revision
of the rule failed.SDK Version line of
infrahubctl info. Says what a rule naming a CLI
flag or client method was aimed at.Infrahub Version line of
the same output. Says what a rule about schema
loading, branch behavior, or a check pipeline was
aimed at.Run infrahubctl info as
../infrahub-common/rules/connectivity-server-check.md
prescribes; the runner prefix matters.
Without them a maintainer cannot tell whether the
guidance is wrong or merely older than what ran, which
is the difference between rewriting a rule and adding a
version note to it. Copy only the version values:
infrahubctl info also prints the server address and
deployment ID, which
rules/evidence-no-customer-data.md
forbids. Write unknown for any of the three that
cannot be read; never guess.
This produces the three handoff fields type, title,
and body. It does not produce a target repository:
naming one is not this skill's call, and the draft must
not contain one.
When step 2 found a match, draft a comment instead: no title, no repeated problem statement, only the new evidence this session adds.
Invoke infrahub-reporting-issues
with the payload {type, title, body, searched, issue?},
where searched names the repo step 2 searched and
issue is set only when it matched. There is no repo
field: that skill resolves the destination from type
against its own registry, and owns the review gate,
submission-method choice, and confirmation from here.
Never file or comment directly. See
rules/workflow-handoff-to-reporting.md.
One line on what the hand-off returned, with the issue URL if it produced one. The receiver already confirmed with the user; this is a relay, not a second confirmation. The tracker is the durable record; this skill keeps no local state of its own.
| Prefix | Category | Description |
|---|---|---|
workflow- | Workflow | Ordering and gating: the tracker check, triage, and handoff (to infrahub-reporting-issues, either for a product defect or to file a skill defect). Skipping one produces noise in the maintainers' tracker or a second, drifting filing pipeline |
evidence- | Evidence | What may and may not appear in a filed issue. Security-critical: issue bodies are public and cannot be retracted |
See rules/_sections.md for the index.
infrahub-reporting-issues; never
file directly. Read this before step 7.docs.infrahub.app
on a genuine gapunconfirmed and let the maintainer judge; silence
guarantees the second observer never finds it.gh issue create
here, or claiming an issue was filed, bypasses the one
review gate infrahub-reporting-issues provides and
risks a second, unreviewed submission.reference.md (opens in a new tab)rules/_sections.md (opens in a new tab)rules/evidence-cite-the-artifact.md (opens in a new tab)rules/evidence-detection-ladder.md (opens in a new tab)rules/evidence-no-customer-data.md (opens in a new tab)rules/workflow-bug-vs-feature.md (opens in a new tab)rules/workflow-handoff-product-bugs.md (opens in a new tab)rules/workflow-handoff-to-reporting.md (opens in a new tab)rules/workflow-tracker-first.md (opens in a new tab)rules/workflow-triage-classification.md (opens in a new tab)templates/skill-friction.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
18 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@opsmill is listed by opsmill/claude-marketplace — review the source before installing
npx claudepluginhub opsmill/claude-marketplace --plugin infrahubOther plugins' skills for the same job