onboarding
Skill này làm gì
Skill này hướng dẫn cài đặt Wren Engine, tạo dự án, kết nối nguồn dữ liệu qua một hồ sơ cấu hình (profile) và chạy truy vấn đầu tiên. Skill dành cho người dùng mới muốn kết nối cơ sở dữ liệu với Wren.
Khi nào nên dùng
- ✓Khi bạn muốn cài đặt Wren Engine và thiết lập lần đầu.
- ✓Khi bạn cần kết nối một cơ sở dữ liệu mới với một thiết lập Wren đang có.
- ✓Khi bạn muốn thử dự án demo đi kèm và xem một truy vấn đầu tiên chạy được.
Liên kết skill
https://github.com/Canner/WrenAI/blob/main/core/wren/src/wren/skills_content/onboarding/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy giúp tôi cài đặt Wren Engine, kết nối với cơ sở dữ liệu MySQL của chúng tôi và chạy một truy vấn đầu tiên để đảm bảo nó hoạt động.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đi từng bước một: kiểm tra môi trường, cài đặt dòng lệnh, thêm profile kết nối qua cài đặt môi trường và kiểm thử dự án bằng một truy vấn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có hỏi mật khẩu cơ sở dữ liệu trong khung chat không?
Không. Skill nói thông tin xác thực phải được nhập qua thiết lập môi trường, không bao giờ thu thập trong cuộc trò chuyện.
Vì sao làm từng bước một?
Skill làm theo từng bước để mỗi phần có thể được kiểm tra trước khi bước tiếp theo bắt đầu.
Có demo nào để thử trước không?
Có. Skill trỏ đến một dự án demo đi kèm, ví dụ jaffle shop, để kiểm tra thiết lập.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 18k
- Vị trí xếp hạng
- #10728
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
dlt-connector
18kGiúp agent của bạn tải dữ liệu từ các công cụ SaaS như HubSpot hoặc Stripe vào một file DuckDB cục bộ, sẵn sàng cho phân tích SQL với Wren.
enrich-context
18kGiúp agent của bạn bổ sung ý nghĩa kinh doanh cho một dự án dữ liệu Wren, như đơn vị đo, giá trị liệt kê, từ đồng nghĩa và các chỉ số chuẩn.
genbi
18kGiúp agent của bạn biến dự án Wren thành bảng điều khiển trên trình duyệt có thể chia sẻ và triển khai lên tài khoản hosting của bạn.
generate-mdl
18kGiúp agent của bạn tạo dự án ngữ nghĩa Wren bằng cách khám phá lược đồ cơ sở dữ liệu, chuẩn hóa kiểu dữ liệu và sinh các file YAML.
Skill tương tự
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
clickhouse-io
280kGiúp agent của bạn tối ưu truy vấn và schema trong ClickHouse theo thực hành tốt nhất cho phân tích dữ liệu hiệu năng cao khi truy vấn chậm.
scientific-db-pubmed-database
280kGiúp agent của bạn tìm bài báo khoa học trong lĩnh vực y sinh. Hữu ích cho nghiên cứu cần thông tin y khoa cụ thể.