onboarding
它能做什么
这个技能带你安装 Wren Engine、创建项目、通过配置文件连接数据源,并运行第一条查询。适合希望把数据库连接到 Wren 的新用户。
适用场景
- ✓当你想第一次安装并设置 Wren Engine 时。
- ✓当你需要把一个新数据库连接到已有的 Wren 设置中时。
- ✓当你想试用内置的示例项目,并看到第一条查询运行成功时。
技能链接
https://github.com/Canner/WrenAI/blob/main/core/wren/src/wren/skills_content/onboarding/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我安装 Wren Engine,把它连接到我们的 MySQL 数据库,并运行一条第一查询,确认它能正常工作。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能一次完成一步:检查环境、安装命令行工具、通过环境设置添加连接配置文件,并用一条查询测试项目。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Wren Onboarding — Agent Workflow
This skill walks the agent through onboarding — environment checks, project scaffolding, profile creation, MDL generation, and first query. Procedural details, per-datasource setup notes, and the troubleshooting playbook live in the docs, not here. The skill's job is to enforce the agent-side rules (one step per turn, never ask for credentials in chat) and to dispatch the agent to the right doc / sibling skill at each step.
Reference docs (the skill points to these — never duplicate their content):
docs/core/get_started/installation.md— CLI install + skill installdocs/core/guides/connect.md— full connection procedure, per-datasource setup notes, complete troubleshooting playbookdocs/core/get_started/quickstart.md— bundledjaffle_shopdemo
Mode of operation — READ THIS FIRST
One step per round-trip. Each numbered step below is its own turn: explain briefly, ask only what the step needs, run the command(s), confirm, move on.
- ❌ Never collect information for future steps upfront. Do not ask for project name + database type + credentials in one message.
- ❌ Never ask for credentials in chat — not host, port, user, password, tokens, anything. Credentials always go through
.env. The user fills the file in their editor; the agent never sees the values. - ❌ Never query the database before MDL is built via
wren skills get generate-mdl. - ❌ Never invent connection field names. Always run
wren docs connection-info <ds>to see the real fields — it's introspected from the live Pydantic schema, so it's always correct. - ✅ Wait for each command to finish, report its output in plain language, then move on.
- ✅ For any error, consult
connect.md#troubleshootingand surface the relevant section to the user — don't carry a copy of the playbook here.
Preflight (environment only — no user questions about the project)
Read-only checks. Report findings, do not ask about project / credentials / datasource yet.
python3 --version— requires Python 3.11+. If older, ask the user to upgrade and stop.- Check virtualenv:
python3 -c "import sys; print(sys.prefix != sys.base_prefix)". IfFalse, offer to create one (python3 -m venv .venv && source .venv/bin/activate). PEP 668 systems will need this. wren --version— if already installed, confirm before reinstalling.pwd— record it. Don't ask where the project should live yet.
Report findings as a 4-bullet list, then continue.
Early branch — demo or own database?
"Try the bundled
jaffle_shopdemo first (~30s, no DB needed), or connect your own database?"
- demo → point at
quickstart.mdand stop this skill. - own DB → continue.
Step 1 — Collect project name + database type
These two are the only thing Step 2 needs; ask both together so the user has a clean handoff:
"Two things before I scaffold:
- Project name — I'll create
~/<name>/andcdinto it.- Database type — run
wren docs connection-info(no argument) to see the full list, or pick a common one:postgres(use for Aurora PostgreSQL),mysql(use for Aurora MySQL),bigquery,snowflake,clickhouse,trino,duckdb, …"
Wait for both. Don't ask for credentials.
Step 2 — Workspace + .env setup (batch)
Side effects: creates ~/<project>/, installs wrenai[<ds>,main], generates an empty .env template. The project files (wren_project.yml etc.) come later in Step 3.5 — at this point we only have a directory with credentials waiting to be filled.
Run as a batch — report each command briefly, then end with one "please fill .env" ask:
mkdir -p ~/<project> && cd ~/<project>.pip install "wrenai[<ds>,main]". For datasource-specific install gotchas (macOS mysql, etc.), seeconnect.md#per-datasource-setup-notes.Generate the
.envtemplate by introspecting the connector:wren docs connection-info <ds> --format mdUse the field list to write
.envwith<DS>_<FIELD>=keys (UPPER_SNAKE), values empty. Example for po
常见问题
它会在聊天中索要我的数据库密码吗?
不会。该技能说明凭据应通过环境设置输入,绝不在对话中收集。
为什么一次只做一步?
该技能逐步进行,使每一部分都能在下一步开始之前得到检查。
有可以先试用的演示吗?
有。该技能指向内置的演示项目,即 jaffle shop 示例,用来测试设置。
详情
作者的原始描述
Onboard a user to Wren Engine end-to-end. Walks through environment checks, project scaffolding, connection configuration via .env, and first query. Use when: user wants to install Wren Engine, set up a new data source connection, or bootstrap a new project from scratch. Triggers: '/wren-onboarding', 'install wren', 'set up wren engine', 'wren onboarding', 'connect new database to wren'.
repo: Canner/WrenAI
热度
- GitHub 星标
- 18k
- 排名
- #10728
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
dlt-connector
18k帮你的智能体把 HubSpot、Stripe 等 SaaS 工具的数据加载到本地 DuckDB 文件中,以便用 Wren SQL 进行分析。
enrich-context
18k帮你的智能体为 Wren 数据项目补充业务含义,例如单位、枚举值、同义词和标准指标。
genbi
18k帮你的智能体把 Wren 数据项目转化为可分享的浏览器仪表板,并部署到用户自己的托管账户。
generate-mdl
18k帮你的智能体通过探索数据库结构、规范化类型并生成 YAML 文件,来创建 Wren 语义项目。