What problem does it solve? Writing Go scripts for the Windmill platform requires a specific structure (package inner, exported main function, JSON-serializable return types) and a disciplined CLI workflow for previewing, running, and syncing metadata. This Skill ensures scripts are written correctly the first time and that local edits are tested without accidentally deploying untested code. ## Core Features & Use Cases - Correct Go Structure: Enforces the package inner convention, a lowercase main function, and ({return_type}, error) return signatures required by Windmill. - Preview vs Run Discipline: Distinguishes wmill script preview (test local edits) from wmill script run (deployed version) and wmill sync push (explicit deploys only), preventing accidental overwrites of workspace scripts. - Metadata Synchronization: Runs wmill generate-metadata after edits that change imports or main arguments so .lock, .script.yaml, and wmill-lock.yaml hashes stay consistent. - Use Case: You ask the AI to write a Go script that fetches data and returns a struct. The Skill produces a valid Windmill Go script, then offers to run wmill script preview with sample arguments and regenerates metadata after any import changes. ## Quick Start Write a Windmill Go script that takes a name and count as parameters and returns them as a JSON result, then preview it locally.