From rolepod-dblab
Read a live Postgres schema — tables, columns, types, primary keys, indexes, and the foreign-key graph — into a normalized snapshot for planning and debugging. Read-only. Use before changing data access, writing a migration, or reasoning about how tables relate.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rolepod-dblab:db-introspectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Single-backend skill. Calls **`rolepod_db_introspect`** on the rolepod-dblab MCP server and surfaces the structured result. No fallback (D-001).
Single-backend skill. Calls rolepod_db_introspect on the rolepod-dblab MCP server and surfaces the structured result. No fallback (D-001).
What does the live schema actually look like — tables, columns, types, indexes, foreign keys?
Phase: Plan / Debug. Read-only.
rolepod-wplab (/wp-introspect), not dblab. wplab understands WP-semantic structure (options, post meta, taxonomies); db-introspect returns raw tables/columns/FKs with no WP meaning. (No-overlap contract, SPEC §3.)wpdb semantics → rolepod-wplab.conn — Postgres connection string (postgresql://…). Treated as a secret; never logged.schema (optional, default public) — schema to introspect.include_row_counts (optional, default false) — add estimated row counts (pg_class.reltuples; cheap, not exact).Call rolepod_db_introspect:
{
"conn": "postgresql://user:pass@host:5432/db",
"schema": "public",
"include_row_counts": false
}
table_count — number of base tables in the schema.tables[] — each: name, columns[] (name, type, nullable, default, primaryKey), indexes[] (name, columns, unique), foreignKeys[] (name, columns, refTable, refColumns), rowCount.manifest_path — Extension Protocol v1 manifest (phase debug).User: "What does the orders schema look like before I touch it?"
{ "conn": "postgresql://…/shop", "schema": "public", "include_row_counts": true }
Surface the FK graph and indexes; flag any table the migration will touch.
Run artifacts are saved under:
.rolepod-dblab/artifacts/db-introspect_<ts>_<uuid>/rolepod parent (detected via the marker file <git-root>/.rolepod/parent-active written by the parent's SessionStart hook): <git-root>/.rolepod/evidence/<ts>-rolepod-dblab-db-introspect/Either way the run directory contains schema.json plus a manifest.json per Extension Protocol v1, so the parent's check-work / debug-issue skills can read the live schema as evidence.
The
/db-introspectskill needs the rolepod-dblab MCP server, which is not currently available. Confirm the plugin is installed and try again, or check thatnpx -y @rolepod/dblabis reachable.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub nuttaruj/rolepod-dblab --plugin rolepod-dblab