Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

dbt丁二烯酸

Agent Skill

dbt 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

466

周安装

20

GitHub Stars

4

下载量

163
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dbt(丁二烯酸)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/dbt
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill dbt
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill dbt

简介

dbt 用于基于 SQL 构建数据转换模型,支持版本控制和自动化测试,适合在 Codex、Claude、Cursor、Gemini CLI 中管理数据仓库 ETL 流程时使用。

  • 它适用于 Snowflake、BigQuery 等平台的增量加载和 schema 演化场景。
  • 安装命令为 npx skills add https://github.com/alphaonedev/openclaw-graph --skill dbt,需从 GitHub 获取原始 README 进一步确认用法。
  • 使用前建议核对仓库连接权限、SQL 执行范围和敏感数据处理策略。
  • dbt 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Purpose

dbt (data build tool) is a command-line tool for transforming data in warehouses using SQL-based models. It enables developers to write, test, and document data transformations, ensuring reliable ETL processes.

When to Use

Use dbt when building SQL data models for warehouses like Snowflake, BigQuery, or Redshift. Apply it for incremental data loading, schema evolution, or automated testing in data pipelines. Avoid it for real-time processing or non-SQL data sources; opt for dbt when you need version-controlled SQL code with built-in validation.

Key Capabilities

  • Define reusable SQL models in.sql files with Jinja templating for dynamic queries (e.g., {{var('date')}} for parameter injection).
  • Run automated tests like schema checks or custom assertions via YAML configs (e.g., not_null or unique tests).
  • Generate documentation automatically from models using dbt docs generate, outputting HTML with model dependencies and descriptions.
  • Handle incremental models with the is_incremental() macro to process only new data, reducing warehouse load.
  • Support for macros and packages via dbt hub for extending functionality, like adding utility functions.

Usage Patterns

Follow this workflow: 1) Initialize a project with dbt init. 2) Write models in the models/ directory as SQL files. 3) Configure connections in profiles.yml. 4) Run and test models iteratively. 5) Use seeds for static data and snapshots for slowly changing dimensions. For CI/CD, integrate dbt into scripts: run dbt run in a Docker container with mounted volumes. Always specify targets like --target dev to switch environments.

Common Commands/API

dbt is primarily CLI-based; use it directly or via scripts. Key commands:

  • dbt init --name project_name: Create a new project; specify a directory with --project-dir /path. Example: dbt init --name sales_dbt --project-dir./sales_project
  • dbt run --models model_name --select tag:nightly: Execute models; use --full-refresh to rebuild all data. Example: dbt run --models orders --target prod --threads 8
  • dbt test --models model_name: Run tests; add flags like --store-failures to log errors. Example: dbt test --select source:raw_data
  • dbt docs generate && dbt docs serve: Build and serve documentation; integrate with CI for auto-deployment.
  • For API-like usage, wrap dbt in Python scripts using subprocess: subprocess.run(['dbt', 'run', '--models', 'my_model']). Use environment variables for profiles, e.g., set $DBT_PROFILES_DIR to /path/to/profiles.yml.

Integration Notes

Integrate dbt with warehouses by configuring profiles.yml. For Snowflake, use:

your_profile:
  target: dev
  outputs:
    dev:
      type: snowflake
      account: your_account
      user: your_user
      password: "{{ env_var('SNOWFLAKE_PASSWORD') }}"
      database: your_db
      schema: your_schema

For BigQuery, specify:

bigquery_profile:
  target: dev
  outputs:
    dev:
      type: bigquery
      method: service-account
      project: your-gcp-project
      dataset: your_dataset
      keyfile: "{{ env_var('GOOGLE_KEYFILE') }}"

Use env vars for secrets (e.g., export SNOWFLAKE_PASSWORD=your_key). Integrate with Git for version control, and tools like Airflow for orchestration: call dbt run as a task. For VS Code, install the dbt extension for syntax highlighting.

Error Handling

Handle errors by first running dbt debug to validate connections and profiles. For SQL compilation errors, check model files for syntax (e.g., missing semicolons) and use dbt compile to preview. If tests fail, inspect output logs for details like "column not found"; fix by updating schemas in .yml files. Use --fail-fast in dbt run to halt on first error. Common patterns: wrap commands in try-catch for scripts (e.g., in Python: try: subprocess.run(['dbt', 'run']) except Exception as e: log_error(e)). For authentication failures, ensure env vars like $SNOWFLAKE_PASSWORD are set; test with dbt run --target dev --log-level debug.

Concrete Usage Examples

  1. Building a simple incremental model: Create models/orders.sql with: {{config(materialized='incremental')}} select order_id, customer_id from source_orders where order_date > (select max(order_date) from {{this}}) Then run: dbt run --models orders --target dev. This processes only new orders.
  2. Running and testing a data model: Define a test in models/schema.yml: models: - name: customers columns: - name: customer_id tests: - unique - not_null Execute: dbt run --models customers && dbt test --models customers. This builds the model and verifies no duplicates or nulls.

Graph Relationships

  • Cluster: data-engineering (connects to skills like SQL and ETL tools).
  • Tags: dbt, sql, data-modeling (links to related tags in other skills, e.g., SQL for query optimization).
  • Relationships: Depends on warehouse connectors; integrates with data pipelines in data-engineering cluster.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.03%
按下载量换算62

Claude

26.99%
按下载量换算44

Cursor

17.39%
按下载量换算28

Gemini CLI

9.06%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills