技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
wren-ai【数据与研究】Use WrenAI and Wren Engine for governed semantic SQL, MDL projects, data-context memory, agent workflow guides, GenBI dashboards, MCP tools, browser WASM queries, framework SDKs, and repository development.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill for WrenAI, the wrenai Python distribution, the wren CLI,
wren_core, wren-langchain, wren-pydantic, or @wrenai/wren-core-wasm.
It covers the semantic layer that turns SQL written against modeled objects into
target-database SQL, plus the project context and agent-facing workflows around
it.
pip install wrenai
# Add one datasource extra only when needed, for example:
pip install "wrenai[postgres]"
wren --version
wren --help
wren_project.yml and
target/mdl.json exist. Build the target after changing source YAML:
wren context validate
wren context build
sub-skills/cli-projects/SKILL.md.WrenEngine: read sub-skills/query-engine/SKILL.md.knowledge/, query memory, semantic retrieval, recall,
stored NL→SQL pairs, or context enrichment: read
sub-skills/memory-knowledge/SKILL.md.wren skills, agent onboarding/generation guides, wren ask, dlt/SaaS
ingestion, or authoring a CLI-served Wren guide: read
sub-skills/agent-workflows/SKILL.md.wren serve mcp, MCP tools, or
browser-side WebAssembly: read sub-skills/genbi-mcp-wasm/SKILL.md.WrenToolkit, or agent-tool contracts:
read sub-skills/sdk-integrations/SKILL.md.wren_core, Rust/PyO3/WASM maintenance, local engine builds, tests, or
contributor policy: read sub-skills/engine-development/SKILL.md.knowledge/,
and the compiled target/mdl.json serve different roles. Do not confuse the
project-level catalog/schema namespace with a model's physical database
table_reference.${ENV_VAR} placeholders; do
not put credentials in project YAML, shell-history flags, agent prompts, or
static GenBI files.wren dry-plan first; use wren dry-run only when a live database validation
is intended.wren cube query for covered aggregation questions. It constrains
measure, dimension, time-grain, and filter choices instead of requiring an
agent to invent GROUP BY and date logic.knowledge/sql/ as the source of truth for accepted NL→SQL pairs.
A LanceDB index is derived state and may be rebuilt; do not delete source
knowledge just to repair the index.wrenai[all] or a database
service is installed.references/overview.md for the architecture and package map before
crossing CLI, SDK, MCP, and WASM boundaries.references/install-and-extras.md when choosing a public install command
or diagnosing optional dependencies.references/troubleshooting.md for cross-cutting installation, profile,
project-discovery, dependency, and credential issues.references/repo-provenance.md before relying on this skill for a new
checkout or deciding whether to refresh it.scripts/check_wren_environment.py for a safe public import/CLI check;
it does not connect to a database or write a project.wren query against an unreviewed production profile merely to
discover schema. Start with project inspection, wren context show, memory
context, or a dry plan.--connection-info, GenBI deploy arguments, or
static app files when an environment-backed profile is available.engine-development.