# gh-pages-deploy

This skill publishes HTML/CSS/JS projects to GitHub Pages with gh. Use it when a project needs a public URL.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 312 installs · ★ 50
- Author: aviz85
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aviz85/claude-skills-library/tree/HEAD/skills/gh-pages-deploy/SKILL.md
- Updated: 2026-07-08
- HTML: https://affpapa.org/en/nevibecode/skills/gh-pages-deploy

## What it does

The skill takes a local frontend project through Git setup, repository creation, Pages configuration, and deployment checks. It can publish from the root of `main` or from `docs`, then puts the Pages address into the repository’s About section.

It requires GitHub CLI `gh` to be installed and authenticated, plus Git and a ready HTML, CSS, or JavaScript project. Deployment stops without an authenticated `gh` session. Later changes follow the usual commit-and-push flow; GitHub Pages rebuilds the site after pushes to `main`. Keep `index.html` in the selected publishing location.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aviz85/claude-skills-library --skill gh-pages-deploy -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/gh-pages-deploy/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gh-pages-deploy/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aviz85/claude-skills-library --skill gh-pages-deploy -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/gh-pages-deploy/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aviz85/claude-skills-library --skill gh-pages-deploy -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/gh-pages-deploy/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aviz85/claude-skills-library gh-pages-deploy
```

2. **Manually: put the files in place**
- File: `.github/skills/gh-pages-deploy/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aviz85/claude-skills-library --skill gh-pages-deploy -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aviz85/claude-skills-library --path skills/gh-pages-deploy
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gh-pages-deploy/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aviz85/claude-skills-library --skill gh-pages-deploy -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aviz85/claude-skills-library/tree/HEAD/skills/gh-pages-deploy/SKILL.md

## When to use it
- publish an HTML/CSS/JS project on GitHub Pages
- create a public repository with `gh`
- configure Pages for `main` and the project root
- check the latest Pages build
- push site updates for another rebuild

## Example prompts
- Publish this project to GitHub Pages and create the repository `my-site`.
- Configure Pages to use the `docs` directory, then check the deployment status.
- Commit the current changes and push them to `main` so the site rebuilds.

## Similar
- [wizard](https://affpapa.org/en/nevibecode/skills/wizard.md) — skill · 553369 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [using-git-worktrees](https://affpapa.org/en/nevibecode/skills/using-git-worktrees.md) — skill · 217153 installs
- [finishing-a-development-branch](https://affpapa.org/en/nevibecode/skills/finishing-a-development-branch.md) — skill · 214439 installs
- [orca-cli](https://affpapa.org/en/nevibecode/skills/orca-cli.md) — skill · 353600 installs

From the same set: [aviz85/claude-skills-library](https://affpapa.org/en/nevibecode/by/aviz85/claude-skills-library.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
