enrich-context
यह क्या करती है
यह स्किल Wren semantic project में व्यावसायिक संदर्भ जोड़ने में मदद करती है, जैसे डेटाबेस schema में न दिखने वाली बातें: units, sentinel वैल्यू, डिफ़ॉल्ट filters और metric परिभाषाएँ। यह उन analysts के लिए है जो चाहते हैं कि AI व्यावसायिक सवालों के सही जवाब दे।
कब इस्तेमाल करें
- ✓जब AI गलत जवाब दे, क्योंकि units, जैसे cents या seconds, साफ़ नहीं हैं।
- ✓जब codes या sentinel वैल्यू, जैसे minus one, project को समझाने की ज़रूरत हो।
- ✓जब ARR, churn या daily active users जैसे standard metrics सभी के लिए एक जैसे तय करने हों।
Skill का लिंक
https://github.com/Canner/WrenAI/blob/main/core/wren/src/wren/skills_content/enrich-context/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Wren project को बताइए कि हमारे revenue कॉलम cents में हैं, status code minus one का मतलब unknown है, और डिफ़ॉल्ट रूप से deleted rows बाहर रखे जाएँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल व्यावसायिक दस्तावेज़ और मौजूदा project फ़ाइलें पढ़ती है, बदलावों का मसौदा बनाती है, हर बदलाव को validation से जाँचती है, और मौजूदा सामग्री बदलने के बजाय केवल नई सामग्री जोड़ती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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)
- 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.
- 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. - 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?".
- 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
- 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.
- 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
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
अक्सर पूछे जाने वाले सवाल
क्या यह मेरी मौजूदा परिभाषाएँ बदल देगी?
नहीं। स्किल कहती है कि वह केवल नई सामग्री जोड़ती है और संदिग्ध समस्याएँ सूची में देती है, ताकि आप उन्हें हाथ से ठीक करें।
क्या हर बदलाव की जाँच होती है?
हाँ। स्किल हर बदलाव के बाद project को validate करती है और जो बदलाव विफल हो, उसे वापस ले लेती है।
क्या यह व्यावसायिक metrics सुझा सकती है?
हाँ। स्किल ARR, churn, DAU और WAU जैसे नाम वाले metrics को समीक्षा के लिए cubes के रूप में सुझा सकती है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 18k
- रैंकिंग में स्थान
- #10725
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
dlt-connector
18kआपके एजेंट को HubSpot या Stripe जैसे SaaS टूल का डेटा स्थानीय DuckDB फ़ाइल में लोड करने में मदद करती है, ताकि Wren SQL विश्लेषण के लिए तैयार हो।
genbi
18kआपके एजेंट को Wren डेटा project को ब्राउज़र का साझा करने योग्य डैशबोर्ड बनाने और उसे आपके अपने hosting खाते पर deploy करने में मदद करती है।
generate-mdl
18kआपके एजेंट को डेटाबेस schema खंगालकर, types साफ़ करके और YAML फ़ाइलें बनाकर Wren semantic project तैयार करने में मदद करती है।
onboarding
18kआपके एजेंट को Wren Engine शुरू से सेट करने में मदद करती है: माहौल जाँचना, project बनाना, डेटाबेस जोड़ना और पहली क्वेरी चलाना।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।