Deploy static websites to Static.app hosting. Use when the user wants to deploy, upload, or host a static site on Static.app. Triggers on phrases like "deploy to static.app", "upload to static", "host on static.app", "static.app deploy", or when working with the Static.app hosting service.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install static-app或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install static-app⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/static-app/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Static Website Hosting - Static.app description: Deploy static websites to Static.app hosting. Use when the user wants to deploy, upload, or host a static site on Static.app. Triggers on phrases like "deploy to static.app", "upload to static", "host on static.app", "static.app deploy", or when working with the Static.app hosting service. ---
Deploy static websites and applications to Static.app hosting directly from OpenClaw.
All Static.app operations in your workspace use a dedicated folder structure:
workspace/
└── staticapp/ # Main folder for all Static.app operations
├── new-site/ # New sites created locally
└── {pid}/ # Downloaded existing sites (by PID)
staticapp/ subfolders before deploymentstaticapp/{pid}/ for editingStatic.app automatically creates clean URLs from your filenames:
| File | URL | |------|-----| | index.html | / (homepage) | | about.html | /about | | portfolio.html | /portfolio | | contact.html | /contact |
No subdirectories needed! Just create .html files in the root folder.
my-site/
├── index.html # Homepage → /
├── about.html # About page → /about
├── portfolio.html # Portfolio → /portfolio
├── contact.html # Contact → /contact
├── style.css # Stylesheet
├── js/ # JavaScript files
│ ├── main.js
│ └── utils.js
└── images/ # Images folder
├── logo.png
└── photo.jpg
For JS apps, build first, then deploy the dist (or build) folder:
# Build your app
npm run build
# Deploy the dist folder
node scripts/deploy.js ./dist
sk_)STATIC_APP_API_KEY env var# Create your pages
echo '<h1>Home</h1>' > index.html
echo '<h1>About</h1>' > about.html
echo '<h1>Portfolio</h1>' > portfolio.html
# Deploy
node scripts/deploy.js
node scripts/deploy.js ./my-site
node scripts/deploy.js . --pid olhdscieyr
node scripts/list.js
node scripts/files.js YOUR_PID
Options:
--raw — Output raw JSON-k — Specify API keynode scripts/delete.js YOUR_PID
Options:
-f, --force — Skip confirmation prompt-k — Specify API keyDownload an existing site to your workspace for editing:
node scripts/download.js YOUR_PID
This will:
staticapp/{pid}/Options:
-p, --pid — Site PID to download-o, --output — Custom output directory (default: ./staticapp/{pid})-k — Specify API key--raw — Output raw JSON responseExample:
# Download site to default location
node scripts/download.js abc123
# Download to custom folder
node scripts/download.js abc123 -o ./my-site
node scripts/deploy.js [SOURCE_DIR] [OPTIONS]
Arguments:
SOURCE_DIR Directory to deploy (default: current directory)
Options:
-k, --api-key API key (or set STATIC_APP_API_KEY env var)
-p, --pid Project PID to update existing site
-e, --exclude Comma-separated exclude patterns
--keep-zip Keep zip archive after deployment
The following are automatically excluded from deployment:
node_modules.git, .github*.mdpackage*.json.env.openclaw.html pagesimages/ folder or rootjs/ folder or rootdist/ or build/ folder after npm run build# 1. Build your React/Vue/Angular app
npm run build
# 2. Deploy the build output
node scripts/deploy.js ./dist --pid YOUR_PID
POST https://api.static.app/v1/sites/ziparchive (zip file) and optional pidGET https://api.static.app/v1/sitesAccept: application/jsonGET https://api.static.app/v1/sites/files/{pid}Accept: application/jsonDELETE https://api.static.app/v1/sites/{pid}Accept: application/jsonGET https://api.static.app/v1/sites/download/{pid}Accept: application/jsonarchiver — Zip archive creationform-data — Multipart form encodingnode-fetch — HTTP requestsadm-zip — Zip extractionInstall with: cd scripts && npm install
On success, the script outputs:
✅ Deployment successful!
🌐 Site URL: https://xyz.static.app
📋 PID: abc123
STATIC_APP_URL=https://xyz.static.app
STATIC_APP_PID=abc123
STATIC_APP_API_KEY env var or --api-key安装 Static App 后,可以对 AI 说这些话来触发它
Help me get started with Static App
Explains what Static App does, walks through the setup, and runs a quick demo based on your current project
Use Static App to deploy static websites to Static
Invokes Static App with the right parameters and returns the result directly in the conversation
What can I do with Static App in my developer & devops workflow?
Lists the top use cases for Static App, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/static-app/ 目录(个人级,所有项目可用),或 .claude/skills/static-app/(项目级)。重启 AI 客户端后,用 /static-app 主动调用,或让 AI 根据上下文自动发现并使用。
Static App 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Static App 可免费安装使用。请查阅仓库了解许可证信息。
Deploy static websites to Static.app hosting. Use when the user wants to deploy, upload, or host a static site on Static.app. Triggers on phrases like "deploy to static.app", "upload to static", "host on static.app", "static.app deploy", or when working with the Static.app hosting service.
Static App 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Static App
Identifies repetitive steps in your workflow and sets up Static App to handle them automatically