db-reader

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

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/cskwork/supergoal-skill/db-reader
Clone the repo
git clone --depth 1 https://github.com/cskwork/supergoal-skill
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. 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.00067 $0.00495
Opus 5 $0.00034 $0.00247
Sonnet 5 $0.00013 $0.00099
Haiku 4.5 $0.00007 $0.00049

Measured yesterday against content hash ecca625af04a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

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. yesterday 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 (4 stars, last pushed 3d ago), licensed MIT. It adds 67 tokens to every session and 495 once invoked, about $0.0003 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-08-31.

Related

Other agents, from other repositories

claude-wiki-pages-ingest-agent

Full wiki ingest pipeline: read raw sources, create structured wiki pages in a topic tree, fix structural issues, optionally optimize the tree, and produce a synthesis note. Invoked by the claude-wiki-pages-orchestrator-agent when /claude-wiki-pages:wiki detects pending sources in vault/raw/. Power users may call this…

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

claude-wiki-pages-curator-agent

Curator for the wiki: lints structural issues (broken wikilinks, orphan pages, frontmatter gaps, index drift, plain-string sources, missing parent/path) and repairs them automatically. Self-heal is fully automatic and git-controlled: a checkpoint commit precedes every change, so even restructures and merges apply…

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

claude-wiki-pages-analyst-agent

Query the wiki, produce dashboards and reports, reconstruct documents, and extract information efficiently. Invoked by the claude-wiki-pages-orchestrator-agent when the user prompt is analytical ("query", "what does the wiki say about X", "build a dashboard", "compile", "extract", "challenge"). Five operating modes …

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

claude-wiki-pages-extract-worker-agent

Read-only extraction worker for the parallel-extract pipeline. Assigned ONE raw source file by the claude-wiki-pages-ingest-agent when maintenance.maxParallelExtract>1 and route=claude. Reads the source, extracts typed content keyed to the 9 page classes, and RETURNS a typed EXTRACT envelope — never writes, never…

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

claude-wiki-pages-polish-agent

Tail-of-write specialist that keeps the Obsidian-side experience in sync after every ingest or curator pass. Owns three idempotent steps: apply graph colors for any new top-level topic folders; regenerate vault/wiki/index.md from per-folder folder notes ( / .md) with current page counts; reconcile every folder note's…

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

claude-wiki-pages-maintenance-agent

Autonomous upkeep specialist. Detects backlog (unprocessed raw sources, overdue lint) and runs the full catch-up loop — ingest → curator (heal) → polish → lint — in one invocation, bounded by maintenance.maxPerRun and git-checkpointed throughout. Dispatched by the orchestrator when maintenance.enabled and a backlog…

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