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★ 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
mainbranch. 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:
- You have a development branch (not
main) - Source tables exist in the bauplan lakehouse (the default namespace is
bauplan) - You understand the schema of the source tables
Pipeline as a DAG
A bauplan pipeline is a DAG of functions (models). Key rules:
- Models: SQL or Python functions that transform data
- Source Tables: Existing lakehouse tables - entry points to your DAG
- Inputs: Each model can take multiple tables via
bauplan.Model()references - Outputs: Each model produces exactly one table:
- SQL: output name = filename (
trips.sql→trips) - Python: output name = function name (
def clean_trips()→clean_trips)
- SQL: output name = filename (
- 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_fhvhvandtaxi_zonesare source tables (already in lakehouse)trips.sqlreads fromtaxi_fhvhv(SQL model, first node)clean_tripstakestripsandtaxi_zonesas inputs (Python model, multiple inputs)daily_summarytakesclean_tripsas input (Python model, single input)
Required User Input
Before writing a pipeline, you MUST gather the following information from the user:
- Pipeline purpose (required): What transformations should the DAG perform? What is the business logic or goal?
- Source tables (required): Which tables from the lakehouse should be used as inputs? Verify they exist with
bauplan table get - Output tables (required): Which tables should be materialized at the end of the pipeline? These are the final outputs visible to downstream consumers
- Materialization strategy (optional): Should output tables use
REPLACE(default) orAPPEND? - Strict mode (optional): Should the pipeline run in strict mode? If yes, all CLI commands will use
--strictflag, 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
Установить creating-bauplan-pipelines в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(bauplan:*)ReadWriteGlobGrepWebFetch(domain:docs.bauplanlabs.com)Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic