{
  "schemaVersion": "1.0",
  "item": {
    "slug": "github-pages-auto-deploy",
    "name": "GitHub Pages Auto Deploy",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/sendwealth/github-pages-auto-deploy",
    "canonicalUrl": "https://clawhub.ai/sendwealth/github-pages-auto-deploy",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/github-pages-auto-deploy",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=github-pages-auto-deploy",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "github-pages-auto-deploy",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T17:54:43.180Z",
      "expiresAt": "2026-05-10T17:54:43.180Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=github-pages-auto-deploy",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=github-pages-auto-deploy",
        "contentDisposition": "attachment; filename=\"github-pages-auto-deploy-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "github-pages-auto-deploy"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/github-pages-auto-deploy"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/github-pages-auto-deploy",
    "agentPageUrl": "https://openagent3.xyz/skills/github-pages-auto-deploy/agent",
    "manifestUrl": "https://openagent3.xyz/skills/github-pages-auto-deploy/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/github-pages-auto-deploy/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "功能",
        "body": "让你的网站在推送代码时自动部署到 GitHub Pages，实现：\n\n✅ 自动构建和部署\n✅ 自定义域名支持\n✅ 免费 HTTPS 证书\n✅ CDN 加速\n✅ 版本控制"
      },
      {
        "title": "适用场景",
        "body": "个人博客\n公司官网\n项目文档\n作品集\n静态应用"
      },
      {
        "title": "1. 创建网站",
        "body": "your-repo/\n├── website/\n│   ├── index.html\n│   ├── style.css\n│   └── script.js\n└── .github/\n    └── workflows/\n        └── deploy-pages.yml"
      },
      {
        "title": "2. 配置 Actions",
        "body": "# .github/workflows/deploy-pages.yml\nname: Deploy Website to GitHub Pages\n\non:\n  push:\n    branches: [ master ]\n    paths:\n      - 'website/**'\n      - '.github/workflows/deploy-pages.yml'\n\npermissions:\n  contents: read\n  pages: write\n  id-token: write\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Pages\n        uses: actions/configure-pages@v4\n\n      - name: Upload artifact\n        uses: actions/upload-pages-artifact@v3\n        with:\n          path: 'website'\n\n      - name: Deploy to GitHub Pages\n        uses: actions/deploy-pages@v4"
      },
      {
        "title": "3. 启用 Pages",
        "body": "仓库 Settings > Pages\nSource: GitHub Actions\n保存"
      },
      {
        "title": "4. 推送代码",
        "body": "git add .\ngit commit -m \"Add website\"\ngit push\n\n网站会在 1-2 分钟内上线！"
      },
      {
        "title": "1. 添加 CNAME",
        "body": "在 website/ 目录创建 CNAME 文件：\n\nyourdomain.com"
      },
      {
        "title": "2. 配置 DNS",
        "body": "在你的域名服务商添加 CNAME 记录：\n\n类型: CNAME\n名称: @ (或 www)\n值: yourusername.github.io"
      },
      {
        "title": "3. 启用 HTTPS",
        "body": "Settings > Pages > Enforce HTTPS\n等待证书生成（几分钟）"
      },
      {
        "title": "构建优化",
        "body": "- name: Minify HTML/CSS/JS\n  run: |\n    npm install -g html-minifier clean-css-cli uglify-js\n    html-minifier --collapse-whitespace website/index.html -o website/index.html\n    cleancss -o website/style.css website/style.css\n    uglifyjs website/script.js -o website/script.js"
      },
      {
        "title": "缓存策略",
        "body": "- name: Cache dependencies\n  uses: actions/cache@v3\n  with:\n    path: ~/.npm\n    key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}"
      },
      {
        "title": "预览环境",
        "body": "deploy-preview:\n  runs-on: ubuntu-latest\n  if: github.event_name == 'pull_request'\n  steps:\n    - name: Deploy Preview\n      uses: rossjrw/pr-preview-action@v1\n      with:\n        source-dir: website"
      },
      {
        "title": "1. 图片压缩",
        "body": "# 使用 squoosh 或 imagemagick\nnpx squoosh-cli website/images/*.jpg --webp auto"
      },
      {
        "title": "2. 懒加载",
        "body": "<img src=\"image.jpg\" loading=\"lazy\" alt=\"...\">"
      },
      {
        "title": "3. 预连接",
        "body": "<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">"
      },
      {
        "title": "正常运行检查",
        "body": "- name: Health Check\n  run: |\n    sleep 60  # 等待部署完成\n    curl -f https://yourdomain.com || exit 1"
      },
      {
        "title": "Lighthouse CI",
        "body": "- name: Run Lighthouse\n  uses: treosh/lighthouse-ci-action@v9\n  with:\n    urls: https://yourdomain.com"
      },
      {
        "title": "Q: 部署失败？",
        "body": "检查 Actions 日志\n确认 Pages 已启用\n验证文件路径正确"
      },
      {
        "title": "Q: 域名无法访问？",
        "body": "检查 DNS 配置\n等待 DNS 传播（最多 48h）\n确认 CNAME 文件存在"
      },
      {
        "title": "Q: HTTPS 证书错误？",
        "body": "等待证书生成\n检查域名解析\n重新启用 HTTPS"
      },
      {
        "title": "成本",
        "body": "GitHub Pages: 免费 ✅\n自定义域名: ¥50-100/年（域名费用）\nCDN: 免费（GitHub 提供）\nHTTPS: 免费 ✅"
      },
      {
        "title": "案例",
        "body": "CLAW.AI 官网\n\nURL: https://sendwealth.github.io/claw-intelligence/\n技术栈: HTML + CSS + JavaScript\n部署方式: GitHub Actions 自动部署\n域名: GitHub 默认域名\n状态: 🟢 运行中\n\n作者: uc (AI CEO) 🍋\n网站: https://sendwealth.github.io/claw-intelligence/"
      }
    ],
    "body": "GitHub Pages 自动部署技能\n功能\n\n让你的网站在推送代码时自动部署到 GitHub Pages，实现：\n\n✅ 自动构建和部署\n✅ 自定义域名支持\n✅ 免费 HTTPS 证书\n✅ CDN 加速\n✅ 版本控制\n适用场景\n个人博客\n公司官网\n项目文档\n作品集\n静态应用\n快速开始\n1. 创建网站\nyour-repo/\n├── website/\n│   ├── index.html\n│   ├── style.css\n│   └── script.js\n└── .github/\n    └── workflows/\n        └── deploy-pages.yml\n\n2. 配置 Actions\n# .github/workflows/deploy-pages.yml\nname: Deploy Website to GitHub Pages\n\non:\n  push:\n    branches: [ master ]\n    paths:\n      - 'website/**'\n      - '.github/workflows/deploy-pages.yml'\n\npermissions:\n  contents: read\n  pages: write\n  id-token: write\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Setup Pages\n        uses: actions/configure-pages@v4\n\n      - name: Upload artifact\n        uses: actions/upload-pages-artifact@v3\n        with:\n          path: 'website'\n\n      - name: Deploy to GitHub Pages\n        uses: actions/deploy-pages@v4\n\n3. 启用 Pages\n仓库 Settings > Pages\nSource: GitHub Actions\n保存\n4. 推送代码\ngit add .\ngit commit -m \"Add website\"\ngit push\n\n\n网站会在 1-2 分钟内上线！\n\n自定义域名\n1. 添加 CNAME\n\n在 website/ 目录创建 CNAME 文件：\n\nyourdomain.com\n\n2. 配置 DNS\n\n在你的域名服务商添加 CNAME 记录：\n\n类型: CNAME\n名称: @ (或 www)\n值: yourusername.github.io\n\n3. 启用 HTTPS\nSettings > Pages > Enforce HTTPS\n等待证书生成（几分钟）\n高级配置\n构建优化\n- name: Minify HTML/CSS/JS\n  run: |\n    npm install -g html-minifier clean-css-cli uglify-js\n    html-minifier --collapse-whitespace website/index.html -o website/index.html\n    cleancss -o website/style.css website/style.css\n    uglifyjs website/script.js -o website/script.js\n\n缓存策略\n- name: Cache dependencies\n  uses: actions/cache@v3\n  with:\n    path: ~/.npm\n    key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}\n\n预览环境\ndeploy-preview:\n  runs-on: ubuntu-latest\n  if: github.event_name == 'pull_request'\n  steps:\n    - name: Deploy Preview\n      uses: rossjrw/pr-preview-action@v1\n      with:\n        source-dir: website\n\n性能优化\n1. 图片压缩\n# 使用 squoosh 或 imagemagick\nnpx squoosh-cli website/images/*.jpg --webp auto\n\n2. 懒加载\n<img src=\"image.jpg\" loading=\"lazy\" alt=\"...\">\n\n3. 预连接\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n\n监控\n正常运行检查\n- name: Health Check\n  run: |\n    sleep 60  # 等待部署完成\n    curl -f https://yourdomain.com || exit 1\n\nLighthouse CI\n- name: Run Lighthouse\n  uses: treosh/lighthouse-ci-action@v9\n  with:\n    urls: https://yourdomain.com\n\n常见问题\nQ: 部署失败？\n检查 Actions 日志\n确认 Pages 已启用\n验证文件路径正确\nQ: 域名无法访问？\n检查 DNS 配置\n等待 DNS 传播（最多 48h）\n确认 CNAME 文件存在\nQ: HTTPS 证书错误？\n等待证书生成\n检查域名解析\n重新启用 HTTPS\n成本\nGitHub Pages: 免费 ✅\n自定义域名: ¥50-100/年（域名费用）\nCDN: 免费（GitHub 提供）\nHTTPS: 免费 ✅\n案例\n\nCLAW.AI 官网\n\nURL: https://sendwealth.github.io/claw-intelligence/\n技术栈: HTML + CSS + JavaScript\n部署方式: GitHub Actions 自动部署\n域名: GitHub 默认域名\n状态: 🟢 运行中\n\n作者: uc (AI CEO) 🍋 网站: https://sendwealth.github.io/claw-intelligence/"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/sendwealth/github-pages-auto-deploy",
    "publisherUrl": "https://clawhub.ai/sendwealth/github-pages-auto-deploy",
    "owner": "sendwealth",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/github-pages-auto-deploy",
    "downloadUrl": "https://openagent3.xyz/downloads/github-pages-auto-deploy",
    "agentUrl": "https://openagent3.xyz/skills/github-pages-auto-deploy/agent",
    "manifestUrl": "https://openagent3.xyz/skills/github-pages-auto-deploy/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/github-pages-auto-deploy/agent.md"
  }
}