Skip to content

motherduckdb/agent-skills / plugins/motherduck-skills-claude/skills/motherduck-build-data-pipeline

motherduck-build-data-pipeline

Unverified

Build ingestion-to-serving pipelines on MotherDuck, including stage boundaries, transformations, and publication. Use for any recurring ingestion from an API, SaaS app, or database into MotherDuck.

FileKindSize
SKILL.mdskill md4.7 KB
artifacts/pipeline_stage_example.pyscript3.5 KB
artifacts/pipeline_stage_example.tsscript2.6 KB
references/EXECUTION_REFERENCE.mdmarkdown2.7 KB
references/PIPELINE_IMPLEMENTATION_GUIDE.mdmarkdown25.6 KB
references/dlt-dbt-motherduck-project/.env.exampleother86 B
references/dlt-dbt-motherduck-project/.gitignoreother54 B
references/dlt-dbt-motherduck-project/.user.ymlconfig41 B
references/dlt-dbt-motherduck-project/README.mdmarkdown3.8 KB
references/dlt-dbt-motherduck-project/data/customers.jsonlother288 B
references/dlt-dbt-motherduck-project/data/orders.jsonlother824 B
references/dlt-dbt-motherduck-project/dbt_project.ymlconfig333 B
references/dlt-dbt-motherduck-project/macros/generate_schema_name.sqlother207 B
references/dlt-dbt-motherduck-project/models/marts/fct_customer_revenue.sqlother375 B
references/dlt-dbt-motherduck-project/models/marts/marts.ymlconfig285 B
references/dlt-dbt-motherduck-project/models/staging/sources.ymlconfig116 B
references/dlt-dbt-motherduck-project/models/staging/staging.ymlconfig455 B
references/dlt-dbt-motherduck-project/models/staging/stg_customers.sqlother222 B
references/dlt-dbt-motherduck-project/models/staging/stg_orders.sqlother695 B
references/dlt-dbt-motherduck-project/pipeline/__init__.pyscript1 B
references/dlt-dbt-motherduck-project/pipeline/bootstrap.pyscript1.2 KB
references/dlt-dbt-motherduck-project/pipeline/cleanup.pyscript727 B
references/dlt-dbt-motherduck-project/pipeline/load_raw.pyscript1.4 KB
references/dlt-dbt-motherduck-project/pipeline/run_all.pyscript1.2 KB
references/dlt-dbt-motherduck-project/pipeline/settings.pyscript1.1 KB
references/dlt-dbt-motherduck-project/pipeline/validate.pyscript2.0 KB
references/dlt-dbt-motherduck-project/profiles.ymlconfig434 B
references/dlt-dbt-motherduck-project/pyproject.tomlmanifest326 B
references/dlt-dbt-motherduck-project/uv.lockmanifest210.0 KB

references/dlt-dbt-motherduck-project/pipeline/run_all.py

View on GitHub
from __future__ import annotations

import os
import shutil
import subprocess
import sys
from pathlib import Path

if __package__ in (None, ""):
    sys.path.append(str(Path(__file__).resolve().parents[1]))

from pipeline.bootstrap import bootstrap_database
from pipeline.load_raw import load_raw_data
from pipeline.settings import project_root


def resolve_dbt_binary() -> str:
    dbt_binary = shutil.which("dbt")
    if dbt_binary:
        return dbt_binary

    candidate = Path(sys.executable).resolve().with_name("dbt")
    if candidate.exists():
        return str(candidate)

    raise RuntimeError("dbt executable not found. Run `uv sync --python 3.12` first.")


def run_dbt_build() -> None:
    env = os.environ.copy()
    env["DBT_PROFILES_DIR"] = str(project_root())
    subprocess.run(
        [resolve_dbt_binary(), "build"],
        check=True,
        cwd=project_root(),
        env=env,
    )


def run_validation() -> None:
    subprocess.run(
        [sys.executable, "pipeline/validate.py"],
        check=True,
        cwd=project_root(),
        env=os.environ.copy(),
    )


def main() -> None:
    bootstrap_database()
    load_raw_data()
    run_dbt_build()
    run_validation()


if __name__ == "__main__":
    main()
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 323kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall