write-pipeline
하는 일
이 스킬은 하나의 플로우 대신, 공유 저장소와 트리거로 연결된 별도 스크립트들로 Windmill 데이터 파이프라인을 만드는 방법을 설명합니다. 데이터를 단계별로 옮기고 변환하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓여러 단계에 걸쳐 Windmill에서 데이터를 수집, 변환 또는 구체화하고 싶을 때.
- ✓단일 플로우가 아니라 데이터 파이프라인을 요청할 때.
- ✓테이블을 DuckLake 테이블에 쓰는 DuckDB 스크립트가 만들어야 할 때.
스킬 링크
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/write-pipeline/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“판매 CSV를 테이블에 적재한 다음 월간 요약 테이블을 만드는 Windmill 파이프라인을 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 에이전트가 작은 스크립트를 작성하게 하고, 각 스크립트에는 무엇을 읽고 쓰는지 적은 메모를 붙입니다. 그러면 Windmill 파이프라인 보기가 이들을 연결해 보여 줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Data pipeline authoring
A data pipeline is NOT a flow. A flow is one runnable that orchestrates steps internally. A data pipeline is a set of independent scripts, each deployed on its own, that form a DAG by reading and writing shared storage assets (DuckLake tables, data tables, S3 objects, volumes, resources) and by declaring execution triggers. The pipeline is visualized and edited at /pipeline/<folder>; every node is a normal workspace script that happens to carry pipeline annotations. When the user asks for a "data pipeline" (or to "ingest / transform / materialize" data across steps), build pipeline-annotated scripts — do NOT build a flow.
Default to DuckDB + DuckLake
A pipeline node that produces a table should almost always be a duckdb node that materializes its output into a DuckLake table with -- materialize ducklake://<name>/<table> (in a DuckDB node the annotation uses SQL -- comment syntax; write the body as a bare SELECT and let the runtime do the write). DuckLake is the default lakehouse store for pipelines and is the shape the pipeline editor is built around, so prefer it unless the work specifically calls for something else:
postgresql/ data tables — only for row-level, OLTP-style mutations against an existing Postgres data table (frequent single-row upserts/updates, transactional reads that an app queries live).bun/python3— only for work that doesn't map to SQL: calling an external API, wrangling files, arbitrary glue. When such a node produces tabular data for downstream steps, write it straight into DuckLake (or a data table) from the same script — see "Ingesting from Python / TypeScript" below — rather than inventing a parallel store.
Do not spread a pipeline across postgres, S3, and DuckLake when one DuckLake lake would do; a consistent DuckLake lakehouse is the goal.
Ingesting from Python / TypeScript
A node that fetches data in code (an API, a SaaS export, a scraper) writes the rows directly into their DuckLake table with wmill.ducklake(), or into a data table with wmill.datatable(). DuckLake already stores every table as parquet files in the workspace object storage, so never stage the raw payload first — no intermediate JSON / CSV / parquet file in S3 and no second "load the raw file" node. One ingestion node, one table.
Pass the rows as a query argument (a list of dicts / array of objects is sent as JSON) and let SQL unnest them; declare the column types so the table gets a real schema:
# pipeline
# on schedule
import wmill
def main():
rows = fetch_charges() # list[dict]
lake = wmill.ducklake()
lake.query("""
CREATE OR REPLACE TABLE stripe_charges AS
SELECT unnest(from_json($rows, '[{"id":"VARCHAR","amount":"BIGINT","created":"BIGINT"}]'), recursive := true)
""", rows=rows).fetch()
// pipeline
// on schedule
import * as wmill from "windmill-client"
export async function main() {
const rows = await fetchCharges()
const lake = wmill.ducklake()
await lake`CREATE OR REPLACE TABLE stripe_charges AS
SELECT unnest(from_json(${rows}, '[{"id":"VARCHAR","amount":"BIGINT","created":"BIGINT"}]'), recursive := true)`.fetch()
}
- Use
INSERT INTO <table> SELECT ...instead ofCREATE OR REPLACEto append (an incremental pull), with a one-timeCREATE TABLE IF NOT EXISTSfirst. - Assign the client to a variable (
lake = wmill.ducklake()) and keep the SQL a string literal (Python) or a template withoutsql.raw(TS): that is what lets the graph record the node's write toducklake://main/<table>. A chainedwmill.ducklake().query(...)or SQL built in a variable records no output, so the downstream edge never forms. wmill.ducklake("<name>")targets a non-default catalog;wmill.datatable("<name>")writes a Postgres data table the same way (Pythondb.query(sql, *args)with$1placeholders, TS the same template form) — use it only when the data belongs in Postgres (see above).- The downstream node triggers on the table itself:
-- on ducklake://main/stripe_charges.
Storage prerequisites
A DuckLake pipeline only runs once the workspace has object storage (S3 / Azure Blob / GCS) and a DuckLake catalog configured — DuckLake tables and s3:// assets can't be materialized or read without it. Check which DuckLake catalogs the workspace has before you build.
wmill ducklake list lists them.
Drafting the annotated scripts does not
자주 묻는 질문
데이터 파이프라인은 플로우와 같은가요?
아니요. 파이프라인은 공유 테이블로 연결된 별도 스크립트 묶음이고, 플로우는 하나의 실행 단위 안에서 단계를 실행합니다.
DuckLake란 무엇인가요?
스킬이 파이프라인 출력에 기본으로 쓰는 레이크하우스 테이블 저장소입니다.
파이프라인은 어디에서 보나요?
스크립트가 들어 있는 폴더의 파이프라인 편집기에서 Windmill이 보여 줍니다.
상세 정보
작성자의 원본 설명
MUST use when creating or modifying a data pipeline, a set of scripts marked `pipeline` and wired together by `on` / `materialize` annotations.
repo: windmill-labs/windmill
인기도
- GitHub 스타
- 18k
- 순위
- #10632
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
commit
18k에이전트가 관례적 형식으로 한 줄짜리 깔끔한 git 커밋 메시지를 쓰도록 돕고, 바뀐 파일만 스테이징합니다.
pr
18k에이전트가 GitHub에 명확한 제목과 설명을 담은 초안 풀 리퀘스트를 열고, 이후 검토 라운드를 따라가도록 돕습니다.
agents
18k에이전트가 자체 모델, 시스템 프롬프트, 도구, 메모리를 가진 재사용 가능한 Windmill AI 에이전트를 만들도록 돕습니다.
cli-commands
18k에이전트가 Windmill 명령줄 도구를 실행해 스크립트, 플로우, 앱, 작업 기록을 관리하도록 돕습니다.
비슷한 스킬
discrawl
394k에이전트가 저장된 로컬 Discord 메시지 보관본을 검색하고 요약하며, 최신 상태를 확인하고 다이렉트 메시지를 읽도록 돕습니다.
clickhouse-io
280k에이전트가 ClickHouse 데이터베이스의 쿼리와 스키마를 최적화하도록 돕습니다. 고성능 분석 작업의 모범 사례를 적용합니다. 분석 쿼리가 느릴 때 씁니다.
scientific-db-pubmed-database
280k생의학 분야의 과학 논문을 에이전트가 검색하도록 돕습니다. 특정 의학 정보가 필요한 연구에 유용합니다.