data-pipeline-cicd
Use when the user asks about CI/CD for data pipelines: dbt Slim CI with state:modified, SQLFluff linting, dbt Cloud jobs, environment promotion or schema…
от j4flmao★ 47 звёзд на GitHub
Установить data-pipeline-cicd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Data Pipeline CI/CD
Purpose
Establish continuous integration and delivery for data pipelines covering SQL code quality, dbt model testing, schema change management, and environment promotion from dev to production.
Agent Protocol
Trigger
Exact user phrases: "data pipeline CI/CD", "dbt CI/CD", "SQLFluff", "SQL linting", "Atlantis SQL", "data pipeline testing", "environment promotion", "schema change management", "dbt test", "data CI", "database CI/CD", "data quality CI", "SQL review", "data deployment".
Input Context
Before activating, verify:
- Data transformation framework (dbt, SQLMesh, Dataform, custom SQL)
- Data warehouse (Snowflake, BigQuery, Redshift, Databricks, Postgres)
- CI platform (GitHub Actions, GitLab CI, CircleCI, Jenkins)
- Environments (dev, staging, prod) and promotion strategy
- Testing framework (dbt test, Great Expectations, data-diff, Soda)
- Schema migration tool (Alembic, Flyway, dbt migrations)
Output Artifact
CI/CD pipeline configuration with SQL linting rules, dbt test setup, environment promotion workflow, and schema change management as YAML, SQL, and configuration.
Response Format
# CI/CD pipeline configuration
# SQLFluff config
-- dbt test example
-- dbt Cloud job config
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output.
Completion Criteria
- CI pipeline with SQLFluff linting configured
- dbt test suite with singular and generic tests
- Environment promotion workflow (dev -> staging -> prod) defined
- Schema change management with migration scripts
- Data diff or comparison testing in staging
- Rollback strategy documented
Max Response Length
4096
Workflow
CI Pipeline for dbt Projects
# .github/workflows/dbt-ci.yml
name: dbt CI
on:
pull_request:
branches: [main]
paths: ['transform/**', 'profiles.yml']
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install sqlfluff==3.0.0 sqlfluff-templater-dbt
- run: sqlfluff lint transform/models/ --dialect snowflake --templater dbt
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install dbt-snowflake dbt-core==1.7.0
- run: dbt deps --project-dir transform
- run: dbt build --project-dir transform --target ci
- run: dbt docs generate --project-dir transform
SQLFlint Configuration
# .sqlfluff
[sqlfluff]
dialect = snowflake
templater = dbt
max_line_length = 80
indent_unit = space
tab_space_size = 4
[sqlfluff:indentation]
indented_joins = False
indented_ctes = True
indented_on_contents = True
[sqlfluff:rules:L003]
force_equal_tab_space = True
[sqlfluff:rules:L010]
capitalisation_policy = upper
[sqlfluff:rules:L014]
capitalisation_policy = lower
[sqlfluff:rules:L030]
capitalisation_policy = upper
[sqlfluff:rules:L040]
capitalisation_policy = upper
[sqlfluff:rules:L042]
force_divide_by_zero = False
[sqlfluff:rules:AM04]
allow_scalar = False
[sqlfluff:rules:CP01]
ignore_words = ["customer", "company", "vendor"]
dbt Environment Promotion
# dbt_project.yml
name: analytics
version: "1.0.0"
config-version: 2
profile: analytics
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
models:
analytics:
staging:
+materialized: view
+schema: stg
tags: ["staging"]
intermediate:
+materialized: ephemeral
+schema: int
tags: ["intermediate"]
marts:
+materialized: table
+schema: marts
tags: ["marts"]
marketing:
+schema: marketing
tags: ["marketing"]
# .github/workflows/promote-to-prod.yml
name: Promote to Production
on:
workflow_dispatch:
inputs:
commit-sha:
description: 'Commit SHA to promote'
required: true
jobs:
diff:
runs-on: ubuntu-latest
outputs:
has_changes: ${{ steps.dbt-diff.outputs.has_changes }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: dbt data diff
id: dbt-diff
run: |
git checkout ${{ github.event.inputs.commit-sha }}
# Compare staging vs prod with data-diff
pip install data-diff
data-diff \
--d1 "snowflake://${{ secrets.SF_STAGING }}" \
--d2 "snowflake://${{ secrets.SF_PROD }}" \
--table analytics.marts.orders \
--key order_id \
--output diff_output.json
echo "has_changes=true" >> $GITHUB_OUTPUT
approve:
needs: diff
runs-on: ubuntu-latest
environment: production
steps:
- name: Manual approval
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/cicd-for-data-pipelines.md
- references/data-diff-testing.md
- references/data-quality-ci.md
- references/dbt-ci-cd-pipeline.md
- references/pipeline-cicd-environments.md
- references/pipeline-cicd-secrets.md
- references/pipeline-test-automation.md
- references/sql-linting-and-testing.md
FAQ
Что делает скилл data-pipeline-cicd?
Use when the user asks about CI/CD for data pipelines: dbt Slim CI with state:modified, SQLFluff linting, dbt Cloud jobs, environment promotion or schema change management. Produces CI workflows, lint config and promotion gates. Not for general CI platforms (use github-actions) or test design (use data-testing).
Как установить скилл data-pipeline-cicd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-pipeline-cicd запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate 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…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…