用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/luokai0/ai-agent-skills-by-luo-kai --skill github-pages-auto-deploy命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Writers Room Story Engine mega-skill. Creates, structures, drafts, and revises compelling standalone stories from zero using premise generation, audience engagement, thematic design, character arcs, Story Spine structure, causal beats, worldbuilding in service of story, scene construction, and revision diagnostics. Use when developing short stories, standalone fiction, scripts, or narrative concepts from scratch or when improving weak drafts.
Browse Airtable bases and tables, inspect records, create records, and manage fields, comments, and table actions — powered by ClawLink.
Alibaba Cloud DNS (Alidns) CLI skill. Use to query, add, and update DNS records via aliyun-cli, including CNAME setup for Function Compute custom domains.
正在显示 SKILL.md
基于 SOC 职业分类
| name | github-pages-auto-deploy |
| description | Auto-deploy websites to GitHub Pages with custom domain support |
让你的网站在推送代码时自动部署到 GitHub Pages,实现:
your-repo/
├── website/
│ ├── index.html
│ ├── style.css
│ └── script.js
└── .github/
└── workflows/
└── deploy-pages.yml
# .github/workflows/deploy-pages.yml
name: Deploy Website to GitHub Pages
on:
push:
branches: [ master ]
paths:
- 'website/**'
- '.github/workflows/deploy-pages.yml'
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'website'
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
git add .
git commit -m "Add website"
git push
网站会在 1-2 分钟内上线!
在 website/ 目录创建 CNAME 文件:
yourdomain.com
在你的域名服务商添加 CNAME 记录:
类型: CNAME
名称: @ (或 www)
值: yourusername.github.io
- name: Minify HTML/CSS/JS
run: |
npm install -g html-minifier clean-css-cli uglify-js
html-minifier --collapse-whitespace website/index.html -o website/index.html
cleancss -o website/style.css website/style.css
uglifyjs website/script.js -o website/script.js
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
deploy-preview:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Deploy Preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: website
# 使用 squoosh 或 imagemagick
npx squoosh-cli website/images/*.jpg --webp auto
<img src="image.jpg" loading="lazy" alt="...">
<link rel="preconnect" href="https://fonts.googleapis.com">
- name: Health Check
run: |
sleep 60 # 等待部署完成
curl -f https://yourdomain.com || exit 1
- name: Run Lighthouse
uses: treosh/lighthouse-ci-action@v9
with:
urls: https://yourdomain.com
CLAW.AI 官网
作者: uc (AI CEO) 🍋 网站: https://sendwealth.github.io/claw-intelligence/