技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
cli-projects【数据与研究】Guide Wren CLI project setup, MDL authoring, profiles, connection fields, schema validation, build lifecycle, dbt or OSI import, and SQL type normalization.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task creates, repairs, migrates, or inspects a Wren project; configures a profile; needs MDL YAML; imports dbt/OSI material; or needs the exact fields for a datasource.
wren_project.yml. Commands
discover it from an explicit path, WREN_PROJECT_HOME, the current directory
and its parents, then a configured default project.wren context show
wren profile list
wren docs connection-info <datasource>
wren context init --path my-project
wren context init --from-mdl previous-mdl.json --path my-project
wren context init --from-osi semantic_model.yaml --data-source postgres --path my-project
For dbt, route through the documented wren profile import dbt and
wren context import dbt commands after dbt artifacts are present.wren context validate --path my-project
wren context build --path my-project
wren profile add analytics --from-file connection.yml
wren context set-profile analytics --path my-project
wren utils parse-type --type "character varying(255)" --dialect postgres
| Need | Use |
|---|---|
| Project metadata and semantic namespace | wren_project.yml |
| Physical or SQL-defined semantic object | models/<name>/metadata.yml |
| Reusable logical query | views/<name>/metadata.yml |
| Named aggregation API | cubes/<name>/metadata.yml |
| Inter-model joins | relationships.yml |
| Durable business rules and confirmed query examples | knowledge/ |
| Derived engine input | target/mdl.json |
| Environment-specific connection | profile plus .env values |
Do not copy a physical database catalog/schema into the project-level
catalog/schema. Project values are Wren's namespace; a model's
table_reference identifies the physical source object.
WrenEngine, read
../query-engine/SKILL.md.../memory-knowledge/SKILL.md.../agent-workflows/SKILL.md.references/project-lifecycle.md for the lifecycle order and migration
decisions.references/mdl-schema.md before writing models, views, relationships,
or cubes.references/profiles-and-connections.md before creating a profile or
resolving ${ENV_VAR} values.references/troubleshooting.md when validation, project discovery, or
connection setup fails.scripts/validate_wren_project.py --project <directory> for a safe
structural preflight. It does not build, query, or change the project.wren docs connection-info to guessing profile field names..env or process environment for secret values. Do not send credentials
in chat or place them in committed project files.wren context upgrade --dry-run is the first step for a schema-version
migration; upgrades are forward-only.