write-workflow-as-code

write-workflow-as-code is a skill for Claude Code, Codex from windmill-labs/windmill. It costs 43 tokens per session (7,940 once invoked), scanned A, original, no licence file.

A writing rule for Windmill Workflow-as-Code, which defines automated workflows in code instead of only through a visual editor.

In plain words
What is it for?
Writing or modifying Windmill workflows and their tasks, steps, waits, approvals, and related workflow code.
Why use it?
It ensures scripts that define Windmill workflows are written or changed with the required guidance.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Writing or modifying Windmill workflows and their tasks, steps, waits, approvals, and related workflow code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/windmill-labs/windmill/write-workflow-as-code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add windmill-labs/windmill --skill write-workflow-as-code
Clone the repo
git clone --depth 1 https://github.com/windmill-labs/windmill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for write-workflow-as-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/windmill-labs/windmill/write-workflow-as-code/github.svg)](https://agentmods.dev/skills/windmill-labs/windmill/write-workflow-as-code)
Your own site
<a href="https://agentmods.dev/skills/windmill-labs/windmill/write-workflow-as-code"><img src="https://agentmods.dev/badge/skills/windmill-labs/windmill/write-workflow-as-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for write-workflow-as-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/windmill-labs/windmill/write-workflow-as-code"><img src="https://agentmods.dev/badge/skills/windmill-labs/windmill/write-workflow-as-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,940 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 285
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 294
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 429
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 440
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.07940
Opus 5.5 $0.00017 $0.03176
Sonnet 5.5 $0.00009 $0.01588
Haiku 4.5 $0.00004 $0.00794

Measured 14d ago against content hash fa03e441a138, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-workflow-as-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

system_prompts/auto-generated/skills/write-workflow-as-code/SKILL.md · 621 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +11 lines fa03e441a138
  2. 27d ago Changed · -2 lines ae2057be6a56
  3. 1mo ago Changed · +15 lines 478974f2b619
  4. 1mo ago Changed · +8 lines b75bcc01648f
  5. 1mo ago Changed · +54 lines d0e217b52e88
  6. 1mo ago First seen · 535 lines · 43 tokens per session scan A be2654a0b551

Subscribe to this mod's changes

write-workflow-as-code is a skill published in the GitHub repository windmill-labs/windmill (18,279 stars, last pushed today), with no licence file. It adds 43 tokens to every session and 7,940 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

optimizing-clickhouse-and-hogql-queries

Workflow for optimizing ClickHouse and HogQL queries. Use when a HogQL query, query runner, insight, or report is too slow; when a hand-written ClickHouse query (via syncexecute or in a migration) is too slow; when ClickHouse times out or hits memory limits; when investigating a slow system.querylog row; or when…

PostHog/posthog · 177 tokens

dynamic-workflows

Designs and runs task-specific JavaScript harnesses with the workflow tool. Use for broad, long-running, highly structured, or adversarial work that benefits from many isolated agents: exhaustive audits, root-cause investigations, research, large triage queues, competing proposals, repeated verification, and…

PostHog/posthog · 93 tokens

adding-product-alerting

Recommended repo-engineering guide when adding alerting to a PostHog product or extending the shared alerts platform. Routes lifecycle state machines, AlertPolicy, destinations, HogFunction dispatch, email, fixed-cadence and calendar scheduling, insight evaluation, the AlertWizard, and shared alert editor components.…

PostHog/posthog · 97 tokens

adding-inbox-sources

Add a data warehouse table as a Self-driving Inbox signal source (the feature that ships GitHub, Linear, Zendesk, Jira, PagerDuty, Sentry, Snyk, Canny and others). A source syncs one warehouse table of actionable records (issues, tickets, conversations, incidents, findings, feedback, reviews) and the signals pipeline…

PostHog/posthog · 146 tokens

nx-plugin-for-aws

Scaffold and build cloud-native applications on AWS using @aws/nx-plugin generators. Use when the user wants to create workspaces, generate projects, or scaffold infrastructure with the Nx Plugin for AWS.

awslabs/nx-plugin-for-aws · 46 tokens

adding-mcp-store-servers

Add a third-party MCP server (Linear, Notion, GitHub, ...) to the PostHog MCP store catalog. Use when asked to "add X to the MCP store", expand the MCP server marketplace, or fix a broken catalog entry. Covers finding the vendor's remote MCP endpoint, probing it (handshake, OAuth discovery, DCR), authoring the catalog…

PostHog/posthog · 107 tokens