用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aivos-xie/hermes-skills --skill github-pages-deploy命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | github-pages-deploy |
| version | 1.0.0 |
| description | Deploy static sites to GitHub Pages via API — create repo, push, enable Pages, all from CLI |
| tags | ["github","pages","deploy","static-site","ci-cd","api"] |
| triggers | ["deploy to github pages","github pages setup","部署GitHub Pages","静态网站部署","开源网站"] |
~/.hermes/.env 的 GITHUB_TOKEN= 行TOKEN=$(python3 -c "
for line in open('$HOME/.hermes/.env'):
if line.startswith('GITHUB_TOKEN='):
print(line.split('=',1)[1].strip().strip('\"').strip(\"'\"))
break
")
curl -s -X POST https://api.github.com/user/repos \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"repo-name","description":"描述","public":true}'
cd /path/to/project
git init
git add -A
git commit -m "init"
git branch -m master main
git remote add origin "https://USERNAME:${TOKEN}@github.com/USERNAME/repo-name.git"
git push -u origin main
curl -s -X POST "https://api.github.com/repos/USERNAME/repo-name/pages" \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/json" \
-d '{"source":{"branch":"main","path":"/"}}'
网站地址:https://USERNAME.github.io/repo-name/
git add -A && git commit -m "update" && git push origin main
GitHub Actions自动重新部署(如果有 .github/workflows/deploy.yml)。
repo scope,fine-grained token需要 Pages: Read and write 权限