Skip to content
Available/site-deploy

Site Deploy

Zero-account static site deployment and live preview hosting. Build any static site and publish it with one command. No account needed before your first deploy.

Added
October 13, 2026
deployhostingcli

What it does

A conversational deployment skill for AI coding agents (Claude Code, OpenAI Codex). Once added to your project, you can deploy any static site — React, Vue, Svelte, Next.js, Astro, or plain HTML — by simply saying:

/deploy preview

No accounts to create before your first deploy. No dashboards to visit. No config files to hand-edit. The skill handles detection, building, authentication, and hosting inline.

Core principles:

  • Zero-account first: Never ask the user to sign up before the first deploy. Auth happens inline, on-demand.
  • Provider-agnostic: The core logic is generic. Provider-specific details live in references/providers.md. Swap providers with /deploy provider <name>.
  • Framework-agnostic: Auto-detects Vite, Next.js, CRA, SvelteKit, Astro, Gatsby, Nuxt, or plain HTML.
  • Versioned deploys: /deploy save snapshots a build. /deploy ship publishes it. /deploy rollback reverts.
  • Agent-native: Designed for AI agents, not humans. Integrates with CLAUDE.md / AGENTS.md context.

Supported providers

ProviderCLIBest for
SurgesurgeZero-config, instant, temporary URLs (default)
NetlifynetlifyBranch previews, form handling, edge functions
VercelvercelServerless-ready, edge network, preview deployments
Cloudflare PageswranglerEdge network, Workers integration
GitHub Pagesgh-pagesFree forever, versioned by git tags

Adding a new provider = adding one entry to references/providers.md. No code changes needed.

Commands

CommandDescription
/deploy initDetect framework, scaffold .deploy/, first-time setup
/deploy previewBuild + publish to a temporary live URL
/deploy saveSave current build as a named version (no publish)
/deploy ship [version]Publish a saved version to the live URL
/deploy statusShow current live URL, last deploy, version history
/deploy teardownTake the site offline and free the URL
/deploy rollback [version]Re-publish a previous saved version
/deploy provider <name>Switch provider (surge, netlify, vercel, cloudflare, gh-pages)
/deploy syncRefresh agent context in CLAUDE.md / AGENTS.md

Architecture

┌─────────────────────────────────────┐
│           /deploy skill             │
│  ┌─────────┐  ┌─────────────────┐  │
│  │ Framework │  │   Provider      │ │
│  │ Detection │  │   Abstraction   │ │
│  └─────┬────┘  └─────────┬───────┘  │
│        │                │           │
│        ▼                ▼           │
│  references/      references/      │
│  frameworks.md    providers.md     │
│        │                │           │
│        └──────┬─────────┘           │
│              ▼                     │
│         .deploy/                   │
│    (config, history, versions)    │
└─────────────────────────────────────┘

Provider abstraction: All provider-specific logic is isolated in references/providers.md. The skill reads that file to get deploy command, auth command, token handling, teardown command, env var name, and SPA routing needs.

Quick start

  1. Copy this directory into your project's skills folder (e.g., .skills/deploy/).
  2. Run /deploy init — detects your framework, asks you to choose a provider, scaffolds .deploy/config.yml, and injects a deploy guard into CLAUDE.md and AGENTS.md.
  3. Run /deploy preview — builds your project and publishes it, returning a shareable URL instantly.
  4. Run /deploy save, then /deploy ship to publish to the live URL.

Project structure

When initialized in a project, it creates:

your-project/
├── .deploy/
│   ├── config.yml              # Project + provider config
│   ├── history.log             # Deploy history
│   ├── versions/               # Saved build snapshots
│   │   ├── v20260101-120000/
│   │   └── latest
│   └── .<provider>_token       # Auth token (gitignored)
├── CLAUDE.md                   # Injected deploy guard
└── AGENTS.md                   # Injected deploy guard

Security

  • Tokens never committed: All *_token files are automatically gitignored
  • Env file check: The skill refuses to deploy if .env is not gitignored
  • No secrets in YAML: config.yml never contains tokens — only the path to the token file
  • Pre-flight check: Before first deploy, verifies .gitignore covers token files

Integration with Iterate

Designed to work alongside iteration skills. After a successful code fix or improvement:

✅ Iteration complete. Run /deploy preview to publish the updated build.

Deploy history is optionally appended to .iterate/history.log, creating a unified timeline of code changes and deployments.

License: MIT

← Back to skills