본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트18k · #10725

enrich-context

하는 일

이 스킬은 Wren 시맨틱 프로젝트에 업무 맥락을 더하는 방법을 안내합니다. 단위, 특수 값, 기본 필터, 지표 정의처럼 데이터베이스 스키마에 드러나지 않는 것을 다룹니다. AI가 업무 질문에 올바르게 답하기를 원하는 분석가를 위한 스킬입니다.

사용하는 경우

  • ✓센트나 초 같은 단위가 불분명해서 AI가 잘못 답할 때.
  • ✓마이너스 1 같은 코드나 특수 값을 프로젝트에 설명해야 할 때.
  • ✓ARR, 이탈률, 일간 활성 사용자 같은 표준 지표를 모두에게 정의해야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Canner/WrenAI/blob/main/core/wren/src/wren/skills_content/enrich-context/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 매출 열은 센트 단위이고, 상태 코드 마이너스 1은 알 수 없음을 뜻하며, 삭제된 행은 기본적으로 제외된다는 것을 Wren 프로젝트에 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 업무 문서와 기존 프로젝트 파일을 읽고, 추가할 내용을 초안으로 만들고, 변경마다 검증하며, 기존 내용을 고치지 않고 추가만 합니다.

기술 내용 (원본 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)

  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
자주 묻는 질문

기존 정의를 바꾸나요?

아니요. 스킬은 새 내용만 추가하며, 의심되는 문제는 목록으로 만들어 사용자가 직접 고치도록 한다고 말합니다.

각 변경은 검증되나요?

네. 스킬은 변경할 때마다 프로젝트를 검증하고, 실패한 변경은 되돌립니다.

비즈니스 지표를 제안할 수 있나요?

네. 스킬은 ARR, 이탈률, DAU, WAU 같은 이름 있는 지표를 검토용 큐브로 제안할 수 있습니다.

상세 정보

작성자의 원본 설명

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
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬