GitHub Pages Tunnel

    by leon yang (里昂)

    1

    Deploy private projects to GitHub Pages for free using separate public repos and Cloudflare Tunnels.

    $10

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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)

    ComponentConfiguration
    Source Repoprivate-react-app (Private)
    Pages Repoowner/private-react-app-pages (Public)
    Local Dir%USERPROFILE%\.private-react-app-pages
    StatusReady 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

    1. Run gh auth status to ensure you have repository permissions.
    2. Execute the initialization commands I've prepared to link the public repo.
    3. Run the publish-pages.ps1 script 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Network Access
    Read Files
    Write Files
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the process of using a public GitHub repository as a free hosting layer for your private projects, allowing you to showcase live demos or local servers without exposing your source code or paying for premium hosting.

    The skill provides the necessary automation scripts (PowerShell/Node.js), pre-configured deployment templates, and a guided workflow to connect GitHub Pages with Cloudflare Tunnels safely.

    Yes, the skill is designed to work with any AI agent that has access to a terminal and the GitHub CLI, including popular coding assistants and local LLM agents.

    No, this skill implements a 'static separation' architecture that ensures your private source code and environment variables never leave your local machine or private repo.

    The skill includes specific cache-busting logic and sync scripts that automatically update your public entrypoint whenever your local server or tunnel URL changes.

    You will need the GitHub CLI (gh), Git, and Cloudflare's tunnel utility installed on your local machine; the skill handles the configuration and orchestration between these tools.

    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.