Help us improve
Share bugs, ideas, or general feedback.
From gh-pages-deploy
Deploys static or interactive HTML/CSS/JS frontend content to GitHub Pages using gh CLI, with repo creation, Pages enabling, and update workflows for public demos, prototypes, docs.
npx claudepluginhub aviz85/claude-skills-library --plugin gh-pages-deployHow this skill is triggered — by the user, by Claude, or both
Slash command
/gh-pages-deploy:gh-pages-deployThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Deploy static frontend websites to GitHub Pages using the GitHub CLI.
Checks and configures GitHub Pages deployment for docs sites, detects generators like MkDocs/TypeDoc/Docusaurus/Sphinx/rustdoc, audits workflows, migrates to actions/deploy-pages.
Generates GitHub Actions workflows for Cloudflare Pages deployment with production, PR preview, and named preview branch support. Includes wrangler config, retry logic, and security best practices.
Deploys web projects to Netlify using Netlify CLI. Handles authentication, site linking or creation via Git remote, and production/preview deployments.
Share bugs, ideas, or general feedback.
Deploy static frontend websites to GitHub Pages using the GitHub CLI.
gh) installed and authenticatedgit init
git add .
git commit -m "Initial commit"
# Create public repo (required for free GitHub Pages)
gh repo create <repo-name> --public --source=. --push
# Enable GitHub Pages from main branch root
gh api repos/{owner}/{repo}/pages -X POST -f build_type=legacy -f source='{"branch":"main","path":"/"}'
Or for docs folder:
gh api repos/{owner}/{repo}/pages -X POST -f build_type=legacy -f source='{"branch":"main","path":"/docs"}'
# Get pages info
gh api repos/{owner}/{repo}/pages
# View deployment status
gh api repos/{owner}/{repo}/pages/builds/latest
The site will be available at: https://<username>.github.io/<repo-name>/
For a complete deployment in one flow:
# Variables
REPO_NAME="my-site"
# Initialize and commit
git init
git add .
git commit -m "Initial commit"
# Create repo and push
gh repo create $REPO_NAME --public --source=. --push
# Wait for push to complete, then enable pages
sleep 2
OWNER=$(gh api user --jq '.login')
gh api repos/$OWNER/$REPO_NAME/pages -X POST -f build_type=legacy -f source='{"branch":"main","path":"/"}'
# Get the URL
echo "Site will be at: https://$OWNER.github.io/$REPO_NAME/"
After making changes:
git add .
git commit -m "Update site"
git push
GitHub Pages will automatically rebuild.