Skip to content
Skillpedia
Deploy & cloud (DevOps)260k Β· #580

publish-site

What it does

This skill helps your AI publish a static website or built web app to a host you own, and update or roll it back later. It is for people who want a shareable link for a page they built.

When to use it

  • βœ“When you want your AI to put a website, dashboard or report online and give you a link.
  • βœ“When you want to update a site that is already published with new content.
  • βœ“When you want to roll back a site to its previous version after a bad deploy.

Skill link

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/web-development/publish-site/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/web-development/publish-site/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œPublish this dashboard online and give me a link I can share with my team.”

5 new skills a week. 1 minute to read.

How it works

The skill checks which provider you are logged in to, previews the site locally, tags each deploy with a version, and deploys through the first available host. It then checks the live URL over HTTP.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Publish Site

Take a website, dashboard, or web app the user built (or you built for them) and put it online on infrastructure the user owns β€” GitHub Pages by default, Cloudflare Pages or Netlify when they need more. The discipline: preview locally for sign-off, version every deploy with a git tag, deploy through a provider ladder, verify the live URL with a real HTTP check, and keep rollback one command away.

This skill covers static sites and SPA build output (plain HTML/CSS/JS, or the dist//build/ folder from Vite/Next-export/Astro/etc.). It does not cover server-side runtimes β€” for throwaway serverless deploys with zero account setup, use the cloudflare-temporary-deploy optional skill instead.

When to Use

Load this skill when the user asks to:

  • Put a site online β€” "publish this", "host this somewhere", "give me a link I can share"
  • Deploy a dashboard, report, portfolio, docs site, or prototype you just generated
  • Update an already-published site with new content (redeploy = new version)
  • Roll back a bad deploy to the previous version
  • Pick a host β€” they don't care where, they just want a URL

Prerequisites

At least ONE authenticated provider CLI (check in this order):

  • GitHub Pages (default): gh auth status succeeds. Needs git too.
  • Cloudflare Pages: wrangler whoami succeeds (or CLOUDFLARE_API_TOKEN is set). Install: npm i -g wrangler or use npx wrangler@latest.
  • Netlify (fallback): netlify status succeeds. Install: npm i -g netlify-cli.

Plus:

  • A directory of static output to publish (site root or a dist//build/ folder). If the project needs a build step, run it first and publish the output directory, never the source.
  • For local preview sharing: cloudflared (optional β€” python3 -m http.server covers local-only preview).

How to Run

All commands below run via the terminal tool from the site's project directory. The pipeline is always the same five moves:

  1. Build β†’ 2. Preview for sign-off β†’ 3. Commit + tag (version-before-deploy) β†’ 4. Deploy via the provider ladder β†’ 5. Verify the live URL with curl and report it.

Quick Reference

Step Command
Local preview python3 -m http.server 8080 --directory dist
Shareable preview cloudflared tunnel --url http://localhost:8080
Version a deploy git add -A && git commit -m "deploy: <what>" && git tag deploy-YYYYMMDD-HHMM
GitHub Pages (branch mode) git subtree push --prefix dist origin gh-pages
Enable Pages on repo gh api repos/{owner}/{repo}/pages -X POST -f 'source[branch]=gh-pages' -f 'source[path]=/'
Cloudflare Pages npx wrangler@latest pages deploy dist --project-name <name>
Netlify netlify deploy --prod --dir dist
Rollback git checkout <previous-tag> -- . && redeploy (or provider dashboard)
Verify live curl -sS -o /dev/null -w '%{http_code}' <url> β†’ expect 200

Procedure

1. Build and preview locally

Build if needed (npm run build, etc.) and identify the output directory. Serve it:

python3 -m http.server 8080 --directory dist

For a shareable preview link (user on another machine, or you want their sign-off before going live), open a quick tunnel in a background terminal session:

cloudflared tunnel --url http://localhost:8080

Give the user the https://*.trycloudflare.com URL and get sign-off before deploying. Kill the tunnel afterwards.

2. Version before deploy β€” no exceptions

Every deploy must come from a git commit, so every deploy is reproducible and rollback is trivial.

git init 2>/dev/null; git add -A
git commit -m "deploy: <short description>"
git tag "deploy-$(date +%Y%m%d-%H%M)"

If the project already has a repo, just commit + tag. Never deploy uncommitted files.

3. Deploy β€” provider ladder

Rung 1 β€” GitHub Pages (default: free, zero extra accounts if gh is authed):

gh repo create <name> --public --source . --push   # skip if repo exists
git subtree push --prefix dist origin gh-pages      # publish build output
gh api "repos/{owner}/<name>/pages" -X POST \
  -f 'source[branch]=gh-pages' -f 'source[path]=/'  # first time only

Site appears at https://<owner>.github.io/<name>/. If the site is the repo root (no build dir), push main and set Pages source to main instead of using subtree. For build-step projects that will redeploy often, prefer the official actions/deploy-pages workflow so p

FAQ

Which hosts does it support?

The skill supports GitHub Pages by default, and also Cloudflare Pages and Netlify.

Does it handle server-side apps?

No. The skill covers static sites and single-page app builds, not server-side runtimes.

Can I undo a deploy?

Yes. The skill says each deploy is tagged so rollback can be done with one command.

Details

Original description by the author

Versioned site deploys to GitHub/Cloudflare/Netlify Pages.

repo: NousResearch/hermes-agent

Popularity

GitHub stars
260k
Ranking position
#580
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills