- Home
- Skills
- Agents & Orchestration
- GitHub Pages Tunnel
GitHub Pages Tunnel
Deploy private projects to GitHub Pages for free using separate public repos and Cloudflare Tunnels.
$10
GitHub Pages Tunnel
Example session with this skill installed
I have a private React project and I want to host the production build on GitHub Pages for free without making the source code public. Set up Mode A for me.
- Read your context and instructions
- Compiled the github pages tunnel
I will set up a dedicated public repository for your production build, ensuring your source code remains private. I'll use a local workspace path to avoid sync conflicts and configure a deployment script.
GitHub Pages Static Deployment (Mode A)
| Component | Configuration |
|---|---|
| Source Repo | private-react-app (Private) |
| Pages Repo | owner/private-react-app-pages (Public) |
| Local Dir | %USERPROFILE%\.private-react-app-pages |
| Status | Ready for initialization |
Automated Publish Script (scripts/publish-pages.ps1)
# Build the project
npm run build
# Define paths
$PagesDir = "$env:USERPROFILE\.private-react-app-pages"
$BuildDir = "dist/"
# Sync to public repo
if (!(Test-Path $PagesDir)) {
Write-Error "Pages directory not found. Please run init flow first."
exit
}
Copy-Item -Path "$BuildDir\*" -Destination $PagesDir -Recurse -Force
Set-Location $PagesDir
"" | Out-File -Encoding ascii .nojekyll
if (git status --porcelain) {
git add -A
git commit -m "Deploy: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')"
git push origin main
Write-Host "Deployment successful!"
} else {
Write-Host "No changes detected. Skipping push."
}
Next steps
- Run
gh auth statusto ensure you have repository permissions. - Execute the initialization commands I've prepared to link the public repo.
- Run the
publish-pages.ps1script whenever you want to update the live site.
Connects securely to your tools. The creator never sees your data.
About this skill
Publish static sites and dynamic local servers for $0—while keeping your main repository private.
github-pages-tunnel is an AI agent skill that sets up a clean, zero-cost publishing workflow using GitHub Pages and Cloudflare Quick Tunnel. Instead of burning through Netlify/Vercel build minutes or exposing private source code, this skill separates your private project from a dedicated public output repository.
Two Ready-to-Use Modes:
- Mode A — Static Web Pages: Publish one-page decks, product landing pages, and event sites to a public GitHub Pages repo without touching your private codebase.
- Mode B — Dynamic Server + Fixed Entrypoint: Run a local or private server behind a Cloudflare Quick Tunnel and give users a permanent GitHub Pages URL that automatically fetches the latest live tunnel URL and online/offline status via cache-busted status.json.
What's Included:
- Step-by-step SOP for gh CLI repo setup, .nojekyll, and GitHub Pages activation
- Export, sync, and one-click launcher patterns (start-public.ps1 / sync-pages.mjs)
- Optional 15-minute cron automation pattern for keeping tunnel status in sync
- Security guardrails so .env, keys, and private source code are never leaked
- Full bilingual instructions (English & Traditional Chinese)
Cloudflare Quick Tunnel URLs change on every restart. Periodic health checks require an active environment to run cron tasks. Output repo must be public for free hosting.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
- Software
Git
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.