Skip to content

The agent that grows with you

feat(skills): publish-site — versioned website publishing to GitHub/Cloudflare/Netlify Pages

teknium15c57e7754116
diff --git a/skills/web-development/DESCRIPTION.md b/skills/web-development/DESCRIPTION.md
new file mode 100644
index 00000000000..427dbde211b
--- /dev/null
+++ b/skills/web-development/DESCRIPTION.md
@@ -0,0 +1,3 @@
+---
+description: Skills for building and publishing websites and web apps — local preview, versioned deploys, and hosting on user-owned infrastructure.
+---
diff --git a/skills/web-development/publish-site/SKILL.md b/skills/web-development/publish-site/SKILL.md
new file mode 100644
index 00000000000..2218802a8ef
--- /dev/null
+++ b/skills/web-development/publish-site/SKILL.md
@@ -0,0 +1,157 @@
+---
+name: publish-site
+description: Versioned site deploys to GitHub/Cloudflare/Netlify Pages.
+version: 1.0.0
+author: Hermes Agent (Nous Research)
+license: MIT
+platforms: [linux, macos, windows]
+metadata:
+ hermes:
+ tags: [publish, deploy, hosting, github-pages, cloudflare-pages, netlify, static-site, versioning, rollback, web-development]
+ category: web-development
+---
+
+# 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:
+
+```bash
+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:
+
+```bash
+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.
+
+```bash
+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):**
+
+```bash
+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 pushes auto-publish.
+
+**Rung 2 — Cloudflare Pages (when the user wants a custom domain, redirects/headers, or Functions):**
+
+```bash
+npx wrangler@latest pages deploy dist --project-name <name>
+```
+
+First run creates the project and prints the `https://<name>.pages.dev` URL. Custom domains attach via the Cloudflare dashboard (Pages → project → Custom domains).
+
+**Rung 3 — Netlify (fallback, or when the user already lives there):**
+
+```bash
+netlify deploy --prod --dir dist
+```
+
+`netlify deploy --dir dist` (no `--prod`) gives a draft URL — useful as a second preview stage.
+
+### 4. Rollback
+
+Rollback = redeploy a previous tag. Never hand-edit live output.
+
+```bash
+git checkout deploy-<previous> -- . # or: git checkout deploy-<previous>; rebuild
+# then rerun the same deploy command from step 3
+```
+
+Cloudflare Pages and Netlify also keep per-deploy history in their dashboards ("Rollback to this deploy"), which is faster when the CLI isn't handy.
+
+### 5. Secrets and environment variables
+
+- **NEVER commit secrets, API keys, or `.env` files** — they'd be public on Pages hosting. Check with `git status` before the first commit and keep `.env*` in `.gitignore`.
+- Runtime env vars belong in the provider's dashboard: Cloudflare Pages → Settings → Environment variables; Netlify → Site settings → Environment variables. GitHub Pages is static-only — no server env; anything embedded in the bundle is public by definition. Warn the user if their build inlines a key.
+
+## Pitfalls
+
+- **SPA routes 404 on GitHub Pages.** Pages has no rewrite rules. Copy `index.html` to `404.html` in the output dir (`cp dist/index.html dist/404.html`) so client-side routing recovers. Cloudflare Pages and Netlify handle SPAs via `_redirects` (`/* /index.html 200`).
+- **GitHub Pages build lag.** The site can take 1–10 minutes to appear after the first enable, and ~1 minute per subsequent push. Don't declare failure on the first 404 — poll `curl` a few times before investigating.
+- **Case-sensitive paths.** Pages hosts are case-sensitive Linux; a site that worked on macOS/Windows can 404 on assets referenced as `Logo.PNG` but committed as `logo.png`. Grep the HTML for mismatched casing when an asset 404s.
+- **Project-page base path.** `https://<owner>.github.io/<name>/` serves under `/<name>/` — absolute asset URLs like `/app.js` break. Use relative paths or set the build tool's base (`vite build --base=/<name>/`).
+- **`wrangler` auth flow needs a browser.** `wrangler login` opens OAuth; in a headless session prefer `CLOUDFLARE_API_TOKEN` (user creates it at dash.cloudflare.com → API Tokens) and never echo the token into logs.
+- **DNS propagation on custom domains.** New CNAMEs can take minutes to hours. Verify against the provider's default URL (`*.pages.dev`, `*.netlify.app`, `*.github.io`) first, then check the custom domain separately — don't conflate the two failures.
+- **Deploying source instead of build output.** Publishing the repo root when the real site lives in `dist/` yields a directory listing or raw JSX. Always confirm the output dir contains an `index.html`.
+
+## Verification
+
+Do NOT report success from the deploy log alone. Before telling the user anything:
+
+1. `curl -sS -o /dev/null -w '%{http_code}' <live-url>` returns `200` (retry over ~2 minutes for a first GitHub Pages deploy).
+2. `curl -sS <live-url> | head -30` shows the expected `index.html` content — optionally confirm markup with `web_extract` on the live URL.
+3. For SPAs, also curl one deep route (e.g. `/about`) and confirm it returns `200`, not `404`.
+4. `git tag --list 'deploy-*'` shows the tag for this deploy.
+
+Then report the live URL to the user, along with the deploy tag they can roll back to.
diff --git a/tests/skills/test_publish_site_skill.py b/tests/skills/test_publish_site_skill.py
new file mode 100644
index 00000000000..df9d2565500
--- /dev/null
+++ b/tests/skills/test_publish_site_skill.py
@@ -0,0 +1,143 @@
+"""Tests for the bundled skills/web-development/publish-site skill.
+
+Structural + internal-consistency checks only (stdlib + pytest, no network).
+"""
+
+import re
+from pathlib import Path
+
+import pytest
+
+REPO = Path(__file__).resolve().parents[2]
+SKILL_DIR = REPO / "skills" / "web-development" / "publish-site"
+SKILL_MD = SKILL_DIR / "SKILL.md"
+
+VALID_PLATFORMS = {"linux", "macos", "windows"}
+
+
[email protected](scope="module")
+def skill_text() -> str:
+ return SKILL_MD.read_text(encoding="utf-8")
+
+
[email protected](scope="module")
+def frontmatter(skill_text: str) -> dict:
+ """Parse the YAML frontmatter with stdlib only (flat key: value fields)."""
+ m = re.match(r"^---\n(.*?)\n---\n", skill_text, re.DOTALL)
+ assert m, "SKILL.md must open with '---' delimited YAML frontmatter"
+ fm: dict[str, str] = {}
+ for line in m.group(1).splitlines():
+ if line.startswith((" ", "\t")) or ":" not in line:
+ continue # nested metadata keys — not needed here
+ key, _, value = line.partition(":")
+ fm[key.strip()] = value.strip()
+ return fm
+
+
+def test_skill_file_exists():
+ assert SKILL_MD.is_file(), f"missing {SKILL_MD}"
+
+
+def test_frontmatter_parses(frontmatter: dict):
+ assert frontmatter.get("name") == "publish-site"
+ assert frontmatter.get("version"), "version field required"
+ assert frontmatter.get("license") == "MIT"
+ assert "Hermes Agent" in frontmatter.get("author", "")
+
+
+def test_description_length_and_period(frontmatter: dict):
+ desc = frontmatter.get("description", "").strip().strip('"')
+ assert desc, "no description field"
+ assert len(desc) <= 60, f"description is {len(desc)} chars (>60): {desc!r}"
+ assert desc.endswith("."), "description must end with a period"
+
+
+def test_platforms_list_valid(frontmatter: dict):
+ raw = frontmatter.get("platforms", "")
+ platforms = [p.strip() for p in raw.strip("[]").split(",") if p.strip()]
+ assert platforms, "platforms list must be non-empty"
+ assert set(platforms) <= VALID_PLATFORMS, f"invalid platforms: {platforms}"
+ # gh/wrangler/netlify are all cross-platform — the skill keeps all three.
+ assert set(platforms) == VALID_PLATFORMS
+
+
+def test_required_sections_present(skill_text: str):
+ for heading in (
+ "## When to Use",
+ "## Prerequisites",
+ "## How to Run",
+ "## Quick Reference",
+ "## Procedure",
+ "## Pitfalls",
+ "## Verification",
+ ):
+ assert heading in skill_text, f"missing section: {heading}"
+
+
+def test_no_dangling_skill_view_references(skill_text: str):
+ """Every skill_view(name='...') reference must target a shipped skill."""
+ targets = re.findall(r"skill_view\(\s*name\s*=\s*['\"]([^'\"]+)['\"]", skill_text)
+ for name in targets:
+ hits = list((REPO / "skills").glob(f"**/{name}/SKILL.md")) + list(
+ (REPO / "optional-skills").glob(f"**/{name}/SKILL.md")
+ )
+ assert hits, f"skill_view reference to non-shipped skill: {name}"
+
+
+def test_referenced_sibling_skills_ship(skill_text: str):
+ """Prose-referenced companion skills must exist in the shipped trees."""
+ for name in ("cloudflare-temporary-deploy",):
+ if name in skill_text:
+ hits = list((REPO / "skills").glob(f"**/{name}/SKILL.md")) + list(
+ (REPO / "optional-skills").glob(f"**/{name}/SKILL.md")
+ )
+ assert hits, f"referenced skill does not ship: {name}"
+
+
+def test_provider_ladder_documented(skill_text: str):
+ """All three rungs of the provider ladder with their deploy commands."""
+ assert "gh repo create" in skill_text
+ assert "gh-pages" in skill_text
+ assert "wrangler@latest pages deploy" in skill_text
+ assert "netlify deploy --prod" in skill_text
+
+
+def test_version_before_deploy_discipline(skill_text: str):
+ assert "git tag" in skill_text, "deploys must be tagged"
+ assert "Never deploy uncommitted files" in skill_text
+
+
+def test_rollback_documented(skill_text: str):
+ assert "Rollback" in skill_text
+ assert re.search(r"git checkout deploy-", skill_text), "rollback must redeploy a previous tag"
+
+
+def test_secrets_never_in_repo(skill_text: str):
+ assert "NEVER commit secrets" in skill_text
+ assert ".gitignore" in skill_text
+
+
+def test_spa_404_pitfall_documented(skill_text: str):
+ assert "404.html" in skill_text
+ assert "_redirects" in skill_text
+
+
+def test_verification_uses_real_http_check(skill_text: str):
+ assert "%{http_code}" in skill_text
+ assert "200" in skill_text
+ assert "deploy log alone" in skill_text
+
+
+def test_preview_before_deploy(skill_text: str):
+ assert "http.server" in skill_text
+ assert "cloudflared tunnel --url" in skill_text
+ assert "trycloudflare.com" in skill_text
+
+
+def test_category_description_exists():
+ desc = REPO / "skills" / "web-development" / "DESCRIPTION.md"
+ assert desc.is_file(), "bundled web-development category needs a DESCRIPTION.md"
+
+
+if __name__ == "__main__":
+ raise SystemExit(pytest.main([__file__, "-q"]))
diff --git a/website/docs/reference/skills-catalog.md b/website/docs/reference/skills-catalog.md
index 419788352df..e76733159c8 100644
--- a/website/docs/reference/skills-catalog.md
+++ b/website/docs/reference/skills-catalog.md
@@ -156,3 +156,9 @@ If a skill is missing from this list but present in the repo, the catalog is reg
| [`spike`](/docs/user-guide/skills/bundled/software-development/software-development-spike) | Throwaway experiments to validate an idea before build. | `software-development/spike` |
| [`systematic-debugging`](/docs/user-guide/skills/bundled/software-development/software-development-systematic-debugging) | 4-phase root cause debugging: understand bugs before fixing. | `software-development/systematic-debugging` |
| [`test-driven-development`](/docs/user-guide/skills/bundled/software-development/software-development-test-driven-development) | TDD: enforce RED-GREEN-REFACTOR, tests before code. | `software-development/test-driven-development` |
+
+## web-development
+
+| Skill | Description | Path |
+|-------|-------------|------|
+| [`publish-site`](/docs/user-guide/skills/bundled/web-development/web-development-publish-site) | Versioned site deploys to GitHub/Cloudflare/Netlify Pages. | `web-development/publish-site` |
diff --git a/website/docs/user-guide/skills/bundled/web-development/web-development-publish-site.md b/website/docs/user-guide/skills/bundled/web-development/web-development-publish-site.md
new file mode 100644
index 00000000000..2eea0ac7700
--- /dev/null
+++ b/website/docs/user-guide/skills/bundled/web-development/web-development-publish-site.md
@@ -0,0 +1,174 @@
+---
+title: "Publish Site — Versioned site deploys to GitHub/Cloudflare/Netlify Pages"
+sidebar_label: "Publish Site"
+description: "Versioned site deploys to GitHub/Cloudflare/Netlify Pages"
+---
+
+{/* This page is auto-generated from the skill's SKILL.md by website/scripts/generate-skill-docs.py. Edit the source SKILL.md, not this page. */}
+
+# Publish Site
+
+Versioned site deploys to GitHub/Cloudflare/Netlify Pages.
+
+## Skill metadata
+
+| | |
+|---|---|
+| Source | Bundled (installed by default) |
+| Path | `skills/web-development/publish-site` |
+| Version | `1.0.0` |
+| Author | Hermes Agent (Nous Research) |
+| License | MIT |
+| Platforms | linux, macos, windows |
+| Tags | `publish`, `deploy`, `hosting`, `github-pages`, `cloudflare-pages`, `netlify`, `static-site`, `versioning`, `rollback`, `web-development` |
+
+## Reference: full SKILL.md
+
+:::info
+The following is the complete skill definition that Hermes loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.
+:::
+
+# 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:
+
+```bash
+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:
+
+```bash
+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.
+
+```bash
+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):**
+
+```bash
+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 pushes auto-publish.
+
+**Rung 2 — Cloudflare Pages (when the user wants a custom domain, redirects/headers, or Functions):**
+
+```bash
+npx wrangler@latest pages deploy dist --project-name <name>
+```
+
+First run creates the project and prints the `https://<name>.pages.dev` URL. Custom domains attach via the Cloudflare dashboard (Pages → project → Custom domains).
+
+**Rung 3 — Netlify (fallback, or when the user already lives there):**
+
+```bash
+netlify deploy --prod --dir dist
+```
+
+`netlify deploy --dir dist` (no `--prod`) gives a draft URL — useful as a second preview stage.
+
+### 4. Rollback
+
+Rollback = redeploy a previous tag. Never hand-edit live output.
+
+```bash
+git checkout deploy-<previous> -- . # or: git checkout deploy-<previous>; rebuild
+# then rerun the same deploy command from step 3
+```
+
+Cloudflare Pages and Netlify also keep per-deploy history in their dashboards ("Rollback to this deploy"), which is faster when the CLI isn't handy.
+
+### 5. Secrets and environment variables
+
+- **NEVER commit secrets, API keys, or `.env` files** — they'd be public on Pages hosting. Check with `git status` before the first commit and keep `.env*` in `.gitignore`.
+- Runtime env vars belong in the provider's dashboard: Cloudflare Pages → Settings → Environment variables; Netlify → Site settings → Environment variables. GitHub Pages is static-only — no server env; anything embedded in the bundle is public by definition. Warn the user if their build inlines a key.
+
+## Pitfalls
+
+- **SPA routes 404 on GitHub Pages.** Pages has no rewrite rules. Copy `index.html` to `404.html` in the output dir (`cp dist/index.html dist/404.html`) so client-side routing recovers. Cloudflare Pages and Netlify handle SPAs via `_redirects` (`/* /index.html 200`).
+- **GitHub Pages build lag.** The site can take 1–10 minutes to appear after the first enable, and ~1 minute per subsequent push. Don't declare failure on the first 404 — poll `curl` a few times before investigating.
+- **Case-sensitive paths.** Pages hosts are case-sensitive Linux; a site that worked on macOS/Windows can 404 on assets referenced as `Logo.PNG` but committed as `logo.png`. Grep the HTML for mismatched casing when an asset 404s.
+- **Project-page base path.** `https://<owner>.github.io/<name>/` serves under `/<name>/` — absolute asset URLs like `/app.js` break. Use relative paths or set the build tool's base (`vite build --base=/<name>/`).
+- **`wrangler` auth flow needs a browser.** `wrangler login` opens OAuth; in a headless session prefer `CLOUDFLARE_API_TOKEN` (user creates it at dash.cloudflare.com → API Tokens) and never echo the token into logs.
+- **DNS propagation on custom domains.** New CNAMEs can take minutes to hours. Verify against the provider's default URL (`*.pages.dev`, `*.netlify.app`, `*.github.io`) first, then check the custom domain separately — don't conflate the two failures.
+- **Deploying source instead of build output.** Publishing the repo root when the real site lives in `dist/` yields a directory listing or raw JSX. Always confirm the output dir contains an `index.html`.
+
+## Verification
+
+Do NOT report success from the deploy log alone. Before telling the user anything:
+
+1. `curl -sS -o /dev/null -w '%{http_code}' <live-url>` returns `200` (retry over ~2 minutes for a first GitHub Pages deploy).
+2. `curl -sS <live-url> | head -30` shows the expected `index.html` content — optionally confirm markup with `web_extract` on the live URL.
+3. For SPAs, also curl one deep route (e.g. `/about`) and confirm it returns `200`, not `404`.
+4. `git tag --list 'deploy-*'` shows the tag for this deploy.
+
+Then report the live URL to the user, along with the deploy tag they can roll back to.
diff --git a/website/sidebars.ts b/website/sidebars.ts
index 9f9de703e94..e6469ad75cc 100644
--- a/website/sidebars.ts
+++ b/website/sidebars.ts
@@ -333,6 +333,15 @@ const sidebars: SidebarsConfig = {
'user-guide/skills/bundled/software-development/software-development-test-driven-development',
],
},
+ {
+ type: 'category',
+ label: 'web-development',
+ key: 'skills-bundled-web-development',
+ collapsed: true,
+ items: [
+ 'user-guide/skills/bundled/web-development/web-development-publish-site',
+ ],
+ },
],
},
{