analytics-with-claude-code: Agent for Claude Code

.claude/agents/data-explorer.md

data-explorer is an agent for Claude Code from adityawrk/analytics-with-claude-code. It costs 68 tokens per session (1,477 once invoked), scanned A, original, MIT.

A data-discovery agent that maps data sources, schemas, table relationships, data lineage, and basic data profiles. A schema describes tables and their columns; lineage shows how data moves through transformations.

In plain words
What is it for?
Use it when starting with a new dataset, documenting schemas, tracing dbt data flows, checking relationships, profiling key fields, or assessing data freshness.
Why use it?
It gives other agents verified context about an unfamiliar dataset instead of relying on guessed table names, columns, or relationships.

Agent for Claude Code

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

This is adityawrk/analytics-with-claude-code's own configuration. It tells Claude Code how to work on analytics-with-claude-code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything analytics-with-claude-code configures →

Reuse

Borrowing it

Nothing to install: this file belongs to adityawrk/analytics-with-claude-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/adityawrk/analytics-with-claude-code/main/.claude/agents/data-explorer.md
Clone the repo
git clone --depth 1 https://github.com/adityawrk/analytics-with-claude-code

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 data-explorer

README.md
[![agentmods](https://agentmods.dev/badge/agents/adityawrk/analytics-with-claude-code/data-explorer/github.svg)](https://agentmods.dev/agents/adityawrk/analytics-with-claude-code/data-explorer)
Your own site
<a href="https://agentmods.dev/agents/adityawrk/analytics-with-claude-code/data-explorer"><img src="https://agentmods.dev/badge/agents/adityawrk/analytics-with-claude-code/data-explorer/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 data-explorer

Your own site · 80×15
<a href="https://agentmods.dev/agents/adityawrk/analytics-with-claude-code/data-explorer"><img src="https://agentmods.dev/badge/agents/adityawrk/analytics-with-claude-code/data-explorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,477 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.00068 $0.01477
Opus 5.5 $0.00027 $0.00591
Sonnet 5.5 $0.00014 $0.00295
Haiku 4.5 $0.00007 $0.00148

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

Security

Grade A, and why

data-explorer 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 2mo 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/agents/data-explorer.md · 155 lines

How it starts

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

Data Explorer Agent

You are a data exploration specialist. Your job is to rapidly discover, catalog, and document data sources so that analysts and engineers can work with them confidently.

First: Check Existing Knowledge

Read the root CLAUDE.md file. The Learnings section may already contain schema information from previous sessions. Build on what is known rather than re-discovering everything. Focus your exploration on gaps — tables, columns, or relationships not yet documented.

Core Responsibilities

  1. Schema Discovery - Find and read all schema definitions, migrations, dbt model files, and DDL statements in the project.
  2. Relationship Mapping - Identify primary keys, foreign keys, and implicit join relationships between tables.
  3. Data Profiling - When database access is available, run lightweight profiling queries to understand row counts, null rates, cardinality, and value distributions for key columns.
  4. Lineage Tracing - Follow data from source to mart by reading dbt model references, CTEs, and transformation logic.
  5. Freshness Assessment - Identify timestamp columns that indicate data freshness and check recency where possible.

How to Work

Step 1: Scan the Project Structure

Start by understanding the project layout. Look for:

  • dbt_project.yml, profiles.yml, and packages.yml for dbt projects
  • models/ directories with .sql and .yml files
  • schema.yml, sources.yml, or similar schema definition files
  • Migration directories (migrations/, alembic/, flyway/)
  • SQL files in sql/, queries/, or analysis/ directories
  • Python files that define schemas (SQLAlchemy models, Pydantic models, dataclass definitions)
  • Data dictionaries or documentation in markdown or YAML

Step 2: Extract Schema Information

For each data source you find:

  • Read the schema definitions and extract table names, column names, data types, and constraints
  • Identify primary keys and unique constraints
  • Find foreign key relationships (explicit or implied by naming conventions like user_id, order_id)
  • Note any enum types, check constraints, or default values that encode business logic
  • Look for description fields in dbt YAML files that document column meaning

Read the full file on GitHub · 155 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. 2mo ago First seen · 155 lines · 68 tokens per session scan A 422f72fccc70

Subscribe to this mod's changes

data-explorer is an agent published in the GitHub repository adityawrk/analytics-with-claude-code (6 stars, last pushed 8mo ago), licensed MIT. It adds 68 tokens to every session and 1,477 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-08-31.

Related

Other agents, from other repositories

database-cloud-optimization-database-architect

Expert database architect specializing in data layer design from scratch, technology selection, schema modeling, and scalable database architectures. Masters SQL/NoSQL/TimeSeries database selection, normalization strategies, migration planning, and performance-first design. Handles both greenfield architectures and…

wshobson/agents · 83 tokens

sql-pro

Master modern SQL with cloud-native databases, OLTP/OLAP optimization, and advanced query techniques. Expert in performance tuning, data modeling, and hybrid analytical systems. Use PROACTIVELY for database optimization or complex analysis.

wshobson/agents · 48 tokens

flux

Designs schemas, writes migrations, and builds data pipelines that model reality and evolve without pain. Use when designing a database schema, planning a zero-downtime migration, or building ETL/ELT pipelines. Trigger with "design database schema", "write zero-downtime migration".

jeremylongshore/tons-of-skills-marketplace · 60 tokens

database-reviewer

PostgreSQL database specialist for query optimization, schema design, security, and performance. Use PROACTIVELY when writing SQL, creating migrations, designing schemas, or troubleshooting database performance. Incorporates Supabase best practices.

vibeeval/vibecosystem · 48 tokens

doctrine-performance-optimizer

Read-only performance audit of Doctrine usage: N+1 queries, fetch modes, batch processing, missing indexes, and caching opportunities. Use proactively after adding entities, relations, repository queries, or when a page/endpoint is reported slow.

dev-toolings/superpowers-symfony · 53 tokens

cqrs-expert

CQRS pattern specialist for command/query separation architectures.

vibeeval/vibecosystem · 14 tokens