database-expert

database-expert is a skill for Claude Code 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 Code

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

Part of the database-operations-mcp plugin — 4 skills, 1 MCP server shipped together

Good fit Use it to register and test connections, list databases and tables, inspect columns and types, run read-only SQL queries, and export data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sandraschi/database-operations-mcp/database-expert
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.

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.

Or install database-operations-mcp, the plugin that ships this one along with the rest of its 4 skills, 1 MCP server.

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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00020 $0.00496
Opus 5.5 $0.00008 $0.00198
Sonnet 5.5 $0.00004 $0.00099
Haiku 4.5 $0.00002 $0.00050

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

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. 1mo 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 9d ago), licensed MIT. It adds 20 tokens to every session and 496 once invoked, about $0.0001 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-08-31.

Related

Other skills, from other repositories

chdb-datastore

Use when the user has tabular data (pandas DataFrame, parquet, csv, Arrow, json) and wants to filter, group, aggregate, join, or speed up slow pandas. Provides chDB DataStore — same pandas API, ClickHouse engine underneath. Also handles reading from S3, MySQL, PostgreSQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake…

chdb-io/chdb · 168 tokens

chdb-sql

Use when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake) without setting up a server. Provides chDB — embedded ClickHouse SQL in Python with 1000+ functions, Session for…

chdb-io/chdb · 214 tokens

knowledge_graph_skill

Skill for searching and evolving the SQLite-backed Knowledge Graph. Use this when you need structured fact/concept/link search across one or more teams, NPCs, or directory scopes. The Knowledge Graph (KG) is stored in the application's database (not YAML). It is scoped by (teamname, npcname, directorypath). Facts and…

NPC-Worldwide/npcpy · 474 tokens

sql-reporting

Conventions and review steps for writing analytics SQL against the warehouse. Use whenever the task involves querying tables, building a report, or aggregating metrics.

apache/airflow · 34 tokens

deepagents-thread-inspector

Inspect and explain conversations in the local Deep Agents Code SQLite session store. Use to look up the current thread's title or name, as a fallback when LangSmith trace tooling is unavailable, for offline or untraced sessions, or when asked to identify or summarize a local dcode thread, inspect checkpoint metadata…

langchain-ai/deepagents · 93 tokens

query-writing

Writes and executes SQL queries from simple SELECTs to complex multi-table JOINs, aggregations, and subqueries. Use when the user asks to query a database, write SQL, run a SELECT statement, retrieve data, filter records, or generate reports from database tables.

langchain-ai/deepagents · 57 tokens