Patched with base: '/<repo>/' for correct asset paths
Guidelines
Run from the project root
Requires the prepare step to have run first
The commit is local only — no push happens here
If the working tree is clean (already committed), the script exits cleanly
dist/ must remain gitignored; never commit build output to the source branch
1---2name: pages-commit-vite3description: pages-commit-vite4---56# pages-commit-vite78Stage and commit the GitHub Pages configuration changes (workflow + vite config).910## When to Use1112- After `pages-prepare-vite` has written `.github/workflows/deploy.yml` and patched `vite.config.ts`13- After `pages-build-vite` confirms the local build succeeds14- Before pushing to the remote1516## Pipeline Position1718```text19pages-prepare-vite → pages-build-vite → [pages-commit-vite] → pages-push-vite → pages-publish-vite20```2122## What This Skill Does23241. Guards: verifies `.github/workflows/deploy.yml` exists (aborts if not)252. Stages: `git add .github/workflows/deploy.yml vite.config.ts`263. Checks if anything is actually new (skips if already committed)274. Commits with message `ci: configure GitHub Pages with Vite build` (or custom message)2829> `dist/` is gitignored and is **not** staged or committed. CI builds it.3031## How to Use3233```bash34# Default commit message35bash skills/pages-commit-vite/scripts/commit_pages.sh3637# Custom message38bash skills/pages-commit-vite/scripts/commit_pages.sh "ci: add Pages deploy workflow"39```4041## Files Committed4243| File | Purpose |44| ------ | --------- |45| `.github/workflows/deploy.yml` | Actions workflow: build Vite + deploy to Pages |46| `vite.config.ts` | Patched with `base: '/<repo>/'` for correct asset paths |4748## Guidelines4950- Run from the project root51- Requires the prepare step to have run first52- The commit is local only — no push happens here53- If the working tree is clean (already committed), the script exits cleanly54- `dist/` must remain gitignored; never commit build output to the source branch
Run npx skillmds@latest add stuffbucket/pages-commit-vite in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
pages-commit-vite It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
stuffbucket (@stuffbucket) published this skill. Their other Agent Skills are listed on their SkillMD profile.