Deploy preview
Skill zakelfassi/skills-driven-development/examples/webapp-starter/skills/deploy-preview
Agents that learn by doing — and remember how they did it. A methodology for AI agents to create, evolve, and share reusable skills.
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.
One thing 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.
What its author says it does
Copied from the file, not written here
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.
SKILL.md
1.7 KB, 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