Lucid Skill
/install lucid-skill
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 |
|---|---|
overview |
Show all connected sources, tables, semantic status |
connect csv/excel/mysql/postgres |
Connect a data source |
tables |
List all tables with row counts |
describe \x3Ctable> |
Column details + sample data + semantics |
profile \x3Ctable> |
Deep stats: null rate, distinct, min/max, quartiles |
init-semantic |
Export schemas for semantic inference |
update-semantic \x3Cfile|-> |
Save semantic definitions (JSON from file or stdin) |
search \x3Cquery> [--top-k N] |
Natural language → relevant tables + JOIN hints + metric SQL |
join-paths \x3Ca> \x3Cb> |
Discover JOIN paths between two tables |
domains |
Auto-discovered business domains |
query \x3Csql> [--format json|md|csv] |
Execute read-only SQL |
serve |
Start MCP Server (stdio JSON-RPC) |
For full command reference with all parameters: read references/commands.md
Smart Query Pattern (Recommended)
When a user asks a data question:
lucid-skill search "关键词"— find relevant tables, suggestedJoins, suggestedMetricSqls- If multi-table:
lucid-skill join-paths table_a table_b— get JOIN SQL - Compose SQL from the returned context
lucid-skill query "SELECT ..."— execute and present results
Semantic Layer Setup
First-time setup to enable intelligent search:
lucid-skill init-semantic # Export schemas
# Analyze output → infer business meanings for each column
echo '{"tables":[...]}' | lucid-skill update-semantic - # Save semantics
For JSON schema details: read references/json-schema.md
Key Tips
- Auto-restore: Previous connections survive restarts. Always
overviewfirst to check existing state. - Read-only: Only SELECT allowed. INSERT/UPDATE/DELETE/DROP are blocked.
- Semantic files: Stored in
~/.lucid-skill/semantic_store/(YAML, human-readable). - Data directory:
~/.lucid-skill/(override withLUCID_DATA_DIRenv var). - Embedding: Set
LUCID_EMBEDDING_ENABLED=truefor better multilingual search (downloads ~460 MB model on first use). - No credentials stored: Database passwords are never written to disk.
- MCP mode:
lucid-skill servestarts stdio JSON-RPC server for MCP integrations.
Detailed References
- references/commands.md — Full CLI command reference with all parameters
- references/json-schema.md —
update-semanticJSON format specification - references/workflow.md — Multi-step workflow guides (first-time setup, returning sessions, multi-source)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lucid-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/lucid-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Lucid Skill 是什么?
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 223 次。
如何安装 Lucid Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lucid-skill」即可一键安装,无需额外配置。
Lucid Skill 是免费的吗?
是的,Lucid Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Lucid Skill 支持哪些平台?
Lucid Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Lucid Skill?
由 wenkang-xie(@wenkang-xie)开发并维护,当前版本 v2.0.0。