返回顶部
l

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, 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 tab

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2.0.0
安全检测
已通过
159
下载量
0
收藏
概述
安装方式
版本历史

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 ```bash 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 <table>` | Column details + sample data + semantics | | `profile <table>` | Deep stats: null rate, distinct, min/max, quartiles | | `init-semantic` | Export schemas for semantic inference | | `update-semantic <file\|->` | Save semantic definitions (JSON from file or stdin) | | `search <query> [--top-k N]` | Natural language → relevant tables + JOIN hints + metric SQL | | `join-paths <a> <b>` | Discover JOIN paths between two tables | | `domains` | Auto-discovered business domains | | `query <sql> [--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](references/commands.md) ## Smart Query Pattern (Recommended) When a user asks a data question: 1. `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 results ## Semantic Layer Setup First-time setup to enable intelligent search: ```bash 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](references/json-schema.md) ## Key Tips - **Auto-restore**: Previous connections survive restarts. Always `overview` first 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 with `LUCID_DATA_DIR` env var). - **Embedding**: Set `LUCID_EMBEDDING_ENABLED=true` for better multilingual search (downloads ~460 MB model on first use). - **No credentials stored**: Database passwords are never written to disk. - **MCP mode**: `lucid-skill serve` starts stdio JSON-RPC server for MCP integrations. ## Detailed References - [references/commands.md](references/commands.md) — Full CLI command reference with all parameters - [references/json-schema.md](references/json-schema.md) — `update-semantic` JSON format specification - [references/workflow.md](references/workflow.md) — Multi-step workflow guides (first-time setup, returning sessions, multi-source)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 lucid-skill-1776277697 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 lucid-skill-1776277697 技能

通过命令行安装

skillhub install lucid-skill-1776277697

下载 Zip 包

⬇ 下载 lucid-skill v2.0.0

文件大小: 77.15 KB | 发布时间: 2026-4-17 15:16

v2.0.0 最新 2026-4-17 15:16
Python rewrite: TS→Python, DuckDB unified storage, zero native compilation, install via pip/uv

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部