write-pipeline
यह क्या करती है
यह स्किल समझाती है कि Windmill में एक flow के बजाय, साझा storage और triggers से जुड़ी अलग-अलग scripts से डेटा पाइपलाइन कैसे बनाई जाए। यह उन लोगों के लिए है जो डेटा को चरण-दर-चरण ले जाते और बदलते हैं।
कब इस्तेमाल करें
- ✓जब आप Windmill में कई चरणों में डेटा लेना, बदलना या materialize करना चाहते हों।
- ✓जब आप एकल flow के बजाय डेटा पाइपलाइन माँगते हों।
- ✓जब कोई table DuckLake table में लिखने वाली DuckDB script से बननी हो।
Skill का लिंक
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/write-pipeline/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Windmill में एक पाइपलाइन बनाइए जो हमारी sales CSV को एक table में लोड करे, और फिर एक मासिक सारांश table बनाए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल एजेंट को छोटी scripts लिखने को कहती है, जिनमें हर एक पर नोट्स हों कि वह क्या पढ़ती और लिखती है, ताकि 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
अक्सर पूछे जाने वाले सवाल
क्या डेटा पाइपलाइन और flow एक ही हैं?
नहीं। पाइपलाइन साझा tables से जुड़ी अलग scripts का समूह है, जबकि flow अपने चरण एक ही runnable के अंदर चलाती है।
DuckLake क्या है?
यह lakehouse table store है, जिसे स्किल पाइपलाइन आउटपुट के लिए डिफ़ॉल्ट रूप से इस्तेमाल करती है।
पाइपलाइन कहाँ दिखती है?
Windmill उसे उस फ़ोल्डर के pipeline editor में दिखाता है जिसमें scripts रखी हैं।
जानकारी
लेखक का मूल विवरण
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
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
commit
18kयह आपके एजेंट को conventional फ़ॉर्मेट में एक साफ़ एक-पंक्ति git commit संदेश लिखने में मदद करती है, केवल बदली हुई फ़ाइलें stage करते हुए।
pr
18kयह आपके एजेंट को GitHub पर साफ़ शीर्षक और विवरण के साथ ड्राफ़्ट pull request खोलने में मदद करती है, और फिर समीक्षा दौरों का पालन करती है।
agents
18kयह आपके एजेंट को Windmill में एक दोबारा इस्तेमाल होने वाला AI एजेंट बनाने में मदद करती है, जिसका अपना मॉडल, सिस्टम प्रॉम्प्ट, टूल्स और मेमोरी हो।
cli-commands
18kयह आपके एजेंट को Windmill कमांड-लाइन टूल चलाने में मदद करती है, ताकि scripts, flows, apps और job इतिहास संभाला जा सके।
मिलती-जुलती skills
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
clickhouse-io
280kआपके एजेंट को ClickHouse databases में queries और schemas optimize करने में मदद करता है। high-performance analytical workloads के लिए best practices लागू करता है। जब analytical queries बहुत धीमी हों, तब इसका उपयोग करें।
scientific-db-pubmed-database
280kआपके एजेंट को बायोमेडिकल क्षेत्र के वैज्ञानिक लेख खोजने में मदद करता है। जिस रिसर्च में खास मेडिकल जानकारी चाहिए, उसके लिए यह काम का है।