xray

xray is a skill for Claude Code from davekilleen/Dex. It costs 65 tokens per session (5,381 once invoked), scanned A, original, MIT.

An explanation tool for Dex that describes the context, connected tools, and hooks behind its previous response. Hooks are automatic actions that run when certain events happen.

In plain words
What is it for?
Use it after a response when you want an AI-focused explanation of what happened behind the scenes.
Why use it?
It removes the guesswork from understanding how Dex produced a result. This helps you learn how the assistant works internally.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it after a response when you want an AI-focused explanation of what happened behind the scenes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davekilleen/dex/xray
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 davekilleen/Dex --skill xray
Clone the repo
git clone --depth 1 https://github.com/davekilleen/Dex

Made for: Claude Code.

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 xray

README.md
[![agentmods](https://agentmods.dev/badge/skills/davekilleen/dex/xray/github.svg)](https://agentmods.dev/skills/davekilleen/dex/xray)
Your own site
<a href="https://agentmods.dev/skills/davekilleen/dex/xray"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/xray/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 xray

Your own site · 80×15
<a href="https://agentmods.dev/skills/davekilleen/dex/xray"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/xray.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,381 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.
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.00065 $0.05381
Opus 5.5 $0.00026 $0.02152
Sonnet 5.5 $0.00013 $0.01076
Haiku 4.5 $0.00006 $0.00538

Measured 1mo ago against content hash f3c3a2814cb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

xray 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 1mo 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/skills/xray/SKILL.md · 799 lines

How it starts

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

/xray - The AI Education Experience

Default behavior: Explain what just happened in THIS conversation — the specific tools, files, and context that were used, with educational explanations of WHY.

With qualifiers: Deep dive into specific topics (AI fundamentals, Dex architecture, how to extend).


Philosophy

The best way to learn is by examining what just happened, not abstract concepts. When you run /xray:

  1. Show the work - What tools ran, what files were read/written
  2. Explain why - Why each action was necessary
  3. Connect to concepts - Link specific actions to how AI/Dex works
  4. Empower extension - "You could customize this by..."

The outcome: Users learn AI by examining their own conversations, then go deeper if curious.

Tone: Like a senior engineer doing a code review of what just happened. "Here's what I did and why."


Step 1: Determine Mode

Default (no arguments): "This Conversation"

When user just says /xray with no qualifier: → Immediately explain what happened in this conversation → Don't show a menu, just show the work

With qualifiers: Specific topics

Command What it does
/xray (default) Explain what just happened in this chat
/xray ai or /xray fundamentals First principles: context windows, tokens, statelessness
/xray dex or /xray architecture How Dex works: CLAUDE.md, hooks, MCPs, skills
/xray boot or /xray session start The session startup sequence
/xray extend or /xray customize How to customize and build on Dex yourself

DEFAULT MODE: This Conversation (Show Your Work)

This is the primary mode. When user runs /xray, explain what happened.

Step 1: Analyze the conversation

Look at the current conversation and identify:

  1. What files were read
  2. What files were written/modified
  3. What tools/MCPs were used
  4. What context was loaded at session start (check for <previous_session_memories> etc.)
  5. Key decision points in the AI's reasoning

Read the full file on GitHub · 799 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. 1mo ago Changed f3c3a2814cb4
  2. 1mo ago First seen · 799 lines · 65 tokens per session scan A 4ac35ac8c17b

Subscribe to this mod's changes

xray is a skill published in the GitHub repository davekilleen/Dex (508 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 5,381 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

stride-analysis-patterns

Apply STRIDE methodology to systematically identify threats. Use when analyzing system security, conducting threat modeling sessions, or creating security documentation.

sangrokjung/claude-forge · 30 tokens

onboarding

Guides a first-time omo user through setup and the core workflow. Use when a new user asks to get started with omo.

code-yeongyu/oh-my-openagent · 29 tokens

blind-spot-pass

Use before starting work in a domain you don't know well, to surface the "unknown unknowns" — the things you don't even know to ask about — and learn just enough to prompt and decide well. Implements the "blind spot pass" pattern from Anthropic's Fable "finding your unknowns" field guide. Triggers when you say "I'm…

sangrokjung/claude-forge · 221 tokens

self-assessment

Interactive skill assessment with personalized learning path generation.

FlorianBruniaux/claude-code-ultimate-guide · 12 tokens

talk-stage5-script

Produces a complete 5-act pitch with speaker notes, a slide-by-slide specification, and a ready-to-paste Kimi prompt for AI slide generation. Requires validated angle and title from Stage 4. Use when you have a confirmed talk angle and need the full script, slide spec, and AI-generated presentation prompt.

FlorianBruniaux/claude-code-ultimate-guide · 69 tokens

talk-stage6-revision

Produces revision sheets with quick navigation by act, a master concept-to-URL table, Q&A cheat-sheet with 6-10 anticipated questions, glossary, and external resources list. Use when preparing for a talk with Q&A, creating shareable reference material for attendees, or building a safety-net glossary for live delivery.

FlorianBruniaux/claude-code-ultimate-guide · 70 tokens