Lucid Skill
by @wenkang-xie
AI-native data analysis via natural language. Connect Excel, CSV, MySQL, PostgreSQL data sources and query with SQL. Use when: (1) user asks to query, analyz...
clawhub install lucid-skillđ About This Skill
name: lucid-skill description: "AI-native data analysis via natural language. Connect Excel, CSV, MySQL, PostgreSQL data sources and query with SQL. Use when: (1) user asks to query, analyze, or explore data ('æĨč¯ĸæ°æŽ', 'æ°æŽåæ', '帎æį䏿°æŽ'), (2) user provides Excel/CSV files or database credentials for analysis, (3) user asks business questions about connected data ('åĒä¸Ēäē§åééæéĢ', 'how do orders and customers relate?'), (4) user wants to discover table relationships, JOINs, or business domains, (5) user wants semantic search across tables. NOT for: data modification (INSERT/UPDATE/DELETE/DROP are blocked â read-only queries only), ETL pipelines, or data ingestion beyond connecting sources." metadata: { "openclaw": { "emoji": "đ", "requires": { "bins": ["lucid-skill"] }, "install": [ { "id": "uv", "kind": "uv", "package": "lucid-skill", "bins": ["lucid-skill"], "label": "Install lucid-skill (uv)", }, ], }, }
lucid-skill
Connect data â infer semantics â query with natural language â get answers.
All output is JSON unless noted. No API key needed.
Quick Start
lucid-skill connect csv /path/to/sales.csv # Connect data
lucid-skill overview # Check connected sources
lucid-skill search "æåēĻéåŽéĸčļåŋ" # Find relevant tables + suggested SQL
lucid-skill query "SELECT month, SUM(amount) FROM sales GROUP BY month" # Execute
Core Commands
| Command | Purpose |
|---------|---------|
| For full command reference with all parameters: read references/commands.md When a user asks a data question: 1. First-time setup to enable intelligent search: For JSON schema details: read references/json-schema.mdoverview | Show all connected sources, tables, semantic status |
| connect csv/excel/mysql/postgres | Connect a data source |
| tables | List all tables with row counts |
| describe | Column details + sample data + semantics |
|
profile | Deep stats: null rate, distinct, min/max, quartiles |
|
init-semantic | Export schemas for semantic inference |
| update-semantic | Save semantic definitions (JSON from file or stdin) |
| search | Natural language â relevant tables + JOIN hints + metric SQL |
| join-paths | Discover JOIN paths between two tables |
| domains | Auto-discovered business domains |
| query | Execute read-only SQL |
| serve | Start MCP Server (stdio JSON-RPC) |Smart Query Pattern (Recommended)
lucid-skill search "å
ŗéŽč¯" â find relevant tables, suggestedJoins, suggestedMetricSqls
2. If multi-table: lucid-skill join-paths table_a table_b â get JOIN SQL
3. Compose SQL from the returned context
4. lucid-skill query "SELECT ..." â execute and present resultsSemantic Layer Setup
lucid-skill init-semantic # Export schemas
Analyze output â infer business meanings for each column
echo '{"tables":[...]}' | lucid-skill update-semantic - # Save semantics
Key Tips
overview first to check existing state.~/.lucid-skill/semantic_store/ (YAML, human-readable).~/.lucid-skill/ (override with LUCID_DATA_DIR env var).LUCID_EMBEDDING_ENABLED=true for better multilingual search (downloads ~460 MB model on first use).lucid-skill serve starts stdio JSON-RPC server for MCP integrations.Detailed References
update-semantic JSON format specificationđĄ Examples
lucid-skill connect csv /path/to/sales.csv # Connect data
lucid-skill overview # Check connected sources
lucid-skill search "æåēĻéåŽéĸčļåŋ" # Find relevant tables + suggested SQL
lucid-skill query "SELECT month, SUM(amount) FROM sales GROUP BY month" # Execute