write-pipeline
Ce qu’il fait
Cette skill explique comment construire un pipeline de données dans Windmill à partir de scripts distincts reliés par un stockage partagé et des déclencheurs, plutôt qu'un seul flux. Elle s'adresse aux personnes qui déplacent et transforment les données étape par étape.
Quand l’utiliser
- ✓Quand vous voulez ingérer, transformer ou matérialiser des données en plusieurs étapes dans Windmill.
- ✓Lorsque vous demandez un pipeline de données plutôt qu'un flux unique.
- ✓Lorsqu'une table doit être produite par un script DuckDB qui écrit dans une table DuckLake.
Lien du skill
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/write-pipeline/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Construis un pipeline Windmill qui charge notre fichier CSV de ventes dans une table, puis crée une table de synthèse mensuelle.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La skill fait écrire par votre agent de petits scripts, chacun accompagné de notes indiquant ce qu'il lit et écrit, afin que la vue de pipeline de Windmill les relie entre eux.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Un pipeline de données est-il la même chose qu'un flux ?
Non. Un pipeline est un ensemble de scripts distincts reliés par des tables partagées, alors qu'un flux exécute ses étapes dans un seul exécutable.
Qu'est-ce que DuckLake ?
C'est le stockage de tables lakehouse que la skill utilise par défaut pour les sorties de pipeline.
Où voit-on le pipeline ?
Windmill l'affiche dans l'éditeur de pipeline du dossier qui contient les scripts.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 18k
- Position au classement
- #10632
- Licence
- —
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
commit
18kAide votre agent à rédiger un message de commit git propre sur une seule ligne, au format conventionnel, en n'ajoutant que les fichiers modifiés.
pr
18kAide votre agent à ouvrir une demande de tirage (pull request) en brouillon sur GitHub, avec un titre et une description clairs, puis à suivre les tours de relecture.
agents
18kAide votre agent à construire un agent IA Windmill réutilisable, avec son propre modèle, son prompt système, ses outils et sa mémoire.
cli-commands
18kAide votre agent à utiliser l'outil en ligne de commande Windmill pour gérer les scripts, les flux, les applications et l'historique des tâches.
Skills similaires
discrawl
394kPermet à votre agent de rechercher et de résumer une archive locale des messages Discord, de vérifier sa fraîcheur et de lire les messages privés.
clickhouse-io
280kAide votre agent à optimiser requêtes et schémas ClickHouse selon les bonnes pratiques pour les analyses hautes performances. À utiliser si les requêtes sont trop lentes.
scientific-db-pubmed-database
280kAide votre agent à rechercher des articles scientifiques dans le domaine biomédical. Utile pour les recherches nécessitant des informations médicales précises.