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.
curl -O https://raw.githubusercontent.com/adityawrk/analytics-with-claude-code/main/.claude/agents/data-explorer.mdgit clone --depth 1 https://github.com/adityawrk/analytics-with-claude-codeWrote 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.
[](https://agentmods.dev/agents/adityawrk/analytics-with-claude-code/data-explorer)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- Schema Discovery - Find and read all schema definitions, migrations, dbt model files, and DDL statements in the project.
- Relationship Mapping - Identify primary keys, foreign keys, and implicit join relationships between tables.
- Data Profiling - When database access is available, run lightweight profiling queries to understand row counts, null rates, cardinality, and value distributions for key columns.
- Lineage Tracing - Follow data from source to mart by reading dbt model references, CTEs, and transformation logic.
- 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, andpackages.ymlfor dbt projectsmodels/directories with.sqland.ymlfilesschema.yml,sources.yml, or similar schema definition files- Migration directories (
migrations/,alembic/,flyway/) - SQL files in
sql/,queries/, oranalysis/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
descriptionfields in dbt YAML files that document column meaning
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.
- 2mo ago First seen · 155 lines · 68 tokens per session scan A 422f72fccc70
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.
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…
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.
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".
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.
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.
cqrs-expert
CQRS pattern specialist for command/query separation architectures.