DevOps v0.1.0

statichub

Deploy AI-generated static assets with StaticHub CLI. Use when a user wants to publish files with `statichub deploy...

patrick0308 更新于 2026-05-25 1 浏览
下载 SKILL

技能说明

Deploy AI-generated static assets with StaticHub CLI. Use when a user wants to publish files with `statichub deploy <path>`, where `<path>` must be an explicit non-empty directory or a non-empty `.html` file.

使用场景

Deploy AI-generated static assets with StaticHub CLI. Use when a user wants to publish files with `statichub deploy <path>`, where `<path>` must be an explicit non-empty directory or a non-empty `.html` file.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/statichub
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 16 kB
SKILL.md text/markdown
---
name: statichub
description: Deploy AI-generated static assets with StaticHub CLI. Use when a user wants to publish files with `statichub deploy <path>`, where `<path>` must be an explicit non-empty directory or a non-empty `.html` file.
---

# StaticHub

## Rules

1. Always use an explicit path: `statichub deploy <path>`.
2. Never default to `.`.
3. Accept only:
   - existing non-empty directory, or
   - existing non-empty `.html` file.
4. If validation fails, stop and return repair commands.
5. If project name exists, use `--name`; otherwise deploy anonymously.

## Steps

1. Check CLI:
   - `command -v statichub`
   - `statichub --help`
   - If missing, install with one line:
     - `curl -sSL https://raw.githubusercontent.com/Patrick0308/statichub/main/scripts/install.sh | sh`
2. Validate `<path>` exists and is valid.
3. Run deploy:
   - Named: `statichub deploy <path> --name <project>`
   - Anonymous: `statichub deploy <path>`
4. On success, return `URL` and `Subdomain`.

## Real Example

Command:
- `statichub deploy ~/Downloads/eks-cost-optimization-roadmap.html`

Output:
```text
✅ Deploy successful!
   URL: http://b7kr7b.statichub.dev
   Subdomain: b7kr7b
```

The `URL` value is the live page URL.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。