Deploy preview
Skill zakelfassi/skills-driven-development/examples/webapp-starter/skills/deploy-preview
Deploy a preview branch to the staging environment for review. Use when a feature branch is ready for visual review, when someone asks to "deploy this for review", or before opening a PR.From its SKILL.md
npx -y skills add zakelfassi/skills-driven-development --skill deploy-previewAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 17 stars17 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 4 commands, including `git status --porcelain` and 3 more.
SKILL.md
1.7 KB, 316 tokens by cl100k_base, as published. Nobody here has run it
Deploy Preview
Deploy the current branch to a preview URL for review before merging.
Inputs
- Branch name (defaults to current branch)
- Environment (defaults to
staging)
Steps
-
Verify branch is clean
git status --porcelainIf dirty, commit or stash before proceeding.
-
Run tests locally
npm testDo not deploy if tests fail.
-
Push to remote
git push origin HEAD -
Trigger preview deploy
scripts/deploy-preview.shThis builds, uploads, and returns a preview URL.
-
Verify the preview
- Open the preview URL
- Check: page loads, no console errors, key feature works
- If broken: fix locally, re-push, re-deploy
-
Share the preview URL
- Post in the PR description
- Or share in the team channel
Conventions
- Preview URLs follow the pattern:
preview-{branch}.staging.example.com - Preview deploys expire after 7 days
- Only one preview per branch (re-deploying replaces the previous)
Edge Cases
- Branch name has slashes: The deploy script sanitizes
/to- - Large assets: Preview deploys skip video files >50MB
- Environment variables: Preview uses staging env vars, not production
What ships with it: 1 file
1.1 KB alongside SKILL.md, 1 of them executable
scripts/
- deploy-preview.shruns1.1 KB