Skip to content
Data
Skill

/explore

Explore a database schema token-efficiently via the DBHub tools; use before writing SQL against a schema you haven't seen.

From plugin
dbhub
3.8k5 skills1 MCP

Claude Code

$ npx -y skills add bytebase/dbhub --skill explore --agent claude-code

SKILL.md

explore.SKILL.md
description: Explore a database schema token-efficiently via the DBHub tools; use before writing SQL against a schema you haven't seen.

DBHub Schema Exploration

Use `search_objects` with progressive disclosure — always coarse to fine:

1. **Orient:** `object_type: "table"`, `detail_level: "names"` (pattern defaults to `%`, matching all). Cheap even on large schemas. 2. **Narrow:** `detail_level: "summary"` for the tables that matter (row/column counts, comments), using a pattern like `%order%` rather than listing everything. 3. **Drill in:** `detail_level: "full"` only for the tables you will actually query (complete columns, types, keys) — never as a first, pattern-less call on an unfamiliar schema.

Searching `object_type: "column"` with a pattern like `%email%` is the fastest way to find which tables hold a concept.

Querying

  • Always add `LIMIT` (`TOP` on SQL Server, `FETCH FIRST n ROWS ONLY` on Oracle) when sampling data — start with `LIMIT 10`. Prefer aggregates (`COUNT`, `GROUP BY`) over pulling rows to characterize data.
  • Check a table's `full` detail before writing JOINs so you use real column names — don't guess and retry.
  • This plugin is read-only; if a write is rejected, tell the user rather than trying to work around it.
@bytebase
Ships withdbhub

Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite.

3.8k5 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
3.8k
Star history of bytebase/dbhub on GitHub, a chart by star-history.com

Other skills on dbhub.

fix-bug

fix-bug

Use when given a GitHub issue URL or number to investigate and implement a fix. Triggers on "fix issue", "fix bug", "fix #123",…

@bytebase@bytebaseInstall Skill
testing

testing

Run and troubleshoot tests for DBHub, including unit tests, integration tests with Testcontainers, and database-specific tests.…

@bytebase@bytebaseInstall Skill
setup

setup

Connect DBHub to a database or fix a failing connection; also covers changing the DSN, write access, or multiple databases.

@bytebase@bytebaseInstall Skill
dbhub

dbhub

Guide for querying databases through DBHub MCP server. Use this skill whenever you need to explore database schemas, inspect…

@bytebase@bytebaseInstall Skill

More skills from other plugins.

context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem05d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog11d41k
@posthog@posthogInstall Skill

Questions about explore.

Which coding agents can use explore?
explore installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.