About vercel-deploy
vercel-deploy is a skill for packaging and deploying a project to Vercel, returning preview and claim URLs. It suits developers who want to publish a project from a directory or existing tarball without logging in first.
Key features
- 01Deploy a directory or .tgz file
- 02Exclude node_modules and .git
- 03Detect frameworks from package.json
- 04Prepare single-file static HTML
- 05Return URLs and JSON output
Use cases
- 01Create a Vercel preview for a project
- 02Deploy an existing project tarball
- 03Publish a static HTML page
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ vercel-labs/ vercel-deploy-codex-skill --skill vercel-deployAfter installing, type/vercel-deployin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
openai.yamlassets/vercel.svgscripts/deploy.shDetails
From the project READMEVercel Deploy
Deploy any project to Vercel instantly. No authentication required.
How It Works
- Packages your project into a
.tar.gz(excludesnode_modulesand.git) - Auto-detects framework from
package.json - Uploads to deployment service
- Returns Preview URL (live site) and Claim URL (transfer to your Vercel account)
Usage
bash scripts/deploy.sh [path]
Arguments:
path- Directory to deploy, or a.tgzfile (defaults to current directory)
If you pass a directory, the script will create a .tar.gz before upload.
Examples:
# Deploy current directory
bash scripts/deploy.sh
# Deploy specific project
bash scripts/deploy.sh /path/to/project
# Deploy existing tarball
bash scripts/deploy.sh /path/to/project.tgz
Packaging Rules
- Exclude
node_modulesand.git - If no
package.json, keepframeworkasnull - For static HTML with a single
.htmlfile, rename it toindex.htmlbefore packaging
Output
Preparing deployment...
Creating deployment package...
Deploying...
✓ Deployment successful!
Preview URL: https://skill-deploy-abc123.vercel.app
Claim URL: https://vercel.com/claim-deployment?code=...
The script also outputs JSON to stdout for programmatic use.
{
"previewUrl": "https://skill-deploy-abc123.vercel.app",
"claimUrl": "https://vercel.com/claim-deployment?code=...",
"deploymentId": "dpl_...",
"projectId": "prj_..."
}
Framework Detection
The script auto-detects frameworks from package.json. Supported frameworks include:
- React: Next.js, Gatsby, Create React App, Remix, React Router
- Vue: Nuxt, Vitepress, Vuepress, Gridsome
- Svelte: SvelteKit, Svelte, Sapper
- Other Frontend: Astro, Solid Start, Angular, Ember, Preact, Docusaurus
- Backend: Express, Hono, Fastify, NestJS, Elysia, h3, Nitro
- Build Tools: Vite, Parcel
- And more: Blitz, Hydrogen, RedwoodJS, Storybook, Sanity, etc.
For static HTML projects (no package.json), framework is set to null.
Static HTML Projects
For projects without a package.json:
- If there's a single
.htmlfile not namedindex.html, it gets renamed automatically - This ensures the page is served at the root URL (
/)
Present Results to User
Always show both URLs:
✓ Deployment successful!
Preview URL: https://skill-deploy-abc123.vercel.app
Claim URL: https://vercel.com/claim-deployment?code=...
View your site at the Preview URL.
To transfer this deployment to your Vercel account, visit the Claim URL.
Troubleshooting
Network Egress Error
If deployment fails due to network restrictions, tell the user:
Deployment failed due to network restrictions. To fix this:
1. Allow outbound access to *.vercel.com
2. Try deploying again