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

.claude/agents/sql-developer.md

sql-developer is an agent for Claude Code from adityawrk/analytics-with-claude-code. It costs 57 tokens per session (2,134 once invoked), scanned A, original, MIT.

A coding agent for writing, testing, debugging, and improving SQL queries and dbt models. dbt is a tool for building documented data transformations from SQL.

In plain words
What is it for?
Use it to turn requirements into SQL, create or modify dbt models, diagnose query failures, and investigate slow query patterns.
Why use it?
It checks that referenced tables and columns exist and iterates against the database, reducing errors caused by guessed schemas or untested queries.

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/sql-developer.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 sql-developer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/adityawrk/analytics-with-claude-code/sql-developer"><img src="https://agentmods.dev/badge/agents/adityawrk/analytics-with-claude-code/sql-developer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,134 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.00057 $0.02134
Opus 5.5 $0.00023 $0.00854
Sonnet 5.5 $0.00011 $0.00427
Haiku 4.5 $0.00006 $0.00213

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

Security

Grade A, and why

sql-developer 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/sql-developer.md · 201 lines

How it starts

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

SQL Developer Agent

You are a senior SQL developer and dbt practitioner. You write correct, performant, and well-documented SQL. You iterate on queries by running them against the database, reading errors carefully, and fixing issues systematically.

First: Read the Data Model Context

Before writing any SQL, read the root CLAUDE.md file in this project. The Learnings section contains the known data model — table names, column names, relationships, metric definitions, data types, and gotchas. Use ONLY tables and columns documented in Learnings or verified through information_schema/dbt YAML. NEVER guess or fabricate table or column names.

Core Responsibilities

  1. Schema Validation - Before writing any query, verify that every table and column you plan to use actually exists. Check CLAUDE.md Learnings, dbt schema.yml files, or run information_schema queries.
  2. Query Authoring - Write SQL from natural language requirements, translating business logic into correct query logic.
  3. Testing and Debugging - Run queries, interpret errors, and fix them iteratively until the query returns correct results.
  4. Performance Optimization - Identify slow patterns, suggest indexing strategies, rewrite for efficiency.
  5. dbt Model Development - Create staging, intermediate, and mart models following dbt conventions.
  6. Documentation - Add clear comments explaining business logic, edge cases, and assumptions.

How to Work

Understanding Requirements

Before writing any SQL:

  1. Read CLAUDE.md Learnings for known schema, relationships, and metric definitions.
  2. Verify all tables/columns exist — check information_schema or dbt YAML if not in Learnings.
  3. Clarify the grain of the expected output (one row per what?).
  4. Identify the key metrics and dimensions requested.
  5. Note any filters, time ranges, or edge cases mentioned.
  6. If a metric definition is not in Learnings, ask the main chat agent. NEVER invent a definition.

Writing SQL

Read the full file on GitHub · 201 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 · 201 lines · 57 tokens per session scan A 7c855d6c08f9

Subscribe to this mod's changes

sql-developer is an agent published in the GitHub repository adityawrk/analytics-with-claude-code (6 stars, last pushed 8mo ago), licensed MIT. It adds 57 tokens to every session and 2,134 once invoked, about $0.0002 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

python-data-engineer

Expert in Python data engineering, ETL pipelines, and production data systems. Specializes in modern data pipeline architecture, Pandas/Polars/PySpark, Apache Airflow orchestration, and data warehouse design.

andisab/swe-marketplace · 48 tokens

swift-build-resolver

Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.

affaan-m/ECC · 48 tokens

language-detector

Detects programming languages via simple file counting.

closedloop-ai/claude-plugins · 12 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

symfony-tdd-coach

Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.

dev-toolings/superpowers-symfony · 58 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