Inform
x-ray
See a quick visual explanation of code relationships, data flow, or change impact directly in your chat.
Inform
/cl-dev:x-ray helps you understand the code you are discussing through a small diagram backed by file-and-line references. It works with accessible source; an initialized CodeLantern repository, an active issue, and an MCP connection are optional.
When to use it
Ask what calls a function, how data reaches a component, how a state transition works, or what a proposed change might affect. You can name a target or use the context already in your conversation.
/cl-dev:x-ray What calls publishPayment, and where does the event go?Invoke x-ray explicitly through the host’s skill selector or /cl-dev:x-ray where supported. Generic requests such as “show how this works” do not automatically activate it. After invocation, continue naturally with follow-up questions. The skill asks a focused question if the target is ambiguous. You do not need to select a diagram type first.
What you see
The result appears in your current chat. CLI harnesses use compact ASCII; capable desktop harnesses can use their existing inline visualization support. When rendering support is unknown, x-ray uses text.
An illustrative response with fictional source references:
Payment publishing · current checkout, no local changes
[checkout] --calls [1]--> [publishPayment]
|
sends [2]
v
[? event consumer]
[1] checkout.ts:24 [2] payments.ts:18
Consumer wiring is outside the inspected source.References let you inspect the relationships shown. Inferences and unknown boundaries are marked; a proposed change is distinguished from current behavior. The diagram describes the source inspected, and does not establish that a path executed at runtime or that every dependency was found.
Keep exploring
Follow up with “expand that node,” “show the state transitions,” or “what changes if we remove this retry?” The skill revisits evidence affected by local edits and keeps the explanation focused on your question.
Invoking x-ray is read-only. Saving a diagram, publishing findings, or changing code requires a separate request. For a broader project overview recorded in the Knowledge Base, use discover.
Inform
Related skills
Other skills in the same phase of the workflow.
| adr | Capture a significant architectural decision as a lasting record in your knowledge base. |
| define | Sharpen a piece of project vocabulary into a clear, agreed definition in your knowledge base glossary. |
| discover | Populate your knowledge base by analyzing the codebase. |
| extract | Draw a developer's knowledge into the knowledge base through a guided interview. |