fullstack-template: Agent for Claude Code

.claude/agents/db-explorer.md

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.

A read-only agent for exploring a project's PostgreSQL database schema, existing queries, and data-access patterns. PostgreSQL is a database system, and a schema describes its tables, columns, and relationships.

In plain words
What is it for?
Use it to summarize tables and types inferred from the project, explain how queries scan results and use transactions, and identify risks before implementing new database access.
Why use it?
It provides database context before adding queries without changing code or data. It can also expose missing indexes, inefficient repeated queries, or weak error handling visible in the code.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is GRACENOBLE/fullstack-template's own configuration. It tells Claude Code how to work on fullstack-template 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 fullstack-template configures →

Reuse

Borrowing it

Nothing to install: this file belongs to GRACENOBLE/fullstack-template. 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/GRACENOBLE/fullstack-template/main/.claude/agents/db-explorer.md
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/github.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/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 db-explorer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00039 $0.00296
Opus 5.5 $0.00016 $0.00118
Sonnet 5.5 $0.00008 $0.00059
Haiku 4.5 $0.00004 $0.00030

Measured 1mo ago against content hash 1ae5f79d7a03, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.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. 1mo ago 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 1mo ago), licensed MIT. It adds 39 tokens to every session and 296 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-09-04.