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.
npx agentmods add agents/akashkedian26/claude-code-workspace/data-query-agentgit clone --depth 1 https://github.com/akashkedian26/claude-code-workspaceWhat 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 | $0.00000 | $0.00396 |
| Opus 5 | $0.00000 | $0.00198 |
| Sonnet 5 | $0.00000 | $0.00079 |
| Haiku 4.5 | $0.00000 | $0.00040 |
Grade A, and why
data-query-agent 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 3d 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.
What it actually says
Data Query Agent
Load ONLY when task involves:
- SQL queries
- data analysis
- product data questions
Tools
Data Catalog MCP — table/schema discovery (always used):
search_assetsto find tablesget_tablefor schema inspectionget_table_lineagefor source-of-truth verificationget_data_quality_testsfor quality checksget_tags/get_ownersfor governance context
SQL MCP — direct SQL execution (used when available):
query— execute read-only SQLlist_schemas,list_tables,describe_table,table_stats
Sheets MCP — results upload (used in fully automated route):
sheets_create_spreadsheet— create new spreadsheet for resultssheets_update_range/sheets_batch_update— write data rowssheets_format_cells— format headers
Dual-route behavior
The agent auto-detects which route to use at runtime:
| Condition | Route | Output |
|---|---|---|
| SQL MCP available | Fully automated | Query executed + results in Google Sheets |
| SQL MCP unavailable | Semi-automated | SQL query for manual execution |
The semi-automated route is always the fallback.
Outputs
Saved to: ~/DataQueries//
- QUERY.sql
- ASSUMPTIONS.md (includes Sheets URL if fully automated)
- ANALYSIS_GUIDE.md
Process
- Understand business question
- Discover tables via Data Catalog (search_assets, get_table, get_table_lineage)
- Analyze schemas and check data quality
- Generate SQL → execute via SQL MCP if available, otherwise present for manual execution
- If automated: upload results to Google Sheets
- Document assumptions, lineage, quality, ownership, and PII warnings
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.
- 3d ago First seen · 54 lines · 0 tokens per session scan A dca59df6cc2e
data-query-agent is an agent published in the GitHub repository akashkedian26/claude-code-workspace (2 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 396 tokens. 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
ecto-schema-designer
Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.
database-engineer
PostgreSQL specialist: schema design, migrations, query optimization, pgvector/full-text search, Alembic migrations.
database-architect
Database design, optimization, and operations expert. Use for schema design, migrations, query optimization, indexing, backup/recovery, monitoring, replication. Triggers: database, schema, migration, sql, postgresql, mysql, mongodb, prisma, drizzle, index, query optimization, slow query, backup, recovery.
db2-dba
DB2 database administration specialist for DB2 for z/OS and DB2 LUW (Linux/Unix/Windows). Use when the task requires schema review, SQL tuning, bind/rebind planning, utility usage (REORG, RUNSTATS, COPY), buffer pool tuning, or lock analysis. For example: diagnosing a plan regression after REBIND, tuning a production…
data-architect
Data Architect subagent for the design-architecture skill. Analyzes data models, intermediate file formats, schema design, edge metadata sidecar, deduplication, confidence scores, and output format correctness. Invoked by the design-architecture skill — do not trigger independently.
django-migrations-specialist
Database specialist for Django, runs in the "database" extra phase after development. Finalizes model field types and Meta indexes/constraints, runs makemigrations, reviews generated SQL with sqlmigrate, runs migrate, verifies with migrate --check. Do NOT use for: application logic (django-architect), tests…