db-reader

db-reader is an agent for Claude Code from cskwork/supergoal-skill. It costs 67 tokens per session (495 once invoked), scanned A, a copy of db-reader, MIT.

A read-only database reader that gathers selected evidence from MySQL, PostgreSQL, or SQLite without changing the database or exposing raw rows and secrets.

In plain words
What is it for?
Use it to check a database connection, summarize its schema, run named read-only queries, and provide small values or comparisons for testing and debugging.
Why use it?
It lets an agent check expected values, schema details, and differences between datasets or environments while keeping database access limited to safe read operations.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the supergoal plugin — 2 skills, 13 agents shipped together

Good fit Use it to check a database connection, summarize its schema, run named read-only queries, and provide small values or comparisons for testing and debugging.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/cskwork/supergoal-skill/db-reader
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.

Clone the repo
git clone --depth 1 https://github.com/cskwork/supergoal-skill

Made for: Claude Code.

Or install supergoal, the plugin that ships this one along with the rest of its 2 skills, 13 agents.

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-reader

README.md
[![agentmods](https://agentmods.dev/badge/agents/cskwork/supergoal-skill/db-reader/github.svg)](https://agentmods.dev/agents/cskwork/supergoal-skill/db-reader)
Your own site
<a href="https://agentmods.dev/agents/cskwork/supergoal-skill/db-reader"><img src="https://agentmods.dev/badge/agents/cskwork/supergoal-skill/db-reader/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-reader

Your own site · 80×15
<a href="https://agentmods.dev/agents/cskwork/supergoal-skill/db-reader"><img src="https://agentmods.dev/badge/agents/cskwork/supergoal-skill/db-reader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 495 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 97% copy Near-identical to another mod 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.00067 $0.00495
Opus 5.5 $0.00027 $0.00198
Sonnet 5.5 $0.00013 $0.00099
Haiku 4.5 $0.00007 $0.00049

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

Security

Grade A, and why

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

This is a copy

97% identical to db-reader — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/supergoal/agents/db-reader.md · 31 lines

What it actually says

ROLE: DB reader for optional DB evidence in GREENFIELD, DEBUG, LEGACY, and QA-ONLY workflows. You run in isolation; you cannot see other agents' transcripts.

Read-only ONLY. You ONLY read a database. You never drive a browser and never write product code.

READ: reference/db-access.md, the run brief/Domain Brief, and the database through the cross-platform Node runner templates/db-access/db-access.mjs or native clients (psql, mysql, sqlite3). Do not require an external skill.

DO, per reference/db-access.md:

  1. Check whether DB evidence is needed for the current task. If not needed or the user skips it, return DB phase: skipped and stop.
  2. If the env file is missing, ask the conductor to ask the user to fill it, provide DB_ENV_FILE, or skip. Never ask for secrets in a transcript when a gitignored env file is the safer path.
  3. Bind the dialect/client: PostgreSQL -> psql; MySQL -> mysql; SQLite -> sqlite3 -readonly.
  4. Run only named, read-only operations: check-connection, schema-summary, read-only-query. Prefer node templates/db-access/db-access.mjs <operation> for Windows/macOS compatibility.
  5. Issue only SELECT/WITH/SHOW/DESCRIBE/EXPLAIN; reject write/admin SQL before execution.
  6. Return a small pass/fail diff. Never return raw row dumps, secrets, credentials, tokens, or PII.
  7. For UI cross-checks, write sanitized qa/expected.md (field -> expected value) only. NEVER write auth/credentials to any file.

RETURN: compressed summary with DB phase status, dialect/client, checks run, action count, named expected values or dataset/env diff, and any transient test auth separately for conductor handoff only.

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 · 31 lines · 67 tokens per session scan A ecca625af04a

Subscribe to this mod's changes

db-reader is an agent published in the GitHub repository cskwork/supergoal-skill (5 stars, last pushed 9d ago), licensed MIT. It adds 67 tokens to every session and 495 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to db-reader, differing in 1 line, and is treated as a copy.

Related

Other agents, from other repositories

wiki-dev-eng-schema

Senior Fullstack Bun/TypeScript Engineer — Lane B (Schema, Ontology & Multi-vault) on the claude-wiki-pages development team. Owns ontology-profile-v1 (the predicate domain→range table and enum list), staleness derivation, the opt-in predicate range check, template/structural conformance, the multi-vault registry with…

odere-pro/claude-wiki-pages-plugin · 161 tokens

data-model-architect

Use when an orchestrator needs a Dataverse data model proposed (existing-table reuse, new tables in dependency-tier order, Mermaid ER diagram) for embedding in native-app-plan.md. Read-only — proposes, never mutates. Called by native-app-planner and /edit-app; not invoked directly by users.

microsoft/power-platform-skills · 67 tokens

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 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

plan-creation-qa-critic

QA / Critic for the plan-creation pipeline. Adversarially challenges assumptions, identifies gaps, stress-tests estimates, and issues a final APPROVE / MODIFY / REJECT verdict. Use when you need a structured adversarial review of any implementation plan, proposal, or design document.

QBall-Inc/the-bulwark · 66 tokens

plan-creation-eng-lead

Engineering and Delivery Lead for implementation planning. Produces work breakdown structures, effort estimates, dependency graphs, milestones, parallel opportunities, and risk registers. Use when you need structured delivery planning for any implementation topic.

QBall-Inc/the-bulwark · 48 tokens