What problem does it solve? Writing PHP scripts for the Windmill platform requires following specific conventions — a main function, resource type classes, comment-based dependency declarations, and metadata files that must stay in sync. This Skill encodes all of those rules so generated scripts work correctly on the first run. ## Core Features & Use Cases - Correct PHP script structure: Enforces the <?php header, a main function entrypoint, and resource type classes guarded by class_exists checks. - Dependency and resource handling: Declares Composer libraries via // require: comments and maps Windmill resources to typed PHP class parameters. - CLI workflow guidance: Distinguishes wmill script preview (local iteration) from wmill script run (deployed version) and keeps .lock, .script.yaml, and wmill-lock.yaml synchronized via wmill generate-metadata. - Use Case: You need a PHP script that queries a PostgreSQL database on Windmill. The Skill generates the script with a Postgresql resource class, previews it locally with sample arguments, and regenerates the lock metadata before you deploy. ## Quick Start Write a Windmill PHP script that accepts a PostgreSQL resource and a limit parameter, then preview it locally with sample arguments.