leoyishou/personal-ai-company/lakehouse
Claude Code and agent skill by leoyishou/personal-ai-company
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
本地 Lakehouse 分析引擎 - 基于 DuckDB 的 OLAP 查询,支持 Parquet/CSV 文件分析,可从 Supabase CDC 同步数据。
Install
npx vskill@latest install leoyishou/personal-ai-company/lakehouseSKILL.md
The same SKILL.md was published earlier as leoyishou/personal-ai-company/lakehouse.
Lakehouse 分析引擎
本地大数据分析层,基于 DuckDB 构建。与 Supabase(OLTP)互补,专注于 OLAP 分析场景。
使用方式
架构
数据目录
| 路径 | 说明 | |
|---|---|---|
~/.claude/services/lakehouse/data/lakehouse.db | DuckDB 数据库文件 | |
~/.claude/services/lakehouse/data/parquet/ | Parquet 数据文件 | |
~/.claude/services/lakehouse/data/csv/ | CSV 数据文件 |
执行流程
查询流程
- 解析命令 - 识别是查询、同步还是导入
- 加载 DuckDB MCP - 使用
mcp__duckdb__*工具集 - 执行查询 - 通过 MCP 执行 SQL
- 格式化输出 - 表格或 JSON 形式展示结果
同步流程(/lake sync)
- 从 Supabase 导出数据(使用
mcp__supabase__execute_sql) - 转换为 Parquet 格式
- 导入 DuckDB
导入流程(/lake import)
支持直接导入:
- Parquet 文件:
/lake import ~/data/events.parquet - CSV 文件:
/lake import ~/data/users.csv - 目录:
/lake import ~/data/exports/(批量导入)
示例
基础查询
复杂分析
数据导入
DuckDB MCP 工具
通过 MCP 调用 DuckDB:
| 工具 | 说明 | |
|---|---|---|
mcp__duckdb__read_query | 执行 SELECT 查询 | |
mcp__duckdb__write_query | 执行写入操作(INSERT/CREATE) | |
mcp__duckdb__list_tables | 列出所有表 | |
mcp__duckdb__describe_table | 显示表结构 |
与 Supabase 的关系
| 场景 | 推荐工具 | |
|---|---|---|
| 实时查询单条记录 | /db(Supabase) | |
| 简单 CRUD 操作 | /db(Supabase) | |
| 大规模聚合分析 | /lake(DuckDB) | |
| 历史数据分析 | /lake(DuckDB) | |
| 跨表复杂 JOIN | /lake(DuckDB) | |
| 文件数据分析 | /lake(DuckDB) |
配置
MCP 配置(~/.claude.json)
数据库初始化
首次使用时自动创建数据库。如需手动初始化:
注意事项
- DuckDB 查询默认无行数限制(与 Supabase 的 1000 条不同)
- Parquet 格式推荐用于大数据量场景
- 复杂分析优先在 DuckDB 端完成聚合,避免传输大量原始数据
- 同步操作会覆盖目标表,注意数据备份
Phase 2: CDC 实时同步(待实现)
计划使用 OLake 实现 PostgreSQL → Parquet 的 CDC 同步:
架构:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude-global/skills/lakehouse/skill.md
Popularity
- Repository stars
- 29
- Repository forks
- 8
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leoyishou/personal-ai-company/lakehouse)