Guides root-cause analysis over a UModel object-graph semantic layer, collecting evidence from metrics, logs, topology, and deployments for diagnosing service degradation, SLO breaches, and error spikes.
Ships in UModel. 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.
Investigate to a root cause over the UModel object graph. Use this as a method, not a script: let evidence decide the next query, keep competing hypotheses alive, and cite every conclusion with an object-graph, metric, or log source.
Load umodel-query first. It provides the read surfaces used here:
.entity, .topo, .umodel, .entity_set | entity-call get_metrics, and
.entity_set | entity-call get_logs.
Same CLI as umodel-query — load that skill and follow its Setup; the essentials:
1. Ensure umctl is on PATH — UModel's read CLI:
command -v umctl || go install github.com/alibaba/UnifiedModel/cmd/umctl@latest # needs Go 1.22+
No Go toolchain? Download a prebuilt umctl from the repo's Releases, or build from a clone
(make build-cli → ./bin/umctl). Verify with umctl version.
2. Point umctl at your UModel server and pick the workspace:
export UMCTL_ADDR=http://<host>:8080 # or pass --addr per call, or `umctl configure`
umctl workspace list -o json # the bundled demo workspace is `demo`
umctl query run <workspace> "<SPL>" -o json
For the incident-investigation demo with real Prometheus and Elasticsearch plans:
sh examples/incident-investigation/deploy/start.sh
If the user gives a different address, workspace, or transport, follow that instead.
Identify the incident and symptomatic entity:
Useful starting shapes:
umctl query run <workspace> ".entity with(domain='platform', name='platform.service', query='<service-or-symptom>') | limit 10" -o json
umctl query run <workspace> ".entity with(domain='platform', name='platform.incident', query='<incident-or-service>') | limit 10" -o json
umctl query run <workspace> ".umodel with(kind='runbook_set')" -o json
Confirm the symptom with telemetry, not only entity status or alert text.
Use get_metrics / get_logs through the entity. The object graph fills the
storage selectors such as service_id; do not guess labels manually. In open
source these calls return executable Prometheus / Elasticsearch plans. Run the
returned plans as described in umodel-query/references/metrics-logs.md.
Build a candidate set before deciding:
Do not treat recency as causality. A recent change is only suspicious when it has a plausible mechanism, a topological path to the symptom, and telemetry/log movement at the right time.
Traverse both directions around the symptomatic service:
.topo relations where the caller sends traffic into the
degraded service.platform.config_change and platform.deployment linked by
target, affected service, or business trigger.Use runbooks as a scaffold. Read linked runbook_set observations, knowledge,
and toolkits, but still verify each observation with graph/metric/log evidence.
If the path is ambiguous, read references/evidence-patterns.md for generic
positive and negative evidence patterns. Do not load it when the normal loop is
enough.
Build a timeline with absolute or relative times from the evidence:
Rule out candidates explicitly when evidence contradicts them. Common exclusion tests:
change_summary, successful rollout, no rollback, no
latency/error/timeout inflection near deploy time, or wrong blast radius.Prefer the cause that explains the full timeline with the fewest unsupported assumptions. Mark confidence lower if telemetry is missing or only indirect.
Return a concise incident diagnosis:
## Diagnosis
Symptom: <quantified service impact>
Timeline:
| Time | Evidence | Source |
|---|---|---|
| <T> | <event or inflection> | <object graph / metric / log reference> |
Root cause:
<one sentence with the triggering change/event and mechanism>
Causal chain:
1. <trigger>
2. <amplifier/mechanism>
3. <saturation/failure mode>
4. <user-visible impact>
Ruled out:
- <candidate>: <why excluded, with source>
Recommended action:
<read-only recommendation, tool if present, risk, confirmation requirement, and
verification metrics>
Confidence: <high|medium|low> because <evidence strength and gaps>
Every row in the timeline and every ruled-out item must cite its evidence type: object graph, metric, log, or runbook knowledge.
When validating this skill on a known scenario, keep the ground truth out of the agent prompt. Use a fresh SubAgent or fresh thread, pass only the alert, UModel endpoint, workspace, and skill paths, and score whether the agent independently collects graph, metric, and log evidence before concluding.
Stay read-only. Recommend remediation, but do not execute rollback, rate-limit, scale, or restart actions unless the user separately confirms the exact action.
What SKILL.md sets; muted values are Claude Code's defaults
/umodel:umodel-rcafrom UModel
npx claudepluginhub alibaba/unifiedmodel --plugin umodel3 skills in this plugin
/umodel-queryRead from a UModel object-graph semantic layer with the `umctl` CLI (MCP alternative noted). Three kinds of read: (1) entities & relationships / topology (`.entity`, `.topo`) and (2) the model itself (`.umodel`, and `.entity_set` methods, including entity-linked `list_skills`) return real rows; (3) metrics & logs (`get_metrics` / `get_logs`) return an executable *plan* — PromQL / Elasticsearch DSL with the entity id pre-substituted — that you run against the backend. Against a PaaS endpoint the same calls return data rows instead of a plan. Use to query or read UModel entities, relations, topology, or model metadata; to read a service's metrics or logs; to look up services and dependencies; or to discover what objects, datasets, and methods exist. For root-cause analysis on top of these reads, see the `umodel-rca` skill. Triggers: UModel, object graph, .entity / .topo / .umodel / .entity_set, query entities, read topology, read metrics / logs, get_metrics / get_logs, list services / dependencies / datasets / skills, 实体查询, 关系/拓扑查询, 读模型, 读指标, 读日志, 查指标, 查日志, 查服务依赖./umodel-skill-runnerUse when an EntitySet exposes list_skills, a user requests a UModel or RunbookSet Skill, or an entity task supplies SKILL.md. Triggers: list_skills, list_knowledge, RunbookSet Skill, UModel Skill, execute skill, run skill, 执行技能, 运行技能, Runbook 技能.Other plugins' skills for the same job