Start with the question and a reviewable answer

Questions such as “How does A reach C?” and “Which services rely on B?” give the workflow a concrete task and the reader a way to judge whether the answer addresses it. One asks for a path through service relationships; the other asks for the services that depend on B.

The diagram follows A → B → C and retains a less certain direct A → C relationship. An explanation can name the connecting services, distinguish the stronger route from the weaker alternative and identify the connection that needs checking. That is a more useful review target than an unrestricted description of the whole system.

The evidence here comes from source and configuration. A relationship supported by those materials describes a possible connection; it is different from an observed request in a running system. That distinction needs to remain visible when the skill explains its result.

Connect code and infrastructure at service boundaries

The extraction workflow builds abstract syntax trees, or ASTs, from Python, Clojure and Ruby. Each tree preserves the structure of a parsed source file. Relationships extracted from those trees feed a shared dependency graph, connecting facts that would otherwise sit in separate files and languages.

Infrastructure supplies a separate kind of evidence. Terraform files, YAML configuration and Lambda related materials can describe connections beyond a local function body. The workflow crawls those materials alongside the language ASTs; it does not treat every infrastructure file as input to the same language parser.

The graph brings these inputs together at service boundaries so a query can follow relationships across services. Its coverage remains limited by the available evidence and extraction. A missing edge may mean no relationship, unavailable material or an extraction gap. It cannot establish the absence of a connection or an exhaustive deployment topology.

Preserve uncertainty in every relationship

The graph distinguishes relationships by relative certainty. In the figure, solid and dashed lines are labeled “More certain” and “Less certain.” These categories describe the strength of the relationship evidence; they are not measured probabilities or a model’s confidence score.

Certainty belongs on the connection because that is the claim being used. An explanation following several edges needs to retain any weaker part of the route. A less certain alternative may still deserve source review even when a stronger path answers the immediate question.

This gives engineers something specific to challenge: which connection supports the proposed route, and which link still needs investigation? A fluent answer should preserve those distinctions rather than make the graph sound more complete or certain than its inputs support.

Give the skill graph operations for the task

The Claude skill receives the question and invokes graph operations through a CLI. Requests travel from the skill to the graph interface, and results return to the skill. The diagram describes operations such as tracing paths and finding dependencies; these labels are not literal command names.

Graph analysis supplies the relevant structure, and the skill turns the result into an explanation across services. The explanation needs to stay tied to the original request, the relationships used to answer it and any uncertainty in those relationships. This separates the graph operation from the language used to describe its result.

For a team implementing this kind of AI workflow, the design decisions are concrete: which recurring questions to support, which source and configuration evidence to extract, and how to present uncertain results for review. The output is a source derived account of routes and dependencies that engineers can inspect and use to direct further investigation.

FOLLOW THE EVIDENCE

Let the question choose the graph queries

  1. Ask a specific architecture question

    The question sets the scope: a communication path, a dependency or a relationship between services.

  2. The skill chooses CLI graph queries

    The Claude skill uses graph operations to find the structure relevant to that question.

    path tracingdependency queries
  3. Return paths and relationship certainty

    The graph supplies source derived relationships and their differing certainty. These results guide the skill's next step.

  4. Answer the question with that structure

    The answer connects the relevant services while keeping uncertain links visible.

CLI queries give the skill a way to inspect the graph for the task at hand. The returned relationships describe source derived structure, including uncertainty.