Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

deploy-preview

FreeRuns bundled scriptsNot checked

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…

zakelfassiby zakelfassi★ 18 GitHub stars

About this skill

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

  1. Verify branch is clean

    git status --porcelain
    

    If dirty, commit or stash before proceeding.

  2. Run tests locally

    npm test
    

    Do not deploy if tests fail.

  3. Push to remote

    git push origin HEAD
    
  4. Trigger preview deploy

    scripts/deploy-preview.sh
    

    This builds, uploads, and returns a preview URL.

  5. Verify the preview

    • Open the preview URL
    • Check: page loads, no console errors, key feature works
    • If broken: fix locally, re-push, re-deploy
  6. 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

Install deploy-preview in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

scripts/deploy-preview.sh

FAQ

What does the deploy-preview skill do?

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.

How do I install the deploy-preview skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the deploy-preview skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare deploy-preview with