genbi
Skill này làm gì
Skill này hướng dẫn xây dựng một ứng dụng phân tích kinh doanh trên trình duyệt từ dự án Wren và triển khai lên Vercel hoặc Cloudflare với một liên kết có thể chia sẻ. Skill dành cho nhà phân tích muốn chia sẻ góc nhìn dữ liệu với đồng nghiệp mà không cần đăng nhập vào cơ sở dữ liệu.
Khi nào nên dùng
- ✓Khi bạn muốn một bảng điều khiển hoặc ứng dụng báo cáo có thể chia sẻ được xây dựng từ dữ liệu Wren.
- ✓Khi bạn muốn chọn giữa bản chụp dữ liệu (snapshot) và kết nối trực tiếp đến kho dữ liệu.
- ✓Khi bạn muốn ứng dụng được triển khai lên tài khoản Vercel hoặc Cloudflare của riêng mình.
Liên kết skill
https://github.com/Canner/WrenAI/blob/main/core/wren/src/wren/skills_content/genbi/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 biến dự án doanh số Wren của tôi thành một ứng dụng bảng điều khiển có thể chia sẻ với bản chụp dữ liệu, rồi triển khai để tôi có một liên kết.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill để CLI tạo hướng dẫn xây dựng, agent của bạn viết ứng dụng trong thư mục riêng, sau đó ứng dụng được đăng ký, xác minh và triển khai để có liên kết công khai.
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 GenBI App — Agent Workflow Guide
This guide is served by the
wrenCLI (wren skills get genbi), so it always matches your installed wrenai version.
Turn a Wren context layer into a shareable GenBI app — from a natural-language request to a public URL in one conversation.
Division of labor: the CLI owns the authoritative build instruction (it
knows the live project facts and the pinned wren-core-wasm version) and all
deterministic state (index, verify, deploy). You — the agent — author the app
code by following the instruction. Never hand-write .wren/apps.yml.
Preconditions
- A Wren project is discoverable (
wren_project.ymlin cwd/ancestors, or ask for the path and pass-p). - The context layer exists. If
target/mdl.jsonis missing,wren genbi buildcompiles it implicitly — no separate step needed. wrenCLI ≥ the version that ships thegenbicommand group (wren genbi --helpworks).
Workflow
1. Resolve the app name and data mode
- App name: short kebab-case derived from the request (e.g.
sales-overview). - Data mode:
snapshot(default) — data is bundled with the app as parquet/duckdb and queried client-side. Fully serverless. Right for demos, reports, small data, and dlt-pipeline output.live— the app calls back to the user's warehouse/API at view time. Right for production-scale or always-fresh data. Requires a CORS-enabled endpoint and carries strict no-credentials rules.
- Ask the user ONLY if the choice is genuinely ambiguous.
2. Get the build instruction
wren genbi build <name> --prompt "<the user's request, verbatim>" --data-mode <mode>
For long or multi-line prompts use --prompt-file <file> or pipe to
--prompt -. The command prints the authoritative build instruction —
wasm wiring (pinned version, CDN load), the project's model/column inventory,
data-mode guidance, acceptance criteria, and the target folder. It writes no
app files — the only thing it may touch is target/mdl.json, which it compiles
first if missing (see Precondition 2).
3. Author the app
Follow the instruction exactly. Key conventions:
- Write everything under
apps/<name>/— never outside it. - Copy the compiled MDL into the app as
apps/<name>/mdl.json. - Load
wren-core-wasmfrom the CDN given in the instruction; never bundle the ~68MB binary. - snapshot: export the data the dashboard needs into
apps/<name>/data/as parquet (verifyrequires at least one.parquet/.duckdbasset). See Snapshot data export below for the recipe and where the data comes from. - live: write an endpoint-only connection config. NEVER inline credentials —
verifyscans for them (best-effort) anddeploygates onverify, but the rule is on you: a public static host exposes every shipped file. - Design the dashboard to actually answer the user's request: pick the right charts/tables for the question, not a generic template.
Snapshot data export
The CLI hands you the build instruction, but the snapshot bytes still have to be exported into the app folder — that step is yours.
Where the data comes from:
- DuckDB-backed project (incl. anything loaded by the
dlt-connectorskill — its pipelines always land in a.duckdbfile): the project's DuckDB file is your snapshot source. If the user is connecting SaaS data (HubSpot, Stripe, Salesforce, …) and has no project yet, run the SaaS→project flow first:wren skills get dlt-connector. Then come back here to ship it. - Warehouse-backed project (Postgres, BigQuery, Snowflake, …): run the
query/queries the dashboard needs through the MDL layer and write the result
to parquet. Keep snapshots small — snapshot mode is for demos/reports, not
full warehouse extracts; use
livemode for large or always-fresh data.
Recipe (DuckDB → parquet):
# from the project root; <db> is the project's DuckDB file (see wren_project.yml)
python - <<'PY'
import duckdb
con = duckdb.connect("<db>.duckdb", read_only=True)
con.execute(
"COPY (SELECT * FROM <table>) "
"TO 'apps/<name>/data/<table>.parquet' (FORMAT parquet)"
)
PY
Only export the columns/rows the dashboard uses. The compiled mdl.json you
copied in keeps the context layer intact regardless of how you bundle data.
4. Register and verify
wren genbi register <name> --data-mode <mode>
wren genbi verify <name>
If verify fails: fix the reported problems and
Câu hỏi thường gặp
Khác biệt giữa chế độ snapshot và live là gì?
Snapshot đóng gói dữ liệu cùng ứng dụng và chạy trên trình duyệt, còn chế độ live gọi ngược về kho dữ liệu mỗi khi có người xem.
Những nền tảng hosting nào được hỗ trợ?
Skill triển khai lên tài khoản Vercel hoặc Cloudflare của người dùng.
Ai viết mã ứng dụng?
Agent của bạn viết ứng dụng theo hướng dẫn xây dựng từ CLI, còn CLI xử lý việc lập chỉ mục, kiểm tra và triển khai.
Chi tiết
Mô tả gốc của tác giả
Turn a Wren project's context layer into a shareable, browser-side GenBI web app and deploy it to the user's Vercel or Cloudflare account. Orchestrates the full flow: `wren genbi build` returns a project-hydrated build instruction, the agent authors the app from scratch into apps/<name>/, then register → verify → deploy produce a shareable URL. Use this skill whenever the user wants to: build a dashboard from their Wren project, make a shareable analytics app, deploy their context layer as a web app, host a GenBI app on Vercel or Cloudflare Pages, or asks for a 'genbi app'.
repo: Canner/WrenAI
Độ phổ biến
- Sao GitHub
- 18k
- Vị trí xếp hạng
- #10726
- 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.
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.
onboarding
18kGiúp agent của bạn thiết lập Wren Engine từ đầu: kiểm tra môi trường, tạo dự án, kết nối cơ sở dữ liệu và chạy truy vấn đầu tiên.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.