Validate the deploy kit
validate_deploy_kitValidates a Plesk deploy kit by syntax-checking scripts, parsing workflows, checking safety settings and secrets, and running release manager tests in a temporary folder.
Instructions
Checks the deploy kit in a project (deploy/plesk/ and .github/workflows/deploy-plesk.yml) without touching anything outside a temporary folder. It runs bash -n on every script, shellcheck if installed, a YAML parse of the workflows, and checks of the workflow’s safety settings (StrictHostKeyChecking=yes, the production environment, deploys never cancelled, the SSH key removed, read-only permissions, callable CI). It confirms that the release manager kept every safety check and that a backup runs before migrations, and scans for secrets (reporting file and line, never the value). It also runs the release manager’s test suite against the project’s own copy in a temporary folder, with stand-ins for pm2, node and the network. Use it after generate_deploy_kit writes the kit, and after any change to it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | The app name, if deploy/plesk holds more than one *-deploy script | |
| project_dir | No | Absolute path of the repository root. Defaults to the open project in Claude Code. | |
| run_release_manager_tests | No | Run the release manager suite (about 20 seconds) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| app | No | ||
| checks | Yes | ||
| project_dir | Yes |