install
source · Clone the upstream repo
git clone https://github.com/ai-analyst-lab/ai-analyst
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ai-analyst-lab/ai-analyst "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/data-inspect" ~/.claude/skills/ai-analyst-lab-ai-analyst-data-inspect && rm -rf "$T"
manifest:
.claude/skills/data-inspect/skill.mdsource content
Skill: Data Inspect
Purpose
Show the active dataset's schema — tables, columns, row counts, and relationships. Optionally drill into a specific table.
When to Use
Invoke as
/data to see the full schema summary, or /data {table} to see column details for a specific table.
Instructions
Mode 1: /data
(full schema overview)
/data- Read
to get the active dataset.knowledge/active.yaml - Read
.knowledge/datasets/{active}/schema.md - Display a condensed summary:
Active Dataset: {display_name} Connection: {type} ({database}.{schema}) Tables: users ~50,000 rows 8 columns user_id (PK) products 500 rows 7 columns product_id (PK) events ~6.5M rows 9 columns event_id (PK) sessions ~1.4M rows 8 columns session_id (PK) orders ~30-50K rows 6 columns order_id (PK) order_items — rows 4 columns order_id + product_id memberships — rows 4 columns user_id support_tickets ~20K rows 7 columns ticket_id (PK) nps_responses ~8K rows 5 columns user_id experiment_assignments ~20K 4 columns user_id + experiment_id promotions 5 rows 7 columns promo_id (PK) experiments 2 rows 8 columns experiment_id (PK) calendar 366 rows 4 columns date (PK) Use `/data {table}` for column details.
Mode 2: /data {table}
(table detail)
/data {table}- Read
.knowledge/datasets/{active}/schema.md - Find the section for the requested table
- Display the full column listing with types and descriptions
- Show key relationships (FKs to/from this table)
Mode 3: No active dataset
If
.knowledge/active.yaml has no active_dataset or the brain doesn't exist:
- Display: "No active dataset. Run
to connect one, or/connect-data
to see available options."/datasets
Anti-Patterns
- Never query the database just to show schema — read from the cached schema.md file for speed
- Never show the full schema.md raw — always format into the condensed table view