| name | deploy |
| description | Deploy to staging or production environment with pre-flight checks |
| disable-model-invocation | true |
| context | fork |
| allowed-tools | Bash(pnpm *), Bash(npm *), Bash(git *), Bash(gh *) |
| argument-hint | [staging|production] |
Deploy to $ARGUMENTS environment.
Pre-flight Checks
- Ensure working directory is clean (
git status)
- Ensure you're on the correct branch
- Run the full test suite
- Run type checking
- Run linting
- Build the application
Deploy
If all checks pass:
- staging: Deploy to staging environment
- production: Create a release tag and deploy
Post-deploy
- Verify the deployment health
- Report the deployed version and URL
Safety
- If ANY pre-flight check fails, stop immediately and report the failure
- Never deploy from an unclean working directory
- Never deploy production without all tests passing