← 返回 Skills 市场
cmanfre7

Web Deploy

作者 cmanfre7 · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
3479
总下载
1
收藏
11
当前安装
1
版本数
在 OpenClaw 中安装
/install web-deploy
功能描述
Build, preview, and deploy websites, web apps, and APIs using Vercel, Railway, GitHub Pages, or local Canvas environments.
使用说明 (SKILL.md)

web-deploy

Build and deploy websites, web apps, and APIs to production.

Local Preview Workflow

# Static site
npx http-server ./dist -p 8080 -c-1

# Next.js
npm run dev          # Development (hot reload)
npm run build && npm run start  # Production preview

# FastAPI
uvicorn app.main:app --reload --port 8000

# Vite-based
npm run dev          # Dev server
npm run build && npx serve dist  # Production preview

Deployment Targets

Vercel (Frontend / Next.js / Static)

# First time setup
npx vercel link

# Preview deployment
npx vercel

# Production deployment
npx vercel --prod

# Environment variables
npx vercel env add SECRET_KEY

Best for: Next.js apps, React SPAs, static sites, serverless functions.

Config: vercel.json (usually not needed for Next.js)

{
  "buildCommand": "npm run build",
  "outputDirectory": "dist",
  "framework": "nextjs"
}

Railway (Backend / APIs / Databases)

# First time setup
railway login
railway init

# Deploy
railway up

# Add database
railway add --plugin postgresql

# Environment variables
railway variables set SECRET_KEY=value

# View logs
railway logs

Best for: Backend APIs, databases, long-running processes, Docker containers.

GitHub Pages (Static Sites)

# Using gh-pages package
npm install -D gh-pages
# Add to package.json scripts: "deploy": "gh-pages -d dist"
npm run build && npm run deploy

Best for: Documentation, simple static sites, project pages.

Canvas (Clawdbot Workspace)

Deploy to ~/clawd/canvas/ for local serving through the clawdbot gateway.

cp -r ./dist/* ~/clawd/canvas/my-project/

Pre-Deploy Checklist

  • Build succeeds locally (npm run build / python -m build)
  • No TypeScript/lint errors
  • Tests pass
  • Environment variables set on target platform
  • .env / secrets NOT in git
  • robots.txt and sitemap.xml if public site
  • Favicon and meta tags set
  • HTTPS configured (automatic on Vercel/Railway)
  • Error pages (404, 500) configured
  • Performance: images optimized, code split, no huge bundles

Rollback

# Vercel — redeploy previous
npx vercel rollback

# Railway — redeploy previous
railway rollback

# Git-based — revert and push
git revert HEAD && git push

Domain Setup

# Vercel
npx vercel domains add mydomain.com

# DNS: Point CNAME to cname.vercel-dns.com
# Or A record to 76.76.21.21
安全使用建议
This skill is an instruction-only deployment guide and appears coherent with its purpose. Before using it, keep these points in mind: - The file only suggests commands — it does not itself install anything or request credentials. You will need to run CLI tools (vercel, railway, gh-pages, npx, etc.) and those tools will require you to authenticate; that authentication is handled by those CLIs and may store tokens locally. - npx runs packages from the npm registry if a local binary isn't present. Verify command names (e.g., `vercel`, `http-server`, `serve`) are correct and from official packages to avoid typosquatting risks. - Do not commit secrets to git or include .env contents in your build artifacts; the guide already warns about this. - The guide includes copying files to ~/clawd/canvas — ensure you understand and trust that local path and its purpose before copying site files there. - If you want stronger assurance, install the official CLIs from vendor documentation (rather than running one-off npx invocations), and verify the source of any package before executing it.
功能分析
Type: OpenClaw Skill Name: web-deploy Version: 1.0.0 The skill bundle provides standard commands and instructions for building and deploying web applications to various platforms (Vercel, Railway, GitHub Pages, and a local Clawdbot workspace). All commands, including file system operations like `cp -r ./dist/* ~/clawd/canvas/my-project/`, are directly aligned with the stated purpose of web deployment and involve common CLI tools. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts designed to harm the agent or its environment. The file system access is limited to copying build artifacts to a designated local deployment path, which is a legitimate function for a deployment skill.
能力评估
Purpose & Capability
The SKILL.md provides a coherent set of deployment and local-preview commands for static sites, Next.js, Vite, FastAPI and deployment targets (Vercel, Railway, GitHub Pages, and a local 'clawd/canvas' folder). There are no unrelated requirements (no unexpected env vars, binaries, or config paths).
Instruction Scope
Instructions stay within the scope of building, previewing, and deploying web apps. They instruct using standard CLIs (vercel, railway, gh-pages) and local copy commands. The doc does not instruct reading unrelated files, exfiltrating data, or calling unexpected external endpoints.
Install Mechanism
No install spec or bundled code — this is instruction-only. Nothing will be written automatically to disk by the skill itself.
Credentials
The skill declares no required environment variables or credentials, which is reasonable for an instruction-only guide. However the commands it recommends (e.g., `railway login`, `npx vercel`, `npx vercel env add`) will prompt you to authenticate to third-party services and/or create environment variables on those platforms at runtime; the guide does not attempt to collect those secrets itself.
Persistence & Privilege
always is false and there are no instructions to modify other skills or global agent settings. The recommended CLIs may store authentication tokens locally when you run them, but the skill itself does not request persistent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install web-deploy
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /web-deploy 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
web-deploy v1.0.0 – Initial Release - Provides step-by-step guides for building and deploying web projects (websites, web apps, APIs) to production. - Includes quickstart workflows for local preview: static, Next.js, FastAPI, and Vite projects. - Documents deployment for Vercel (frontend), Railway (backend/APIs/databases), GitHub Pages (static), and Canvas (local server). - Features a comprehensive pre-deploy checklist for production readiness. - Explains rollback and custom domain configuration procedures for major platforms.
元数据
Slug web-deploy
版本 1.0.0
许可证
累计安装 11
当前安装数 11
历史版本数 1
常见问题

Web Deploy 是什么?

Build, preview, and deploy websites, web apps, and APIs using Vercel, Railway, GitHub Pages, or local Canvas environments. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3479 次。

如何安装 Web Deploy?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install web-deploy」即可一键安装,无需额外配置。

Web Deploy 是免费的吗?

是的,Web Deploy 完全免费(开源免费),可自由下载、安装和使用。

Web Deploy 支持哪些平台?

Web Deploy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Web Deploy?

由 cmanfre7(@cmanfre7)开发并维护,当前版本 v1.0.0。

💬 留言讨论