db-explorer

db-explorer is an agent for Claude Code from GRACENOBLE/fullstack-template. It costs 39 tokens per session (296 once invoked), scanned A, original, MIT.

Use this agent to understand the current database schema, explore existing queries, identify patterns, or analyze data access before adding new queries. Read-only — never writes or modifies code.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/gracenoble/fullstack-template/db-explorer
Clone the repo
git clone --depth 1 https://github.com/GRACENOBLE/fullstack-template

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/gracenoble/fullstack-template/db-explorer.svg)](https://agentmods.dev/agents/gracenoble/fullstack-template/db-explorer)
Your own site
<a href="https://agentmods.dev/agents/gracenoble/fullstack-template/db-explorer"><img src="https://agentmods.dev/badge/agents/gracenoble/fullstack-template/db-explorer.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.00296
Opus 5 $0.00019 $0.00148
Sonnet 5 $0.00008 $0.00059
Haiku 4.5 $0.00004 $0.00030

Measured today against content hash 1ae5f79d7a03, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

db-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 today.

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/db-explorer.md · 27 lines

What it actually says

You are a read-only database analyst for this project.

Where to look

  • backend/internal/database/database.go — Service interface defines all supported operations; service struct implements them using database/sql + pgx stdlib.
  • backend/internal/database/database_test.go — Testcontainers setup reveals DB config; test cases reveal the schema and expected data shapes.
  • backend/docker-compose.yml — Postgres version, volume, port mapping.
  • backend/.env — connection parameters (DB name, schema, port).

What to produce

Provide a concise summary covering:

  1. Schema — tables, columns, and types inferred from queries and test data.
  2. Existing query patterns — how rows are scanned, what sql.DB methods are used, transaction usage.
  3. Gaps or risks — missing indexes implied by queries, potential N+1 patterns, queries missing error handling.
  4. Recommendations — what to be aware of before adding new queries.

Do not dump raw file content. Summarize and synthesize. Stick to what is observable in the code — do not invent schema details.

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. today First seen · 27 lines · 39 tokens per session scan A 1ae5f79d7a03

Subscribe to this mod's changes

db-explorer is an agent published in the GitHub repository GRACENOBLE/fullstack-template (6 stars, last pushed 4d ago), licensed MIT. It adds 39 tokens to every session and 296 once invoked, about $0.0002 per session on Opus 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-04.

Related

Other agents, from other repositories

crdb-issue-finder

Use this agent when you need to search for existing bugs, issues, or related problems in the CockroachDB GitHub repository. This agent should be used proactively when encountering errors, unexpected behavior, or when investigating whether a problem has already been reported. The agent casts a wide net to find…

cockroachdb/cockroach · 0 tokens

crdb-metric-reviewer

Reviews CockroachDB code changes for metric hygiene: static label opportunities, naming conventions, and correct use of the labeling API. Use when a diff adds or modifies metric.Metadata definitions.

cockroachdb/cockroach · 43 tokens

crdb-conventions-reviewer

Reviews CockroachDB code changes for adherence to Go conventions, commenting standards, and project style guidelines. Checks against the rules in .claude/rules/. Use when reviewing any code change.

cockroachdb/cockroach · 45 tokens

crdb-error-reviewer

Reviews CockroachDB code changes for error handling quality, silent failures, and inappropriate fallback behavior. Checks against cockroachdb/errors conventions, hunts for swallowed errors, and evaluates retry logic. Use when reviewing any code change that touches error paths.

cockroachdb/cockroach · 54 tokens

crdb-commit-reviewer

Reviews commit structure and PR descriptions for CockroachDB changes. Evaluates whether commits are well-structured for reviewability, whether mechanical and semantic changes are separated, and whether PR descriptions orient the reviewer. Use when reviewing a branch or PR with commits.

cockroachdb/cockroach · 57 tokens

crdb-test-reviewer

Reviews CockroachDB test changes for coverage quality, completeness, and red/green testing discipline. Evaluates whether tests cover critical paths, edge cases, and failure scenarios. Use when test files are changed or new behavior is added without corresponding tests.

cockroachdb/cockroach · 55 tokens