home / skills / aviz85 / claude-skills-library / gh-pages-deploy
This skill deploys static frontend content to GitHub Pages using gh CLI, enabling quick publishing and sharing of demos, docs, and portfolios.
npx playbooks add skill aviz85/claude-skills-library --skill gh-pages-deployReview the files below or copy the command above to add this skill to your agents.
No content availableThis skill automates deploying static or interactive frontend content to GitHub Pages using the GitHub CLI. It guides you through repository initialization, creating a public repo, enabling Pages, and verifying the live site URL. Use it to quickly publish demos, portfolios, docs, or browser-based projects with minimal CLI work.
The skill uses the GitHub CLI (gh) and standard Git commands to initialize or use an existing repo, push content to GitHub, and call the Pages API to enable a site from the repository root or /docs. It can run a single quick-deploy flow that creates the repo, pushes the current branch, enables Pages, and returns the public URL. It also includes commands to check deployment status and troubleshoot build problems.
Do I need a public repository to use GitHub Pages?
For free accounts, Pages sites served from a repository require the repo to be public. Private repo Pages require a paid plan or appropriate organization settings.
What branch and path does Pages use?
You can enable Pages from the repository root or the /docs folder on a chosen branch (commonly main). The skill uses the Pages API to set build_type=legacy and specify branch and path.