agents
Was er macht
Dieser Skill führt durch den Bau eines gespeicherten KI-Agenten in Windmill, einem wiederverwendbaren Assistenten, mit dem du chatten, den du über ein Formular starten oder aus einem Flow verlinken kannst. Er ist für Menschen gedacht, die KI-Helfer in Windmill einrichten.
Wann du ihn nutzt
- ✓Wenn du einen eigenständigen Assistenten willst, mit dem du sprechen oder den du wiederverwenden kannst.
- ✓Wenn du einem Agenten einen eigenen System-Prompt, Werkzeuge und Gedächtniseinstellungen geben musst.
- ✓Wenn ein Flow-Schritt auf einen gespeicherten Agenten verlinken soll, statt dieselbe Logik neu zu bauen.
Link zum Skill
https://github.com/windmill-labs/windmill/blob/main/system_prompts/auto-generated/skills/agents/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Hilf mir, in Windmill einen wiederverwendbaren Support-Assistenten zu erstellen, der Fragen aus unserer Produktdokumentation beantwortet.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill beschreibt den Agenten als Ressourcendatei, die das gewählte KI-Modell, seine Anweisungen, sein Gedächtnis und seine Werkzeuge enthält, sodass er an mehreren Stellen wiederverwendet werden kann.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Windmill AI Agents
An agent, as the Agents page lists it, is a saved LLM with its own system prompt, tools and
memory, stored as a resource of type ai_agent. It is built once and used in several places: it is
run from its own page (a chat, or a run form), a flow's AI agent step links to it by path, and it
can be shared in Slack channels from its page. Build a standalone agent when the user wants an
assistant they talk to or reuse. Build a flow when the agent is one step of a larger process.
File Format
An agent is a resource file like any other, {path}.resource.yaml (or .resource.json), with
resource_type: ai_agent.
Structure
{
"resource_type": "ai_agent",
"description": "Answers support questions from the product docs",
"value": {
"provider": { "kind": "openai", "resource": "$res:f/ai_providers/openai", "model": "gpt-4o" },
"system_prompt": "You are the support assistant for Acme. Answer from the docs; say so when they don't cover a question.",
"memory": { "kind": "compaction" },
"output_type": "text",
"tools": [
{
"id": "search_docs",
"summary": "search_documentation",
"description": "Search the product documentation. Use it whenever the user asks how a feature works.",
"value": {
"tool_type": "flowmodule",
"type": "script",
"path": "f/support/search_docs",
"input_transforms": {
"query": { "type": "ai" },
"index": { "type": "static", "value": "product_docs" }
}
}
}
]
}
}
The agent's own settings are plain values, not the input_transforms an agent step in a flow uses:
each is fixed when the agent is saved. Only a tool's arguments keep input_transforms (see Tools). $res: and $var: references inside it are resolved at run time.
provider(required):{ "kind", "resource": "$res:<path>", "model" }, plus an optionalreasoning_effort.resourcenames the workspace's AI provider resource of that kindsystem_prompt: how the agent behaves. Write it for the agent's job: who it serves, what it may do with its tools, and what it should refuse or hand backmemory: what lets the agent see earlier turns.{ "kind": "compaction" }keeps the whole conversation, summarizing its older part as it nears the model's context window; it is what a new agent starts with on its page.{ "kind": "off" }makes every run start from nothing, right for an agent that handles one request per runoutput_type:text(default) orimage. Image output ignores tools and needs S3 storage on the workspaceoutput_schema: a JSON schema the answer must follow, for an agent whose output a program readsmax_iterations: how many model and tool rounds a run may take, 1 to 1000 (default 10)streaming(default on),temperature,max_completion_tokens: as their names sayrun_on_behalf_of: runs from the agent's page take the identity the agent was deployed with rather than the caller's, so people can use it without access to what its tools touch.slack_anyonelets anyone in the Slack channels it is shared in ask it, and is kept only withrun_on_behalf_of. Set either only when the user asks: both widen who acts with the deployer's rightson_behalf_ofis the identity itself. Deploying sets it, so never write it
Tools
tools takes the same entries as a flow's AI agent step. value.tool_type is flowmodule for a
script or inline script the agent calls (or a nested agent or AI decision), mcp for an MCP server
({ "tool_type": "mcp", "resource_path": "$res:<path>", "include_tools": [], "exclude_tools": [] }),
or websearch for web search ({ "tool_type": "websearch" }, summary Web Search).
- Write logic made for this agent as an inline
rawscripttool, as a flow writes its steps. Point ascripttool at a deployed script (path) only when one already does the job: a run calls the deployed version, so a script that exists only as a draft fails the run. An inline tool'svalueis a flow's rawscript step:{ "tool_type": "flowmodule", "type": "rawscript", "language": "bun", "content": "export async function main(query: string) { ... }", "input_transforms": { "query": { "type": "ai" } } } - A flow cannot be a tool: a run offered one fails with
Unsupported tool. Wrap it in a script that runs the flow - A flowmodule tool's
summaryis the name the agent calls it by: letters, num
Häufige Fragen
Soll ich einen Agenten oder einen Flow bauen?
Baue einen eigenständigen Agenten, wenn du einen Assistenten willst, mit dem du sprichst oder den du wiederverwendest. Baue einen Flow, wenn der Agent nur ein Schritt eines größeren Prozesses ist.
Wo wird der Agent gespeichert?
Als Ressourcendatei mit dem Ressourcentyp ai_agent, neben deinen übrigen Workspace-Dateien.
Kann der Agent Werkzeuge nutzen?
Ja. Du kannst dem Agenten Werkzeuge geben, etwa Skripte, die er aufrufen darf, jeweils mit einer kurzen Beschreibung, wann sie zu nutzen sind.
Details
Originalbeschreibung des Autors
MUST use when creating or changing an AI agent, the reusable `ai_agent` resource the Agents page lists.
repo: windmill-labs/windmill
Beliebtheit
- GitHub-Sterne
- 18k
- Platz im Ranking
- #10627
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
commit
18kHilft deinem Agenten, eine saubere einzeilige Git-Commit-Nachricht im konventionellen Format zu schreiben und nur die geänderten Dateien zu stagen.
pr
18kHilft deinem Agenten, einen Entwurf eines Pull Requests auf GitHub mit klarem Titel und Beschreibung zu öffnen und danach die Prüfrunden zu begleiten.
cli-commands
18kHilft deinem Agenten, das Windmill-Kommandozeilenwerkzeug zu nutzen, um Skripte, Flows, Apps und den Job-Verlauf zu verwalten.
datatables
18kHilft deinem Agenten, eine Windmill-Datentabelle sicher zu ändern, mit versionierten Migrationen, Rückgängig-Schritten und korrekten Berechtigungen.
Ähnliche Skills
add-model-provider
394kLässt deinen Agenten einen neuen KI-Modellanbieter mit sicheren Befehlen an OpenClaw anbinden, API-Schlüssel nicht im Klartext speichern und einen Live-Test starten.
acp-router
394kHilft deinem Agenten, eine Aufgabe über OpenClaw an einen Coding-Assistenten wie Claude Code oder Cursor zu senden, damit die Arbeit in diesem Tool läuft.
browser-automation
394kBringt deinem Agenten bei, Webseiten Schritt für Schritt zu steuern, einschließlich Anmeldungen, Tabs und Wiederherstellung, wenn eine Seite nicht mehr reagiert.