Langsung ke konten
Skillpedia
Analisis & spreadsheet18k Β· #10726

genbi

Fungsinya

Skill ini memandu pembuatan aplikasi business intelligence berbasis peramban dari proyek Wren dan men-deploy-nya ke Vercel atau Cloudflare dengan tautan yang bisa dibagikan. Skill ini untuk analis yang ingin membagikan tampilan data kepada rekan kerja tanpa login basis data.

Kapan dipakai

  • βœ“Saat Anda menginginkan dasbor atau aplikasi laporan yang bisa dibagikan dari data Wren Anda.
  • βœ“Saat Anda ingin memilih antara snapshot data dan koneksi langsung ke gudang data.
  • βœ“Saat Anda ingin aplikasi di-deploy ke akun Vercel atau Cloudflare Anda sendiri.

Link skill

https://github.com/Canner/WrenAI/blob/main/core/wren/src/wren/skills_content/genbi/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/Canner/WrenAI/blob/main/core/wren/src/wren/skills_content/genbi/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œUbah proyek penjualan Wren saya menjadi aplikasi dasbor yang bisa dibagikan dengan snapshot data, lalu deploy agar saya mendapat tautannya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini membuat CLI menghasilkan instruksi pembangunan, agent Anda menulis aplikasi di folder sendiri, lalu aplikasi didaftarkan, diverifikasi, dan di-deploy untuk menghasilkan tautan publik.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Wren GenBI App β€” Agent Workflow Guide

This guide is served by the wren CLI (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

  1. A Wren project is discoverable (wren_project.yml in cwd/ancestors, or ask for the path and pass -p).
  2. The context layer exists. If target/mdl.json is missing, wren genbi build compiles it implicitly β€” no separate step needed.
  3. wren CLI β‰₯ the version that ships the genbi command group (wren genbi --help works).

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-wasm from the CDN given in the instruction; never bundle the ~68MB binary.
  • snapshot: export the data the dashboard needs into apps/<name>/data/ as parquet (verify requires at least one .parquet/.duckdb asset). See Snapshot data export below for the recipe and where the data comes from.
  • live: write an endpoint-only connection config. NEVER inline credentials β€” verify scans for them (best-effort) and deploy gates on verify, 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-connector skill β€” its pipelines always land in a .duckdb file): 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 live mode 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

Pertanyaan umum

Apa perbedaan mode snapshot dan live?

Snapshot menyertakan data bersama aplikasi dan menjalankannya di peramban, sedangkan mode live memanggil kembali gudang data setiap kali dilihat.

Platform hosting apa yang didukung?

Skill ini melakukan deployment ke akun Vercel atau Cloudflare milik pengguna.

Siapa yang menulis kode aplikasinya?

Agent Anda menulis aplikasi dari instruksi pembangunan CLI, sedangkan CLI menangani pengindeksan, pemeriksaan, dan deployment.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
18k
Peringkat
#10726
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa