diagnose-entity-graph

diagnose-entity-graph is a skill for Claude Code from grafana/gcx. It costs 46 tokens per session (3,224 once invoked), scanned A, original, Apache-2.0.

A troubleshooting guide for Entity Graph, a view that shows services or other entities and the connections between them.

In plain words
What is it for?
Diagnosing an empty or incomplete graph, checking why edges are missing, investigating disconnected clusters, and resolving environment or namespace filtering issues.
Why use it?
It helps determine whether missing entities, absent connections, disconnected groups, or filtering problems come from the data or its labels.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the gcx plugin — 24 skills, 1 agent shipped together

Good fit Diagnosing an empty or incomplete graph, checking why edges are missing, investigating disconnected clusters, and resolving environment or namespace filtering issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/grafana/gcx/diagnose-entity-graph
About the project

gcx is a command-line tool that lets people and AI coding agents manage and inspect Grafana Cloud, Enterprise, and open-source instances. It provides access to dashboards, alerts, SLOs, metrics, logs, and traces, with workflows for alert investigation, dashboard management, GitOps, and observability setup. Its catalogue entries provide agent instructions and extensions for using gcx.

grafana/gcx · 817 stars · on GitHub · grafana.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add grafana/gcx --skill diagnose-entity-graph
Clone the repo
git clone --depth 1 https://github.com/grafana/gcx

Made for: Claude Code.

Or install gcx, the plugin that ships this one along with the rest of its 24 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagnose-entity-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/grafana/gcx/diagnose-entity-graph/github.svg)](https://agentmods.dev/skills/grafana/gcx/diagnose-entity-graph)
Your own site
<a href="https://agentmods.dev/skills/grafana/gcx/diagnose-entity-graph"><img src="https://agentmods.dev/badge/skills/grafana/gcx/diagnose-entity-graph/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diagnose-entity-graph

Your own site · 80×15
<a href="https://agentmods.dev/skills/grafana/gcx/diagnose-entity-graph"><img src="https://agentmods.dev/badge/skills/grafana/gcx/diagnose-entity-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,224 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.03224
Opus 5.5 $0.00018 $0.01290
Sonnet 5.5 $0.00009 $0.00645
Haiku 4.5 $0.00005 $0.00322

Measured 14d ago against content hash 72ac266c0d34, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagnose-entity-graph scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-plugin/skills/diagnose-entity-graph/SKILL.md · 310 lines

How it starts

The opening of the file, as written. The whole thing — 310 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diagnose Entity Graph

Systematic diagnosis of Entity Graph problems using gcx commands. Follow the steps in order — each step narrows the cause. Be direct and report findings concisely.

Start here: read the Orientation block

gcx kg diagnose prints an Orientation block above its check table. Read it first. It tells you which (if any) of the five common Entity Graph scenarios the run matches:

  • "I see no entities at all"
  • "Some expected entities are missing"
  • "I see entities with no edges"
  • "I see disconnected clusters of entities"
  • "I can't filter to the entities I want"

When the Orientation block names a matched scenario, follow its Next: commands. The per-step playbook below is the fallback for runs where no scenario matched or the matched scenario's hints didn't resolve the issue.

Reading Diagnose Output

Treat gcx kg diagnose's verdicts as authoritative for the queries it ran. Two non-obvious classifications:

  • WARN — metric exists … but no series match the requested env/namespace scope means the metric is flowing on the stack but doesn't carry the scoped label value. This is a label-mapping issue (asserts_env vs. deployment_environment, etc.), not a missing-data issue. Investigate the label pipeline (Step 6) before suggesting the user enable new telemetry.
  • FAIL — no data (without the WARN above) means the metric was not found, even unscoped — the integration / recording rule is genuinely absent.

For ad-hoc PromQL outside kg diagnose, apply the same discipline: re-run the query without the env / namespace filter before concluding the data is missing.

If a user reports an entity by name, see Step 7's entity-existence workflow before assuming it exists on this stack.

Prerequisites

gcx must be installed and configured with a valid context. gcx kg diagnose bundles most of the per-step checks below; the individual commands produce equivalent results when you need to drill into one check.

gcx config view
gcx kg status

Read the full file on GitHub · 310 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · -4 lines · -58 tokens per session 72ac266c0d34
  2. 22d ago Changed · +4 lines 5dc6d76893f3
  3. 2mo ago First seen · 310 lines · 104 tokens per session scan A e2f61da6ce51

Subscribe to this mod's changes

diagnose-entity-graph is a skill published in the GitHub repository grafana/gcx (817 stars, last pushed today), licensed Apache-2.0. It adds 46 tokens to every session and 3,224 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

diagnose-entity-graph compared with skills from other repositories

diagnose-entity-graph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnose-entity-graphgrafana/gcxSkill817todayApache-2.0A46Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16kyesterdayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7k3d agoMITA71Claude Code, Codex
cwv-optimizeradobe/skillsSkill319yesterdayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2kyesterdayApache-2.0A15Claude Code, Codex
incident-response-incident-responsermyndharis/antigravity-skillsSkill1.9k23d agoMITA36Claude Code
diagnosing-missing-recordingsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex