What problem does it solve? Writing R scripts for the Windmill platform requires knowing its conventions: a mandatory main function, type mappings between R and Windmill inputs, built-in helpers for resources and variables, 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 - Windmill-native R structure: Enforces the required main function pattern, correct R-to-Windmill type mappings (numeric, character, logical, list), and JSON-serializable return values. - CLI workflow guidance: Distinguishes wmill script preview for local iteration from wmill script run for deployed versions, and prevents accidental deploys when the user only wants to test. - Metadata synchronization: Keeps .lock files, .script.yaml input schemas, and wmill-lock.yaml content hashes in sync after edits via wmill generate-metadata. - Use Case: A data engineer asks for an R script that reads a PostgreSQL resource and returns aggregated results; the Skill produces a valid main function using get_resource, then previews it locally with sample arguments before any deploy. ## Quick Start Write a Windmill R script that fetches a resource and returns a JSON summary, then preview it locally with sample arguments.