database-expert

database-expert is a skill for Claude Code, Codex from sandraschi/database-operations-mcp. It costs 20 tokens per session (496 once invoked), scanned A, original, MIT.

A guided database workflow that uses database tools to connect to supported systems, inspect their structure, run queries, and export data. Supported systems include SQLite, PostgreSQL, MySQL, DuckDB, MongoDB, Redis, LanceDB, and ChromaDB.

In plain words
What is it for?
Use it to register and test connections, list databases and tables, inspect columns and types, run read-only SQL queries, and export data.
Why use it?
It gives database tasks a defined order, from selecting and testing a connection to examining tables and querying data. This helps avoid querying the wrong database or table.

Skill for Claude CodeCodex

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 skills/sandraschi/database-operations-mcp/database-expert
Any agent
npx skills add sandraschi/database-operations-mcp --skill database-expert
Clone the repo
git clone --depth 1 https://github.com/sandraschi/database-operations-mcp

Made for: Claude Code, Codex.

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 database-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/sandraschi/database-operations-mcp/database-expert.svg)](https://agentmods.dev/skills/sandraschi/database-operations-mcp/database-expert)
Your own site
<a href="https://agentmods.dev/skills/sandraschi/database-operations-mcp/database-expert"><img src="https://agentmods.dev/badge/skills/sandraschi/database-operations-mcp/database-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 496 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.00020 $0.00496
Opus 5 $0.00010 $0.00248
Sonnet 5 $0.00004 $0.00099
Haiku 4.5 $0.00002 $0.00050

Measured 3d ago against content hash a024355679b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

database-expert 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.

src/database_operations_mcp/skills/database-expert/SKILL.md · 40 lines

How it starts

The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Database expert skill

When helping with databases, use the Database Operations MCP server's tools in this order.

1. Connections

  • List supported types: db_connection(operation="list_supported") — SQLite, PostgreSQL, MySQL, DuckDB, MongoDB, Redis, LanceDB, ChromaDB.
  • List registered: db_connection(operation="list"); get/set active: get_active, set_active with connection_name.
  • Register: db_connection(operation="register", connection_name=..., database_type=..., connection_config={...}). For SQLite use {"database": "/path/to/file.db"}; for PostgreSQL use host, port, user, password, database.
  • Test: db_connection(operation="test", connection_name=...).

Refer users to the Database types help page or in-app help for required fields per DB type.

2. Schema

  • List databases: db_schema(operation="list_databases", connection_name=...).
  • List tables: db_schema(operation="list_tables", connection_name=..., database_name=...).
  • Describe table: db_schema(operation="describe_table", connection_name=..., table_name=...) for columns and types.

3. Queries and data

  • Read-only SQL: db_operations(operation="execute_query", connection_name=..., query="SELECT ...", limit=...). Prefer parameterized queries when user input is involved.
  • Quick sample: db_operations(operation="quick_data_sample", connection_name=..., table_name=..., limit=...).
  • Writes: Use execute_write or batch_insert only when the user clearly intends to change data.

4. Health and management

  • Health check: db_management(operation="database_health_check", connection_name=...).
  • Metrics: db_management(operation="get_database_metrics", connection_name=...).

Best practices

  • Confirm the active connection or ask which connection to use when multiple exist.
  • Suggest limits (e.g. LIMIT 100) for ad-hoc SELECTs.
  • Point users to the Add connection wizard or Database types help when they are unsure how to connect.

Read the full file on GitHub · 40 lines

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. 3d ago First seen · 40 lines · 20 tokens per session scan A a024355679b5

Subscribe to this mod's changes

database-expert is a skill published in the GitHub repository sandraschi/database-operations-mcp (3 stars, last pushed 17d ago), licensed MIT. It adds 20 tokens to every session and 496 once invoked, about $0.0001 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.