Agent skill
github-pages-deploy
Deploy a static HTML file or static site directory to GitHub Pages. Use when the user wants a durable GitHub-hosted URL for a static page, diagram, report, or generated site, and can provide GitHub authentication via GITHUB_TOKEN or GH_TOKEN.
Install this agent skill to your Project
npx add-skill https://github.com/arisng/github-copilot-fc/tree/main/skills/github-pages-deploy
Metadata
Additional technical details for this skill
- author
- arisng
- version
- 0.1.0
SKILL.md
GitHub Pages Deploy
Deploy static content to GitHub Pages using a dedicated Pages branch in a GitHub repository.
This skill is similar in spirit to zero-config preview deploy skills, but GitHub Pages has different constraints:
- Authentication is required. Use
GITHUB_TOKENorGH_TOKEN. - The deployment is tied to a GitHub repository you control.
- Publish latency is usually slower than Vercel. Expect build time.
- The skill manages a dedicated branch,
gh-pagesby default.
Use when
- The user wants a durable static URL under
github.io - The content is plain HTML, CSS, JS, or a prebuilt static directory
- The user wants repository-backed hosting instead of a claimable preview deployment
Requirements
pwshgitGITHUB_TOKENorGH_TOKEN
Token requirements:
- Classic PAT:
repo - Fine-grained PAT: repository
Contents: write,Administration: write,Pages: write
Usage
pwsh {{skill_dir}}/scripts/deploy.ps1 -Path ./site -Repo owner/repo
pwsh {{skill_dir}}/scripts/deploy.ps1 -Path ./diagram.html -Repo my-diagram
Arguments
-PathRequired. A static site directory or a single.htmlfile.-RepoRequired. Eitherowner/repoor justrepo. If onlyrepois provided, the authenticated user becomes the owner.-OwnerOptional override when-Repois only a repository name.-BranchOptional. Defaults togh-pages.-CNameOptional custom domain. The script also writes aCNAMEfile.-NoWaitOptional. Return immediately after push and Pages configuration.
Behavior
- Resolves GitHub auth from
GITHUB_TOKENorGH_TOKEN - Stages the input into a temp directory
- If the input is a single HTML file, renames it to
index.html - Ensures
.nojekyllexists so GitHub Pages serves assets literally - Creates the target repository if it does not exist
- Updates the dedicated Pages branch without touching the caller's working tree
- Configures GitHub Pages to serve from that branch root
- Waits for the latest Pages build unless
-NoWaitis set - Prints a human-readable summary and one JSON object on stdout
Output
The script prints progress to stderr and emits a JSON object to stdout:
{"siteUrl":"https://owner.github.io/repo/","repoUrl":"https://github.com/owner/repo","owner":"owner","repo":"repo","branch":"gh-pages","createdRepo":true,"pagesStatus":"built","buildStatus":"built","commitSha":"abc123..."}
Operational Notes
- This skill is not anonymous. There is no claimable deploy model.
- The target branch is deployment-managed content. Do not point it at a branch you edit manually unless that is intentional.
- Existing Pages configuration on the same repository will be updated to the selected branch and root path.
- A repository named
owner.github.iopublishes at the user or org root domain. Other repositories publish under/repo/.
Failure Modes
- Missing token: export
GITHUB_TOKENorGH_TOKEN - Missing permissions: ensure the token can create repos and manage Pages
- Private Pages limitations: use a public repository unless your plan supports private Pages
- Build delay: use
-NoWaitif you only need the target URL and will verify later
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
openspec-propose
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
openspec-archive-change
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
openspec-explore
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
openspec-apply-change
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
fleet
Multi-iteration parallel subagent orchestrator for Kimi Code CLI with streamlined observability, automated documentation, and atomic commits. Use when orchestrating complex work across multiple subagents, enabling parallel execution, or when explicitly requesting fleet mode with '/flow:fleet'. Integrates diataxis documentation and git-atomic-commit workflow.
mermaid-creator
Create Mermaid diagrams (activity, deployment, sequence, architecture) from text descriptions or source code. Use when asked to "create a diagram", "generate mermaid", "document architecture", "code to diagram", "create design doc", or "convert code to diagram". Supports hierarchical on-demand guide loading, Unicode semantic symbols, and Python utilities for diagram extraction and image conversion.
Didn't find tool you were looking for?