Logo Windmill Steps

Windmill Steps

Cộng đồng
Mikedev115
windmill-steps

How a Windmill flow and its steps are shaped — the path rules the server enforces, module ids and how results are referenced, input_transforms, branches and loops, and where failure is handled. Use when designing, reviewing, or repairing a Windmill flow.

Tổng quan

Nhà phát hànhMikedev115
Kho mãAetox-Harness
Tên kỹ năngwindmill-steps
Sao
142
Bản fork
28
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Mikedev115 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Windmill Steps trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Mikedev115/Aetox-Harness/tree/main/internal/subagent/profiles/agents/automation/skills/windmill-steps
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Mikedev115/Aetox-Harness.git /tmp/Aetox-Harness
mkdir -p .claude/skills
cp -r /tmp/Aetox-Harness/internal/subagent/profiles/agents/automation/skills/windmill-steps .claude/skills/windmill-steps
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Windmill Steps trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Windmill Steps ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Windmill Steps với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Flow และ step ของ Windmill

The workspace comes first

Nothing here is reachable without one, and the workspace id is not the name shown in Windmill's own interface. windmill action workspaces returns the real one; using the display name gets a 404 that reads like a permissions problem, and the next hour goes on checking the token.

Then the habit that holds on every engine: read an existing flow (windmill action read) before writing one that uses a step you are unsure of. There is no registry of step types to consult here — a step is code, or a reference to something runnable — so the arguments a script step takes are that script's own, and the only accurate copy of them is on the instance in front of you. If nothing there uses it, say so before you build rather than after.

A flow is a path, a summary, and modules

json
{
  "path": "u/mike/ใบเสร็จรายเดือน",
  "summary": "รวมใบเสร็จจากอีเมลแล้วสรุปเป็นไฟล์เดียว",
  "value": { "modules": [] }
}

The path is validated by the server and its error message is not helpful, so get it right before sending. It must match ^[ufg](/[\p{Alphabetic}\p{Nd}_-]+){2,}$ — one leading letter, then at least two /-separated segments, no dots, no spaces, 255 characters at most. Thai letters are fine; a space is not.

The leading letter is a decision, not a prefix:

  • u/<username>/… is that person's private space. Convenient, and invisible to their colleagues.
  • f/<folder>/… is shared — but the folder has to exist already and the user has to have write access. If not, the refusal arrives as a permission error from the database, which reads like something else entirely.
  • g/… is a group.

Ask which one they want when the automation is meant to outlive their own use of it. Do not quietly default to private for something the team will depend on.

A module is an id and a value

json
{ "id": "a", "summary": "อ่านใบเสร็จ", "value": { "type": "rawscript", "...": "..." } }

The id is how every later step refers to this one's output — results.a in an expression. Short ids are the convention. Change one and every reference to it breaks.

Nine kinds of value.type, and the required fields are worth knowing because a missing one is a rejection:

typewhat it isrequired beyond type
rawscriptcode written inlinecontent, language, input_transforms
scripta script in the workspace, by pathpath, input_transforms
flowanother flow as a sub-flowpath, input_transforms
forloopflowiterate a listmodules, iterator, skip_failures
whileloopflowrepeat until a conditionmodules, skip_failures
branchonefirst matching branch winsbranches, default
branchallevery branch runsbranches
identitypasses input through, for debugging—
aiagentan agent step with toolsinput_transforms, tools

branchone requires a default even when you think no case can miss. Each entry of branches is {expr, modules}; branchall takes an optional parallel.

input_transforms is where the wiring lives

Windmill has no lines between boxes. A step's inputs are a map from the argument name to where the value comes from:

json
"input_transforms": {
  "email": { "type": "static", "value": "sales@example.com" },
  "rows":  { "type": "javascript", "expr": "results.a.items" }
}

static is a literal. javascript is an expression with results.<id>, flow_input.<field> and — inside a loop — flow_input.iter.value in scope.

The keys must be exactly the arguments the step takes. For a rawscript that is the parameters of the main function you are writing in content, so you control both and can keep them honest. For script and flow it is somebody else's signature, and guessing at it is the most likely way a flow you wrote fails on its first run.

Failure, and the thing not to do

failure_module on the flow is the try/catch for the whole run — one place that learns something went wrong. Per-step there is continue_on_error, retry, skip_if, timeout, and suspend when a human should approve before it carries on. A flow with no failure handling is fine to build and dishonest to hand over without saying so.

Never fix a flow by deleting it and creating it again. Update it in place. Deleting discards its history and orphans any schedule pointing at it, and the user finds out when the thing stops running on Monday.

Before you hand it over

Read the flow back. Then check three things by eye, because the server checked none of them: every results.<id> in an expression names a module that exists, every key in an input_transforms is an argument its step actually takes, and every path you wrote is in the space the user chose rather than the one that was convenient.

Then say what you could not check. You saw it save. You did not see it run.

Câu hỏi thường gặp

Kỹ năng AI Windmill Steps làm được gì?

How a Windmill flow and its steps are shaped — the path rules the server enforces, module ids and how results are referenced, input_transforms, branches and loops, and where failure is handled. Use when designing, reviewing, or repairing a Windmill flow.

Vì sao nên dùng Windmill Steps trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Windmill Steps là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Windmill Steps trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Mikedev115/Aetox-Harness/tree/main/internal/subagent/profiles/agents/automation/skills/windmill-steps. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Windmill Steps?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Windmill Steps với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Windmill Steps với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Windmill Steps có miễn phí không?

Kỹ năng này được Mikedev115 phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇