← Back to Skills Marketplace
kofna3369

中文 网站部署

by Kofna3369 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
43
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install chinese-axiomata-deploy
Description
在约15分钟内部署公共网站(HTML + Docker + DNS + 域名)。触发词:'deploy website'、'build and deploy'、'create web presence'、'launch site'、'deploy to web'、'publish website'、'setup...
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install chinese-axiomata-deploy
  3. After installation, invoke the skill by name or use /chinese-axiomata-deploy
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
中文版本首次发布
v1.0.1
中文版本首次发布
v1.0.0
中文版本首次发布
Metadata
Slug chinese-axiomata-deploy
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 中文 网站部署?

在约15分钟内部署公共网站(HTML + Docker + DNS + 域名)。触发词:'deploy website'、'build and deploy'、'create web presence'、'launch site'、'deploy to web'、'publish website'、'setup... It is an AI Agent Skill for Claude Code / OpenClaw, with 43 downloads so far.

How do I install 中文 网站部署?

Run "/install chinese-axiomata-deploy" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 中文 网站部署 free?

Yes, 中文 网站部署 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 中文 网站部署 support?

中文 网站部署 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 中文 网站部署?

It is built and maintained by Kofna3369 (@kofna3369); the current version is v1.0.2.

💬 Comments