Skip to content
Back to skills

Explore

ASecurity

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

  • 3,596 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentssqldatabase

Security analysis

A100/100

Scanned September 20, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Explore?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Explore
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bytebase-explore/badge)](https://www.skillsdirectory.com/skills/bytebase-explore)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…