What problem does it solve? Writing R scripts for the Windmill platform requires knowing its specific conventions: a mandatory main function, type mappings between R and Windmill, built-in helpers for variables and resources, and the correct CLI commands for previewing versus deploying. This Skill encodes all of those rules so generated scripts work on the first run. ## Core Features & Use Cases - Convention-compliant R scripts: Generates scripts with a required main function, correct parameter defaults, and JSON-serializable return values. - Platform integration guidance: Shows how to use get_variable and get_resource helpers, library() auto-resolution, and execution annotations like sandbox mode. - Correct CLI workflow: Distinguishes wmill script preview for local iteration from wmill script run and wmill sync push for deployed code, preventing accidental deploys of untested changes. - Use Case: A data analyst asks for an R script that reads a Postgres resource and transforms a dataset; the Skill produces a valid Windmill R script and offers to run wmill script preview with sample arguments. ## Quick Start Write a Windmill R script that fetches a database resource and returns a summary, then preview it locally with sample arguments.