一键导入
gh-pages
Use when deploying a repository to GitHub Pages from the `main` branch and guiding users to complete required setup in GitHub repository Settings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when deploying a repository to GitHub Pages from the `main` branch and guiding users to complete required setup in GitHub repository Settings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | gh-pages |
| description | Use when deploying a repository to GitHub Pages from the `main` branch and guiding users to complete required setup in GitHub repository Settings. |
Deploy repositories to GitHub Pages from the main branch, with clear guidance for the required GitHub repository settings.
Use this skill when the user wants to:
.github/workflows/deploy.yml for Pagesmain branch using either Actions or branch sourceUse main branch only:
main (/docs or /root)When uncertain, prefer the Actions workflow because it is reproducible and CI-driven. For Workflow A, you can set Pages "Build and deployment" to GitHub Actions via gh api; for Workflow B, remind the user to use Settings > Pages.
Before configuring deployment:
user or org)maindist, build, out, site, etc.)Settings > Pages is available for the repopages: write, id-token: write)Create .github/workflows/deploy.yml:
name: Deploy to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
# Optional: install deps and run your build
# - run: npm ci
# - run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
After adding the workflow:
Actions tab and confirm both build and deploy succeedgh api:
gh api -X PUT /repos/<OWNER>/<REPO>/pages -f build_type=workflow<OWNER> and <REPO> as needed): gh api -X PUT /repos/yuler/vibe-coding-demo-20260326/pages -f build_type=workflowUse this when files are already static and committed.
Supported options:
main branch + /docs foldermain branch + / (root) folderSteps:
Settings > PagesBuild and deployment source to Deploy from a branchmain and target folder, then saveAfter setup, verify:
Settings > Pages shows the expected URLFor project pages (https://<user>.github.io/<repo>/), ensure app base path matches /<repo>/.
404 after successful deploy
user/org pages vs project pages)index.html exists in deployed artifact rootactions/deploy-pages permission error
pages: write and id-token: write in workflow permissionsDeploy job waits forever / environment issue
github-pagesUploaded wrong folder
upload-pages-artifact path points to actual build outputNo deployment triggered
mainCreates a new GitHub pull request with `gh pr create` using title and body from the branch commits and diff. If the current branch is main or master, checks out a new branch whose name is a short kebab-case slug derived from the changes, then proceeds. PR title is one simple sentence over all commits in the range, preserving emoji from those commits. Use when opening a new PR, running `gh pr create`, or publishing a branch without an existing PR.
Automate desktop operations via keyboard/mouse simulation and macros on Linux and macOS. Current support wechat-app send message
Use when the user wants to commit staged changes, asks for a commit message, or wants a concise summary of the staged diff before committing.
Extract tweet/post text and long-form article content from X/Twitter status URLs and save it as Markdown. Use when the user provides an `x.com` or `twitter.com` status link and wants the tweet body, article body, author metadata, or media links captured locally without browser login.