/anyshift-graph:agent-pluginfrom anyshift-graph
Ground production, infrastructure, incident, change, deployment, and architecture decisions in current Anyshift event-graph evidence. Use when an agent needs to resolve a production resource, inspect its relationships or event history, reconstruct a correlated incident chain, sweep recent changes, or run a read-only Cypher query over live topology + change events.
Ships in anyshift-graph. 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.
Use Anyshift MCP tools as a production evidence source inside the user's current task. Tools retrieve facts; the agent draws all conclusions.
This skill is a tool map only. It is not an RCA playbook, not a mandatory diagnosis checklist, and not an alert-specific conclusion recipe (do not encode guidance such as "for Sentry alerts, conclude X").
Call describe_schema FIRST in every session. It returns this project's live graph
vocabulary — node labels (resource kinds), relationship types, event types, sources —
and is the authoritative reference for query_graph Cypher. Do not guess labels.
| Evidence kind | Tool | Retrieves |
|---|---|---|
| Live graph vocabulary for this project | describe_schema | Labels, relationship types, event types, sources |
| Ambiguous human name → candidates / stable id | find_resources | Ranked resources with hashedIDs (name, identifiers, labels; substring-tolerant) |
| One resource in full | get_resource_details | Safe properties + bounded relationships for a hashedID |
| Change/event history of specific resources | get_resource_events | Time-bounded events for one or more hashedIDs |
| What happened project-wide, or in one cluster, in a window | get_recent_events | Windowed event feed; cluster scopes one clusterID (index-backed), root-cause-only filtering; rows carry clusterID |
| A correlated incident chain | get_correlated_events | The full event group for a correlation_id |
| Graph neighborhood of a resource | get_related | Topology neighbours (fair per-type sample) + a NEIGHBOURHOOD SUMMARY with exact per-type edge counts; event edges counted, not listed |
| Anything the tools above don't cover | query_graph | One read-only Cypher statement over the project's event graph |
| Which projects this grant can read | list_projects | Projects grouped by organization, current one marked |
| Switch the bound project | set_project | Rebinds this session's grant (authorization re-checked) |
Prefer a dedicated tool when it covers the evidence kind; use query_graph for the rest.
See references/query-patterns.md for Cypher mechanics and
references/recipes.md for named analysis recipes (event histogram,
SPOF fan-in, orphans, co-tenancy, shared config, deploy impact, common cause, blast radius,
correlated chain, public exposure trace, shortest path, RBAC reach, Kubernetes hygiene gaps,
hotspots).
e.ts > datetime('2026-08-09T00:00:00Z').
A quoted-string comparison (e.ts > '2026-…') matches ZERO rows without erroring —
under AND it silently empties the result; under OR it silently drops the time bound.e.ts is when a change happened; e.ingestedAt is when it reached the graph. Cloud
audit events and their diffs arrive minutes after their ts. Bound ts for "what changed
before X"; to sweep what is new since your last look, bound e.ingestedAt — a ts window
started at the last look misses a change that happened before it and arrived after. On
snapshot and reconciliation events, ts is when a scan noticed the change, not when
it happened.:ALIVE. Match it on every resource node you traverse or
return ((n:K8S_RESOURCE:ALIVE)) — index-backed and faster than deletedAt IS NULL.
Deleted nodes keep their relationships (history is preserved), so omitting :ALIVE
resurrects edges to dead resources. Omit it only when you deliberately want history.:RESOURCE {hashedID: …}. hashedID is indexed on RESOURCE; a bare
(x:ALIVE {hashedID: …}) or label-less anchor scans every live node (27 s vs 0.2 s).describe_schema, time bounds, and :ALIVE
filters before concluding "nothing happened".ORDER BY: SKIP without an
ORDER BY gives no guaranteed order between calls, so pages can overlap or miss rows.MATCH (s:K8S_SERVICE:ALIVE)-[:EXPOSES]->(:K8S_POD:ALIVE) answers "Services with a live backing pod", NOT "Services". A fleet scaled to zero has 200 Services and no pods, so that join returns nothing and reads as "there are no Services". Count the label first (MATCH (s:K8S_SERVICE:ALIVE) WHERE … RETURN count(s)), then ask about its relationships in a SEPARATE query, and say which of the two any number is.r.ready, r.operations, r.via are
null on a relationship; the props live in r.props_json, and apoc.* is not available
on this surface. Use get_related / get_resource_details, which return them parsed,
or a string test in Cypher (r.props_json CONTAINS '"ready":true').Every edge is an observation with an age, not a live probe:
CALLS_TO, USES_DATASTORE, PRODUCES_TO, CONSUMED_BY, USES_ENDPOINT)
accumulate: a dependency seen once stays until pruned, and get_resource_details
lists a July edge next to today's. Pass max_age_hours (24 for "current") to
get_related, or filter on r.currentAsOf in Cypher, before saying "A currently calls B".
observedAt and currentAsOf are the same field: the tools return it parsed as
observedAt, the stored property Cypher must read is currentAsOf — r.observedAt is
null on every edge. Cite the age on every edge you report.EXPOSES, SCHEDULED_ON, CONTROLS, …) are maintained
from the cluster and carry no observedAt; they say what the control plane declared,
not that packets flow. EXPOSES {ready} is the endpoint's readiness at the last
EndpointSlice the agent shipped.max_age_hours — that option filters accumulated observations, so a single
request 23 hours ago passes a 24-hour window and still says nothing about now. Only a
live read supports it: query the APM itself for the window you mean, or the native
source below.:ALIVE is not a status:ALIVE means the node has not been deleted from the graph, never that the thing is
active. A resolved PagerDuty incident stays :ALIVE — filter on status for open ones —
and a Deployment scaled to zero is :ALIVE with no pods. Read the property that carries
the state you mean, and treat vendor status (incident open/closed, who is on call) as
current only in the vendor's own API.
A native source is any mounted tool that reads the live system, not just a shell. Most
sessions have no shell at all: Kubernetes arrives as an MCP server (tools such as
resources_get / resources_list / pods_log), and so do the APM, PagerDuty and the
cloud providers. "I had no kubectl" is not a reason to skip verification — read the tool
list you were given and use whatever covers that layer. Say a source is unavailable only
after looking and finding nothing for that layer.
When such a source is mounted, confirm any current-state claim there before reporting it as current: which pods back a Service, whether a resource is reachable, who is on call, what an incident is about. The graph is the evidence for topology, relationships and history; the native source is the evidence for "right now". Cite both, and say which one each statement rests on. When no native source is mounted, keep the claim time-stamped ("observed at T") rather than present-tense.
A traffic statement has three separable facts, and collapsing them is the error this section exists to stop. Report the ones you have and name the one you do not:
Endpoint-eligible as of T1 (last EndpointSlice observed); recent APM activity, last observed T2; current successful traffic unverified.
resources_get, endpoint state)
shows a pod is eligible to receive traffic, never that requests are succeeding. Only
request-level evidence carrying outcomes — APM/metrics with status codes or error rates
over a stated window, logs of served requests, or an active probe you ran — supports this
clause. Without one, it stays "unverified", whatever the first two say and whatever
native sources are mounted.The same discipline applies to the negative: "no APM edge" is not "no traffic", and a zero-endpoint Service does not exclude direct-to-pod or health-check traffic.
This holds for every source, not just Cypher. A telemetry query that groups by several
dimensions returns zero buckets when ONE of them is missing from the data — tags such as
@kube_namespace or @kubernetes.deployment.name are absent on plenty of spans, so a
grouped query answers "no rows", never "no traffic". Before reporting absence: drop the
grouping to the single dimension you actually need (env), widen the window, and re-run.
Report "no data matched this query" with the query shown, and only call it absence when
the simplest form of it is also empty.
list_projects + set_project to switch projects.hashedID) and event timestamps when present.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub anyshift-io/agent-plugin --plugin anyshift-graph