微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🧩

dbt 转换模式

dbt-transformation-patterns · v
作者 wshobson 公开目录收录

简介

精通 dbt 分析工程:模型组织、测试、文档与增量策略。适用于构建数据转换、创建模型或落地分析工程最佳实践。

原始描述

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

通过你的 Agent 添加

安装目录:dbt-transformation-patterns/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/dbt-transformation-patterns/
Codex CLI~/.codex/skills/dbt-transformation-patterns/
DeepSeek Harness~/.agents/skills/dbt-transformation-patterns/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: dbt-transformation-patterns description: "Apply dbt transformation patterns in reproducible local data workflows with version-aware APIs, explicit assumptions, and validation. Use when the user chooses dbt transformation patterns or its strengths fit the task."

dbt Transformation Patterns

Use this Skill to produce a bounded, verifiable dbt Transformation Patterns outcome. Preserve the user's chosen stack, source material, and authorization boundaries.

Read the SandBase API map only when the task genuinely needs an external data source or generative model.

Workflow

  1. Inspect the available files, runtime, versions, inputs, and existing conventions before deciding what to change.
  2. Restate the requested outcome, constraints, acceptance checks, and any assumption that could change the result.
  3. Produce the smallest complete implementation, analysis, or artifact that satisfies those checks.
  4. Verify the real output with appropriate tests, previews, calculations, or source comparison; do not infer success from file creation alone.
  5. Return the deliverable, evidence of validation, material assumptions, and unresolved limitations.

Quality gates

  • Inspect shapes, types, units, missing values, sampling, target leakage, and train/test boundaries before modeling or transformation.
  • Pin or record relevant library versions, random seeds, parameters, and environment assumptions for reproducibility.
  • Validate against a baseline or independent calculation and report diagnostics, uncertainty, failure modes, and resource use.

Focus checks

  • Separate sources, staging, intermediate, and marts; define grain and contracts, test keys and relationships, and make incremental predicates and unique-key behavior explicit.

SandBase boundary

Keep the core dbt Transformation Patterns work local. Use SandBase only for an explicitly requested external dataset or model inference step that is not part of the local analysis.

  1. Call sandbase_discover with a short capability query.
  2. Call sandbase_inspect for viable candidates and compare the live schema, coverage, limits, output, execution mode, and price.
  3. Prefer a dedicated tool or API the user already has. Send only the minimum necessary data.
  4. Before any paid call, show the endpoint, important arguments, current unit price, call count, and total estimate or uncertainty, then obtain confirmation.
  5. Use sandbase_account before an approved multi-call batch and call sandbase_run only with current schema-defined arguments.
  6. Poll asynchronous work with sandbase_run_get using the same run ID; never resubmit merely because it is pending.
  7. Use sandbase_runs only to recover status or reconcile observed cost.

If SandBase is unavailable, continue with local work and authorized sources when possible. Do not silently switch providers, fabricate external results, or claim a generation or retrieval succeeded.

Handoff

Provide the completed artifact or findings, concise reproduction steps, checks actually run, source or asset provenance, SandBase endpoint and run IDs when used, observed cost when available, and any follow-up that still requires user action.

正文来自原始仓库, 版权归作者所有,许可:MIT。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/sandbaseai/sandbase-skills

标签

没有标签

同类 Skill