This automates GitHub Pages deployment through the gh CLI, handling the whole flow from repo creation to getting your site live. You get a one-shot script that initializes git, creates a public repo, enables Pages, and sets the homepage URL in one go. It's honestly the straightforward approach if you're already using gh CLI and just want to push static content without wrestling with Actions workflows or manual settings. Every push to main auto-deploys, which is clean for quick demos and prototypes. The skill includes the actual API calls to enable Pages programmatically, which saves you from clicking through the web UI every time.

skills.sh installs
312
GitHub stars
51
last updated
Aug 21, 2026

Install

$ npx -y skills add aviz85/claude-skills-library --skill gh-pages-deploy --agent claude-code

Installs into .claude/skills of the current project.

Files

GitHub Pages Deployment

Deploy static frontend websites to GitHub Pages using the GitHub CLI.

Prerequisites

  • GitHub CLI (gh) installed and authenticated
  • Git installed
  • A frontend project (HTML, CSS, JS) ready to deploy

Deployment Workflow

1. Initialize Git Repository (if needed)

git init
git add .
git commit -m "Initial commit"

2. Create GitHub Repository

# Create public repo (required for free GitHub Pages)
gh repo create <repo-name> --public --source=. --push

3. Enable GitHub Pages

# 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"}'

4. Check Deployment Status

# Get pages info
gh api repos/{owner}/{repo}/pages

# View deployment status
gh api repos/{owner}/{repo}/pages/builds/latest

5. Set Homepage URL in Repo Settings

Always do this — sets the live URL in the GitHub repo's About panel (top-right on the repo page):

Sponsors

Details

Repository
github.com/aviz85/claude-skills-library
Categories
Frontend Development, DevOps & CI/CD, Git & Pull Requests, Documentation, Release Management, Automation & Workflows, CLI & Terminal
First seen
Jun 3, 2026

More from aviz85/claude-skills-library

All 6
1jezweb avatarweb-design-methodologyjezweb/claude-skillsUniversal web design implementation methodology — BEM, responsive, accessibility, CSS architecture, spacing systems, dark mode. The HOW of building production-g311skills.sh installs
2jezweb avatarclerk-authjezweb/claude-skillsClerk auth with API Keys beta (Dec 2025), Next.js 16 proxy.ts (March 2025 CVE context), API version 2025-11-10 breaking changes, clerkMiddleware() options, webh310skills.sh installs
3silvainfm avatarstreamlitsilvainfm/claude-skillsFast Python framework for building interactive web apps, dashboards, and data visualizations without HTML/CSS/JavaScript. Use when user wants to create data app308skills.sh installs
4jezweb avatartinacmsjezweb/claude-skillsBuild content-heavy sites with Git-backed TinaCMS. Provides visual editing for blogs, documentation, and marketing sites. Supports Next.js, Vite+React, and Astr304skills.sh installs
5dchuk avatarsetting-up-tauri-projectsdchuk/claude-code-tauri-skillsHelps users create and initialize new Tauri v2 projects for building cross-platform desktop and mobile applications. Covers system prerequisites and setup requi302skills.sh installs
6vercel avatarnext-upgradevercel/nextjs-skillsnext upgrade301skills.sh installs