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>
1.8 KiB
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
-
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
-
For DataFrames:
- Use
describeto get column info - Show dtypes, null counts, sample values
- Use
-
For database tables:
- Use
pg_columnsfor column details - Use
st_tablesto check for PostGIS columns - Show constraints and indexes if available
- Use
-
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 tablespg_columns- Get column infopg_schemas- List schemasst_tables- List PostGIS tablesdescribe- Get DataFrame infolist_data- List DataFrames