Files
leo-claude-mktplace/plugins/data-platform/commands/schema.md
lmiranda b5d36865ee feat(plugins): add Visual Output headers to all other plugin commands
Add single-line visual headers to 66 command files across 10 plugins:
- clarity-assist (2 commands): 💬
- claude-config-maintainer (5 commands): ⚙️
- cmdb-assistant (11 commands): 🖥️
- code-sentinel (3 commands): 🔒
- contract-validator (5 commands): 
- data-platform (10 commands): 📊
- doc-guardian (5 commands): 📝
- git-flow (8 commands): 🔀
- pr-review (7 commands): 🔍
- viz-platform (10 commands): 🎨

Each command now displays a consistent header at execution start:
┌────────────────────────────────────────────────────────────────┐
│  [icon] PLUGIN-NAME · Command Description                       │
└────────────────────────────────────────────────────────────────┘

Addresses #275 (other plugin commands visual output)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 17:24:49 -05:00

1.8 KiB

/schema - Schema Exploration

Visual Output

When executing this command, display the plugin header:

┌──────────────────────────────────────────────────────────────────┐
│  📊 DATA-PLATFORM · Schema Explorer                               │
└──────────────────────────────────────────────────────────────────┘

Then proceed with the exploration.

Display schema information for database tables or DataFrames.

Usage

/schema [table_name | data_ref]

Workflow

  1. Determine target:

    • If argument is a loaded data_ref, show DataFrame schema
    • If argument is a table name, query database schema
    • If no argument, list all available tables and DataFrames
  2. For DataFrames:

    • Use describe to get column info
    • Show dtypes, null counts, sample values
  3. For database tables:

    • Use pg_columns for column details
    • Use st_tables to check for PostGIS columns
    • Show constraints and indexes if available
  4. Report:

    • Column name, type, nullable, default
    • For PostGIS: geometry type, SRID
    • For DataFrames: pandas dtype, null percentage

Examples

/schema                    # List all tables and DataFrames
/schema customers          # Show table schema
/schema sales_data         # Show DataFrame schema

Available Tools

Use these MCP tools:

  • pg_tables - List database tables
  • pg_columns - Get column info
  • pg_schemas - List schemas
  • st_tables - List PostGIS tables
  • describe - Get DataFrame info
  • list_data - List DataFrames