Langsung ke konten
Skillpedia
Analisis & spreadsheet18k Β· #10725

enrich-context

Fungsinya

Skill ini memandu penambahan konteks bisnis ke proyek semantik Wren, mencakup hal-hal yang tidak ditampilkan skema basis data, seperti satuan, nilai penanda, filter default, dan definisi metrik. Skill ini untuk analis yang ingin AI menjawab pertanyaan bisnis dengan benar.

Kapan dipakai

  • βœ“Saat AI memberi jawaban yang salah karena satuan, seperti sen atau detik, tidak jelas.
  • βœ“Saat kode atau nilai penanda seperti minus satu perlu dijelaskan kepada proyek.
  • βœ“Saat metrik standar seperti ARR, churn, atau pengguna aktif harian perlu didefinisikan untuk semua orang.

Link skill

https://github.com/Canner/WrenAI/blob/main/core/wren/src/wren/skills_content/enrich-context/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/enrich-context/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

β€œAjari proyek Wren bahwa kolom pendapatan kami dalam satuan sen, bahwa kode status minus satu berarti tidak diketahui, dan bahwa baris yang dihapus harus dikecualikan secara default.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini membaca dokumen bisnis dan berkas proyek yang ada, menyusun tambahan, memeriksa setiap perubahan dengan validasi, dan hanya menambahkan ke konten yang sudah ada alih-alih mengeditnya.

Konten teknis (SKILL.md asli)

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

Wren Enrich Context β€” Fill the Business-Context Gap

This skill exists because most business context never lives in a DB schema β€” it lives in handbooks, glossaries, finance reports, support playbooks, code comments, Slack rules-of-thumb. The agent reads those raw artifacts, finds what's missing from the Wren project, and either grills the user one question at a time (grill mode) or applies its best inferences directly and hands over an audit (auto-pilot mode) before writing back. The output lands in the sinks each project already has β€” MDL, cubes/, knowledge/rules/, and knowledge/sql/ β€” no new artifact, no new tooling.

Hard rules β€” READ FIRST

Universal (apply to both modes)

  1. Only add, never modify existing. If you find an existing MDL description / relationship / rule that looks wrong, do not edit it. Surface it on the "please fix manually" list shown in Step 9.
  2. Every MDL edit must validate. Right after any MDL YAML change, run wren context validate. If it fails, revert that single change and feed the error back. Never leave a project in an invalid state.
  3. Pre-draft every proposal. Whether you're showing the draft to the user (grill) or applying it directly (auto-pilot), generate the concrete content β€” never lazy-ask "what should the description say?".
  4. Be explicit about confidence. In grill mode, open Lane 3 inference questions with "I'm guessing β€” ". In auto-pilot, tag every Lane 3 inference and partial Lane 2 match in the Step 9 audit with confidence (high / med / low) and source.

Grill mode only

  1. One question at a time. Grill relentlessly. Walk every gap top-down, resolve one decision before moving to the next. Provide a recommended answer for every question.
  2. Skip is final for this session. No pending queue, no nagging next round. If the user wants to revisit, they re-run the skill.

Auto-pilot mode only

  1. Drop into grill for three cases. Always interrupt auto-pilot and ask the user when:

    • (a) Lane 2 conflict β€” raw and current MDL disagree.
    • (b) High-blast-radius proposal (any lane) β€” new cube, new view, new relationship, or new MDL metric/calculated column. These become public artifacts visible to every future agent session, so blast radius doesn't depend on whether the trigger was raw evidence (Lane 2) or inference (Lane 3).
    • (c) Lane 2 routing ambiguity β€” you can't confidently pick a sink (MDL / knowledge/rules/ / knowledge/sql/ / cubes/).

    Everything else: apply directly and log to the audit list.

Step 0 β€” Mode selection (before anything else)

Before touching the project or reading any file, ask the user which mode to run in. Lock the choice for the whole session β€” no mid-session switching; the user re-runs to change.

Two modes for this session:

a) Grill mode β€” I walk every gap with you, one question at a time, proposing a draft and waiting for your accept / edit / skip. You stay in the driver's seat. Best when the raw material is sensitive, when you want to learn what I don't know about your project, or when you'd rather review than re-do.

b) Auto-pilot mode β€” I read raw + current context, make my best inferences, and apply them. I'll only stop to grill you on (1) conflicts between raw and existing MDL and (2) high-blast-radius additions like new metrics, views, or relationships. The session ends with a full diff + confidence-tagged inference list for you to audit.

Which? (a / b)

Remember the choice as MODE = grill | autopilot and use it to branch Steps 6 and 9.

Preflight

Step 1 β€” Choose the Wren project

Always ask the user which project to enrich before doing anything else β€” never assume cwd. A user can have several Wren projects and an ambient ~/.wren profile that doesn't match the one they want to augment.

Offer concrete hints in the question so the user can answer in one round-trip:

# Hint 1 β€” does cwd look like a project?
test -f wren_project.yml && pwd

# Hint 2 β€” does ~/.wren/config.yml point at a default project?
grep -E '^project_path:' ~/.wren/config.yml 2>/dev/null

Then ask:

Which Wren project do you want me to augment? a) $PWD (current directory) ← if Hint 1 matched b) <path from ~/.wren/config.yml> ← if Hint 2 matched c) something else β€” paste the absolute path

After the user answers, lock the path in for the whole session:

cd <chosen-path>
test -f wren_project.yml || {
  echo "Err
Pertanyaan umum

Apakah definisi saya yang sudah ada akan berubah?

Tidak. Skill ini menyatakan hanya menambahkan konten baru dan mendaftar masalah yang diduga untuk Anda perbaiki sendiri.

Apakah setiap perubahan diperiksa?

Ya. Skill ini memvalidasi proyek setelah setiap perubahan dan membatalkan perubahan yang gagal.

Bisakah skill ini mengusulkan metrik bisnis?

Bisa. Skill ini dapat mengusulkan metrik bernama seperti ARR, churn, DAU, dan WAU sebagai cube untuk ditinjau.

Detail

Deskripsi asli dari pembuat

Augment a Wren project with business context that DB schema cannot carry β€” enum value meanings, units (USD vs cents, ms vs sec), NULL semantics, magic sentinels (-1 = unknown), soft-delete default filters, business synonyms, time-grain / TZ conventions, cross-system identifiers, currency rules, canonical-table preferences, AND named aggregation metrics (ARR, churn, DAU, WAU, NRR) proposed as cubes. Runs in one of two modes selected at session start: `grill` (one question at a time, user-driven) or `auto-pilot` (agent infers and applies, escalates only on conflicts and high-blast-radius additio

repo: Canner/WrenAI

Popularitas

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

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa