Install any skill in seconds. Free to start, no credit card required.
Get Started Free →OverKill Hill P³ Vite-to-GitHub-Pages deployment runbook. Use when deploying or troubleshooting this React/Vite app, its Actions workflow, /kierans-lifetrkr/ production base, HashRouter fallback, dist artifacts, build validation, or Pages environment variables. Also activate for subpath asset failures or SPA refresh diagnosis. Do not use for gh-pages branches, backend hosting, or unrelated UI work.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-15 | ✗→✓ | ▲ Improved | 66% | 0% |
| case-16 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 54% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 49% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 44% | 0% |
OverKill Hill P³ · overkillhill.com · github.com/OKHP3
Use this focused runbook to keep the Abrahamic Reference Engine compatible with its client-only Vite build and GitHub Pages Actions deployment. Verify the repository before relying on any remembered version or workflow detail.
| In scope | Out of scope | | --- | --- | | vite.config.ts, .github/workflows/deploy-pages.yml, production base paths, BrowserRouter, build artifacts, Pages permissions/artifacts, environment wiring, and deployment diagnosis | Servers, databases, backend proxies, gh-pages branches, the legacy npm run deploy, secret creation, commits, pushes, and unrelated application changes |
Treat these current facts as constraints, then re-read the files if the task may have changed them:
vite.config.ts sets base to /abrahamic-reference-engine/ when command === 'build' and / otherwise. The dev server listens on 0.0.0.0:5000.src/App.tsx uses BrowserRouter with basename={import.meta.env.BASE_URL.replace(/\/$/, '')}..github/workflows/deploy-pages.yml runs on pushes to main or manual dispatch, uses Pages permissions and concurrency, installs with npm ci, builds with npm run build, copies dist/index.html to dist/404.html, uploads dist, and deploys with the Pages actions.Read AGENTS.md, vite.config.ts, .github/workflows/deploy-pages.yml, package.json, src/App.tsx, and the relevant recent diff. Check git status --short. Classify the request as configuration, workflow, artifact, or diagnosis before editing. Do not change deployment settings merely because a validation command succeeds.
Confirm the intended repository name, Pages base, router, build script, artifact path, trigger branch, environment variables, permissions, and fallback behavior from the files. If the requested result conflicts with the client-only boundary or the checked-in workflow, stop and report the conflict.
Make the smallest compatible edit. Keep the production base exactly /abrahamic-reference-engine/, local development at /, BrowserRouter with basename, npm, and Actions-based Pages deployment. Never place OAuth/API secrets in source, workflow text, or skill output; reference GitHub secrets by name only. Do not create a gh-pages branch or add a server workaround for an SPA that already handles routing via the 404.html fallback.
Run npm run build for build-affecting changes. Inspect the generated dist/index.html for /abrahamic-reference-engine/ asset URLs and confirm the workflow creates dist/404.html after the build. For workflow-only edits, inspect YAML structure and still run the narrowest available checks.
Summarize changed files, verified local results, expected Actions behavior, required repository/environment configuration, and unresolved risks. Distinguish a successful local build from a verified live Pages deployment; the latter requires an actual environment smoke test.
base causes asset 404s under the repository subpath; do not “fix” this by changing the router to BrowserRouter.npm ci and the checked-in lockfile. Do not switch to pnpm or npm install as a workaround.dist/404.html exists from a local build unless the copy step was actually run; it is created by the workflow.Return:
Built by Jamie Hill · OverKill Hill P³ Published at github.com/OKHP3 Part of the OKHP3/skillz Agent Skill library. MIT License -- free to use, fork, and adapt. A nod to the source is appreciated.
Other measured skills in the registry, with their headline benchmark lift.