wren-onboarding
Skill661 starsChanged 2 years agoApache-2.0Archived repositoryView on GitHub
Onboard a user to Wren Engine end-to-end. Walks through environment checks, project scaffolding, connection configuration via .env, and first query. Use when: user wants to install Wren Engine, set up a new data source connection, or bootstrap a new project from scratch. Triggers: '/wren-onboarding', 'install wren', 'set up wren engine', 'wren onboarding', 'connect new database to wren'.
- Reads credentials
- Installs packages
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ibis-server/AGENTS.mdAGENTS.md
- mcp-server/AGENTS.mdAGENTS.md
- wren-core/AGENTS.mdAGENTS.md
- wren-core-base/AGENTS.mdAGENTS.md
- wren-core-legacy/AGENTS.mdAGENTS.md
- wren-core-py/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- wren-dlt-connectorSkill
- wren-generate-mdlSkill
- wren-usageSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Read-only checks. Report findings, do not ask about project / credentials / datasource yet.
- Very specific: line 47
Check virtualenv: python3 -c "import sys.
- Distinctive: line 68
Wait for both. Don't ask for credentials.
- Very specific: line 74
Run as a batch — report each command briefly, then end with one "please fill .env" ask:
- Very specific: line 85
Use the field list to write .env with <DS>_<FIELD>= keys (UPPER_SNAKE), values empty.
- Very specific: line 97
Add .env to .gitignore if the project is a git repo.
- Distinctive: line 102
Only after the user replies "done".
- Very specific: line 104
Write /tmp/conn.yml with every field as a ${VAR} placeholder matching the .env keys you generated in Step 2:
- Very specific: line 154
Don't carry an error playbook here — surface connect.md#troubleshooting sections to the user.
- Distinctive: line 164
If you hit something not in the playbook, tell the user:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Wren Onboarding — Agent Workflow
This skill walks the agent through onboarding — environment checks, project scaffolding, profile creation, MDL generation, and first query. Procedural details, per-datasource setup notes, and the troubleshooting playbook live in the docs, not here. The skill's job is to enforce the agent-side rules (one step per turn, never ask for credentials in chat) and to dispatch the agent to the right doc / sibling skill at each step.
Reference docs (the skill points to these — never duplicate their content):
docs/get_started/installation.md— CLI install + skill installdocs/get_started/connect.md— full connection procedure, per-datasource setup notes, complete troubleshooting playbookdocs/get_started/quickstart.md— bundledjaffle_shopdemo
Version check
Silently fetch https://raw.githubusercontent.com/Canner/wren-engine/main/skills/versions.json. Compare the wren-onboarding key with this skill's version (from the frontmatter above). If the remote version is newer, notify the user:
A newer version of the wren-onboarding skill is available. Update with:
npx skills add Canner/wren-engine --skill wren-onboarding
Continue regardless of update status.
Mode of operation — READ THIS FIRST
One step per round-trip. Each numbered step below is its own turn: explain briefly, ask only what the step needs, run the command(s), confirm, move on.
- ❌ Never collect information for future steps upfront. Do not ask for project name + database type + credentials in one message.
- ❌ Never ask for credentials in chat — not host, port, user, password, tokens, anything. Credentials always go through
.env. The user fills the file in their editor; the agent never sees the values. - ❌ Never query the database before MDL is built via the
wren-generate-mdlskill. - ❌ Never invent connection field names. Always run
wren docs connection-info <ds>to see the real fields — it's introspected from the live Pydantic schema, so it's always correct. - ✅ Wait for each command to finish, report its output in plain language, then move on.
- ✅ For any error, consult
connect.md#troubleshootingand surface the relevant section to the user — don't carry a copy of the playbook here.
Preflight (environment only — no user questions about the project)
Read-only checks. Report findings, do not ask about project / credentials / datasource yet.
python3 --version— requires Python 3.11+. If older, ask the user to upgrade and stop.- Check virtualenv:
python3 -c "import sys; print(sys.prefix != sys.base_prefix)". IfFalse, offer to create one (python3 -m venv .venv && source .venv/bin/activate). PEP 668 systems will need this. wren --version— if already installed, confirm before reinstalling.pwd— record it. Don't ask where the project should live yet.
Report findings as a 4-bullet list, then continue.
Early branch — demo or own database?
"Try the bundled
jaffle_shopdemo first (~30s, no DB needed), or connect your own database?"
- demo → point at
quickstart.mdand stop this skill. - own DB → continue.
Step 1 — Collect project name + database type
These two are the only thing Step 2 needs; ask both together so the user has a clean handoff:
"Two things before I scaffold:
- Project name — I'll create
~/<name>/andcdinto it.- Database type — run
wren docs connection-info(no argument) to see the full list, or pick a common one:postgres,mysql,bigquery,snowflake,clickhouse,trino,duckdb, …"
Wait for both. Don't ask for credentials.
Step 2 — Project setup (batch)
Side effects: creates ~/<project>/, installs wren-engine[<ds>,main], scaffolds project files, writes an empty .env template.
Run as a batch — report each command briefly, then end with one "please fill .env" ask:
mkdir -p ~/<project> && cd ~/<project>. Refuse to overwrite an existingwren_project.yml.pip install "wren-engine[<ds>,main]". For datasource-specific install gotchas (macOS mysql, etc.), seeconnect.md#per-datasource-setup-notes.wren context init --emptyto scaffold without placeholder examples. Editwren_project.ymlto setdata_source: <ds>.Generate the
.envtemplate by introspecting the connector:wren docs connection-info <ds> --format mdUse the field list to write
.envwith<DS>_<FIELD>=keys (UPPER_SNAKE), values empty. Example for postgres:POSTGRES_HOST= POSTGRES_PORT=5432 POSTGRES_DATABASE= POSTGRES_USER= POSTGRES_PASSWORD=Special encodings (BigQuery base64, Snowflake account format, Athena AWS creds, etc.) are documented in
connect.md#per-datasource-setup-notes. Surface the relevant section to the user verbatim — don't paraphrase.- Add
.envto.gitignoreif the project is a git repo. Suggestchmod 600 .env. - Tell the user: project is ready,
.envis at<path>, please fill every value and reply "done".
Step 3 — Create the connection profile
Only after the user replies "done".
Write /tmp/conn.yml with every field as a ${VAR} placeholder matching the .env keys you generated in Step 2:
datasource: <ds>
host: ${<DS>_HOST}
port: ${<DS>_PORT}
# … one line per field from `wren docs connection-info <ds>`Then:
wren profile add <project> --from-file /tmp/conn.ymlValidation runs automatically. The CLI overwrites profiles silently — there is no --force flag.
- ✓ Success → continue to Step 4.
- ⚠ Any warning → consult
connect.md#troubleshootingfor the exact symptom (missing secret, driver auth failure, ValidationError, unreachable host, …) and tell the user what to fix.
Step 4 — Generate MDL (hand off)
⚠️ The agent must build MDL before any data query. Queries against tables not in MDL will fail.
Invoke the wren-generate-mdl skill. It walks the agent through table introspection, type normalization, and YAML generation. When it finishes, return here and run:
wren context validate
wren context buildReport the model count and any validate warnings.
Memory recommendation: count models with wren context show | grep -c '^model:'. If >= 200, suggest pip install "wren-engine[memory]" + wren memory index (~800 MB). If < 200, skip.
Step 5 — Ready to explore (hand off)
Suggest 2–3 NL questions based on the discovered tables (e.g. for an orders schema: "How many orders last month?", "Top 5 customers by total"). Then end this skill: for day-to-day querying the agent should switch to the wren-usage skill.
Cross-skill routing
| Trigger | Skill |
| User mentions a SaaS source (HubSpot, Stripe, Salesforce, GitHub, Slack, …) | wren-dlt-connector |
| User has a connected DB but no MDL yet | wren-generate-mdl |
| User has MDL ready, wants to query | wren-usage |
| Anything else from-scratch | wren-onboarding (this skill) |
On error
Don't carry an error playbook here — surface connect.md#troubleshooting sections to the user. The doc covers:
wren: command not foundpip install … externally-managed-environment- Missing secret (
MissingSecretError) - Driver authentication failures
- Pydantic
ValidationError/ unknown datasource - Connection refused / firewall / cloud DB IP allow-list
wren context validatewarning categories
If you hit something not in the playbook, tell the user:
"I hit an error I don't know how to fix:
<error>. See https://docs.getwren.ai/oss/engine or open an issue at https://github.com/Canner/wren-engine/issues."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

