schema-exploration

List database tables, inspect schemas, and map foreign key join paths.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/D26FORWARD/MatrixFin --skill schema-exploration-d26forward
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: schema-exploration
Source: https://github.com/D26FORWARD/MatrixFin/tree/main/deepagents/examples/text-to-sql-agent/skills/schema-exploration
Command: npx skills add https://github.com/D26FORWARD/MatrixFin --skill schema-exploration-d26forward

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps users quickly discover and understand a relational database's structure so they can find which tables exist, what columns and data types they contain, identify primary and foreign keys, and map relationships for accurate query planning.

Core Features & Use Cases

  • List Tables: Use a table-listing tool to enumerate all tables and provide concise descriptions of their purpose.
  • Describe Table Schema: Show column names, data types, primary keys, foreign keys, and provide sample rows to illustrate typical values.
  • Map Relationships: Identify join paths by tracing foreign keys and common "Id" suffix conventions to explain parent-child relationships and suggest JOIN chains for analytics (e.g., revenue by artist).
  • Use Case: Explore the Chinook sample database to locate customer and sales data, understand schema details, and prepare SQL joins for reporting.

Quick Start

Use the schema-exploration skill to list all tables in the database and then describe the Customer table with its columns, keys, and sample rows.

Frequently Asked Questions about schema-exploration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I discover database schema and table relationships for SQL query planning?

Discover database schema by listing all available tables, inspecting column names and data types, identifying primary and foreign keys, and mapping join paths to accurately plan and prepare SQL queries for analytics.

What is the best way to list all tables and columns in a relational database?

List tables and columns in a relational database by using a table-listing tool to enumerate available tables, then describe each table schema to show column names, data types, primary keys, foreign keys, and sample rows.

How do I map foreign key join paths across database tables for reporting?

Map foreign key join paths by tracing foreign keys and common Id suffix conventions across database tables to explain parent-child relationships, allowing you to suggest accurate JOIN chains for analytics reporting like calculating revenue.

Can I inspect sample rows and data types when exploring a database schema?

Yes, you can inspect sample rows and data types when exploring a database schema by retrieving schema details that include column types, primary keys, foreign keys, and typical sample data values to support query-writing workflows.

Do I need specific tools to explore database structure and prepare SQL joins?

Yes, you need tools to list tables and retrieve schema details including column types, primary and foreign keys, and sample data to successfully explore database structure, map relationships, and prepare SQL joins for data analysis workflows.