skills/smithery.ai/write-script-php

write-script-php

SKILL.md

CLI Commands

Place scripts in a folder. After writing, tell the user they can run:

  • wmill script generate-metadata - Generate .script.yaml and .lock files
  • wmill sync push - Deploy to Windmill

Do NOT run these commands yourself. Instead, inform the user that they should run them.

Use wmill resource-type list --schema to discover available resource types.

PHP

Structure

The script must start with <?php and contain at least one function called main:

<?php
Installs
2
First Seen
Mar 22, 2026