← 返回 Skills 市场
kofna3369

中文 网站部署

作者 Kofna3369 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
43
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install chinese-axiomata-deploy
功能描述
在约15分钟内部署公共网站(HTML + Docker + DNS + 域名)。触发词:'deploy website'、'build and deploy'、'create web presence'、'launch site'、'deploy to web'、'publish website'、'setup...
使用说明 (SKILL.md)

🌐 Axiomata Deploy — 网站部署技能

在约15分钟内部署公共网站

信息
版本 1.0.0 — 2026-05-07
状态 运行中

1. 目的和范围

目标

为任何 OpenClaw 代理提供使用 Docker、DNS 和域名配置部署公共网站的能力。

使用时机

触发器 行动
"部署网站" 开始部署流程
"创建网站" 初始化网站项目
"Docker 部署" 构建并推送 Docker 镜像
"域名设置" 配置 DNS
"完整栈部署" 执行完整部署管道

2. 部署架构

┌─────────────────────────────────────────────┐
│           网站部署架构                      │
├─────────────────────────────────────────────┤
│  1. 前端 (HTML/CSS/JS)                     │
│     → 静态网站或 SPA                        │
│                                             │
│  2. Docker 容器化                           │
│     → nginx 或自定义容器                    │
│                                             │
│  3. DNS 配置                                │
│     → A 记录指向服务器 IP                  │
│                                             │
│  4. 域名                                    │
│     → 指向公共端点                          │
└─────────────────────────────────────────────┘

3. 部署步骤

步骤 1:准备网站文件

# 创建网站目录
mkdir -p ~/websites/\x3Cproject-name>
cd ~/websites/\x3Cproject-name>

# 创建 index.html
cat > index.html \x3C\x3C 'EOF'
\x3C!DOCTYPE html>
\x3Chtml lang="zh-CN">
\x3Chead>
    \x3Cmeta charset="UTF-8">
    \x3Ctitle>我的网站\x3C/title>
\x3C/head>
\x3Cbody>
    \x3Ch1>你好,世界!\x3C/h1>
\x3C/body>
\x3C/html>
EOF

步骤 2:创建 Dockerfile

cat > Dockerfile \x3C\x3C 'EOF'
FROM nginx:alpine
COPY . /usr/share/nginx/html
EXPOSE 80
EOF

步骤 3:构建 Docker 镜像

# 构建镜像
docker build -t \x3Cusername>/\x3Cproject-name>:latest .

# 测试本地运行
docker run -d -p 8080:80 \x3Cusername>/\x3Cproject-name>:latest

步骤 4:推送到镜像仓库

# 登录 Docker Hub
docker login

# 推送
docker push \x3Cusername>/\x3Cproject-name>:latest

步骤 5:服务器部署

# 在服务器上拉取
docker pull \x3Cusername>/\x3Cproject-name>:latest

# 运行容器
docker run -d -p 80:80 --name \x3Cproject-name> \x3Cusername>/\x3Cproject-name>:latest

步骤 6:DNS 配置

1. 登录域名注册商
2. 添加 DNS 记录:
   - A 记录:@ → \x3C服务器IP>
   - CNAME:www → @
3. 等待 DNS 传播(5分钟-48小时)

4. 工具要求

工具 用途 必需
exec 执行 Docker 命令
write 创建文件
read 读取配置 可选

必需环境

环境 要求
Docker 已安装
Docker Hub 账户 已有
服务器 SSH 访问
域名 已注册

5. 快速部署模板

# 一键部署
PROJECT=\x3Cproject-name>
USERNAME=\x3Cdockerhub-username>
DOMAIN=\x3Cdomain.com>

# 1. 创建项目
mkdir -p ~/$PROJECT && cd ~/$PROJECT

# 2. 创建网站文件
cat > index.html \x3C\x3C 'EOF'
\x3C!DOCTYPE html>
\x3Chtml>
\x3Chead>\x3Ctitle>$PROJECT\x3C/title>\x3C/head>
\x3Cbody>\x3Ch1>$PROJECT 已上线!\x3C/h1>\x3C/body>
\x3C/html>
EOF

# 3. Dockerfile
echo 'FROM nginx:alpine COPY . /usr/share/nginx/html EXPOSE 80' > Dockerfile

# 4. 构建并推送
docker build -t $USERNAME/$PROJECT:latest .
docker push $USERNAME/$PROJECT:latest

echo "部署完成!镜像:$USERNAME/$PROJECT:latest"

6. 边缘情况

情况 处理方法
Docker 未安装 先安装 Docker
域名被占用 使用子域名
服务器无 SSH 配置 SSH 密钥
端口冲突 更改容器端口映射
DNS 未传播 使用 IP 直接测试

7. 验证

# 检查容器运行
docker ps | grep \x3Cproject-name>

# 检查网站响应
curl -I https://\x3Cdomain.com>

# 检查 SSL(如果使用 HTTPS)
openssl s_client -connect \x3Cdomain.com>:443

In Altum Per Deploy. 🌐 Axiomata Deploy v1.0

安全使用建议
Use this skill only if you want the agent to help run Docker commands and make public deployment changes. Before any execution, confirm the exact working directory, files to include, Docker image name, registry visibility, server, port, domain, and DNS records. Use a clean project directory with a .dockerignore file, pin Docker images, use least-privilege credentials, and manually approve Docker push, server run, and DNS-change steps.
功能分析
Type: OpenClaw Skill Name: chinese-axiomata-deploy Version: 1.0.2 The skill bundle provides a legitimate and transparent workflow for deploying a static website using Docker and Nginx. The instructions in SKILL.md guide the agent through standard development tasks such as creating project directories, building Docker images, and pushing to Docker Hub. No evidence of data exfiltration, unauthorized access, or malicious prompt injection was found.
能力评估
Purpose & Capability
The stated purpose and documented actions align: it is an instruction-only skill for building a simple site, packaging it with Docker, pushing an image, running it on a server, and configuring DNS.
Instruction Scope
The deployment flow includes high-impact publish and infrastructure actions such as docker push, detached server containers, and DNS record changes, but the artifacts do not define explicit confirmation, rollback, path, domain, server, or registry-scope checks.
Install Mechanism
There is no install spec or executable code, but the registry metadata declares no required binaries or credentials while SKILL.md expects Docker, Docker Hub, SSH, and domain registrar access.
Credentials
Shell execution, file writes, Docker commands, server deployment, and DNS changes are proportionate to website deployment, but they affect local and public infrastructure and are not tightly bounded in the instructions.
Persistence & Privilege
The skill creates persistent public effects through a detached Docker container and DNS records; this is expected for a website deployment skill but should be explicitly user-approved.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install chinese-axiomata-deploy
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /chinese-axiomata-deploy 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
中文版本首次发布
v1.0.1
中文版本首次发布
v1.0.0
中文版本首次发布
元数据
Slug chinese-axiomata-deploy
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

中文 网站部署 是什么?

在约15分钟内部署公共网站(HTML + Docker + DNS + 域名)。触发词:'deploy website'、'build and deploy'、'create web presence'、'launch site'、'deploy to web'、'publish website'、'setup... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 43 次。

如何安装 中文 网站部署?

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

中文 网站部署 是免费的吗?

是的,中文 网站部署 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

中文 网站部署 支持哪些平台?

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

谁开发了 中文 网站部署?

由 Kofna3369(@kofna3369)开发并维护,当前版本 v1.0.2。

💬 留言讨论