Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

creating-bauplan-pipelines

БесплатноБез исполняемых скриптовНе проверен

Creates bauplan data pipeline projects with SQL and Python models. Use when starting a new pipeline, defining DAG transformations, writing models, or setting…

aiskillstoreот aiskillstore★ 509 звёзд на GitHub

Об этом скилле

Creating a New Bauplan Data Pipeline

This skill guides you through creating a new bauplan data pipeline project from scratch, including the project configuration and SQL/Python transformation models.

CRITICAL: Branch Safety

NEVER run pipelines on main branch. Always use a development branch.

Branch naming convention: <username>.<branch_name> (e.g., john.feature-pipeline). Get your username with bauplan info. See Workflow Checklist for exact commands.

Prerequisites

Before creating the pipeline, verify that:

  1. You have a development branch (not main)
  2. Source tables exist in the bauplan lakehouse (the default namespace is bauplan)
  3. You understand the schema of the source tables

Pipeline as a DAG

A bauplan pipeline is a DAG of functions (models). Key rules:

  1. Models: SQL or Python functions that transform data
  2. Source Tables: Existing lakehouse tables - entry points to your DAG
  3. Inputs: Each model can take multiple tables via bauplan.Model() references
  4. Outputs: Each model produces exactly one table:
    • SQL: output name = filename (trips.sql → trips)
    • Python: output name = function name (def clean_trips() → clean_trips)
  5. Topology: Implicitly defined by input references - bauplan determines execution order

Expectations: Data quality functions that take tables as input and return a boolean.

Example DAG

[lakehouse: taxi_fhvhv] ──→ [trips.sql] ──→ [clean_trips] ──→ [daily_summary]
                                                ↑
[lakehouse: taxi_zones] ────────────────────────┘

In this example:

  • taxi_fhvhv and taxi_zones are source tables (already in lakehouse)
  • trips.sql reads from taxi_fhvhv (SQL model, first node)
  • clean_trips takes trips and taxi_zones as inputs (Python model, multiple inputs)
  • daily_summary takes clean_trips as input (Python model, single input)

Required User Input

Before writing a pipeline, you MUST gather the following information from the user:

  1. Pipeline purpose (required): What transformations should the DAG perform? What is the business logic or goal?
  2. Source tables (required): Which tables from the lakehouse should be used as inputs? Verify they exist with bauplan table get
  3. Output tables (required): Which tables should be materialized at the end of the pipeline? These are the final outputs visible to downstream consumers
  4. Materialization strategy (optional): Should output tables use REPLACE (default) or APPEND?
  5. Strict mode (optional): Should the pipeline run in strict mode? If yes, all CLI commands will use --strict flag, which fails on issues like output column mismatches during dry-run, allowing immediate error detection and correction.

If the user hasn't provided this information, ask before proceeding with implementation.

Strict Mode (--strict flag)

When strict mode is enabled, append --strict to all bauplan run commands:

# Without strict mode (default)
bauplan run --dry-run
bauplan run

# With strict mode enabled
bauplan run --dry-run --strict
bauplan run --strict

Benefits of strict mode:

  • Fails immediately on output column mismatches
  • Fails immediately if an expectation fails
  • Allows you to rectify declaration errors before pipeline completion
  • Recommended when iterating on pipeline development

Project Structure

A bauplan project is a folder containing:

my-project/
  bauplan_project.yml    # Required: project configuration
  model.sql              # Optional: a single SQL model, one per file
  models.py              # Optional: Python models (one file can have >1 models, or be split into multiple files)
  expectations.py        # Optional: data quality tests (if any)

bauplan_project.yml

Every project is a separate folder which requires this configuration file:

project:
  id: <unique-uuid>       # Generate a unique UUID
  name: <project_name>    # Descriptive name for the project

When to Use SQL vs Python Models

IMPORTANT: SQL models should be LIMITED to first nodes in the pipeline graph only.

  • SQL models: Use ONLY for nodes that read directly from source tables in the lakehouse (tables outside your pipeline graph)
  • Python models: Preferred for ALL other transformations in the pipeline

This ensures consistency and allows for better control over transformations, output schema validation, and documentation.

SQL Models (First Nodes Only)

SQL models are .sql files where:

  • The filename becomes the output table name
  • The FROM clause defines input tables
  • Optional: Add materialization strategy as a comment

Use SQL models only when reading from existing lakehouse tables:

-- trips.sql
-- First node: reads from taxi_fhvhv table in the lakehouse
SELECT
    pickup_datetime,
    PULocationID,
    trip_miles
FROM taxi_fhvhv
WHERE pickup_datetime >= '2022-12-01'

O

Полный SKILL.md на GitHub

Установить creating-bauplan-pipelines в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(bauplan:*)
Read
Write
Glob
Grep
WebFetch(domain:docs.bauplanlabs.com)

Вложенные файлы

examples.mdskill-report.json

FAQ

Что делает скилл creating-bauplan-pipelines?

Creates bauplan data pipeline projects with SQL and Python models. Use when starting a new pipeline, defining DAG transformations, writing models, or setting up bauplan project structure from scratch.

Как установить скилл creating-bauplan-pipelines?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл creating-bauplan-pipelines запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить creating-bauplan-pipelines с