schema-exploration

List database tables, columns, data types, and foreign key relationships.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Database structure can be opaque; this skill helps you quickly discover tables, columns, data types, and relationships to understand how data is stored and accessed.

Core Features & Use Cases

  • Discover all tables in a database with their purpose and scope.
  • Inspect table schemas, including column names, data types, primary and foreign keys, and sample data.
  • Map relationships between tables to support join planning, impact analysis, and data lineage.
  • Use cases include onboarding data teams, performing impact analyses, and preparing documentation.

Quick Start

List all tables in the connected database and describe each table's columns and key constraints.

Frequently Asked Questions about schema-exploration

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

FAQPage Schema
How do I map database schema and table relationships in SQL?

To map database schema, the skill identifies all relational tables, lists their columns and data types, and traces foreign key relationships to outline how data is organized. It provides a complete structure overview including primary keys and sample data.

What is the best way to discover table structures and columns in a relational database?

Discovering table structures involves listing all available tables and inspecting their column names, data types, and key constraints. This skill performs data discovery by applying schema tools to instantly reveal the complete table architecture and sample rows.

How do I list all tables and sample data for data discovery?

Listing all tables and sample data requires querying the database schema to retrieve table names and column definitions. This skill uses sql_db_list_tables and sql_db_schema tools to instantly extract and display table structures alongside sample data.

Can I trace foreign key relationships for join planning without manual querying?

Yes, you can trace foreign key relationships automatically. This skill maps table relationships by identifying primary and foreign keys, enabling you to plan joins and perform impact analysis without manually inspecting database constraints.

Does this database schema exploration tool work with any SQL relational database?

This schema exploration tool works with any connected SQL relational database that supports standard schema queries. It requires an active database connection to list tables, inspect columns, and extract foreign key relationship structures.

What are the limitations of using automated schema mapping for data lineage?

Automated schema mapping focuses on structural metadata like columns, data types, and foreign keys. It may not capture business logic or view definitions, so complex data lineage requiring transformation rules might need additional manual documentation.