GitHub Push Skill
This skill defines the build-and-push-to-GitHub workflow for this project. Use it whenever the user requests a build and push, or to push changes to GitHub.
Golden Rules
- Always build before pushing. Run
npm run build and confirm it succeeds. Do not push if the build fails.
- Use project root. Run all commands from the project root (
v0-4-11-2025-authors-info-2 or equivalent).
- Shell: PowerShell (Windows). Use
; to chain commands, not &&. Prefer separate commands when unsure.
- Never run database reset or other destructive DB commands.
- Never commit
.env, .env.local, or other secrets.
Standard Workflow
1. Build
npm run build
- Fix any build errors before proceeding.
- If type/lint issues appear, address them or run
npm run lint / npm run types:check as needed.
2. Check Status
git status
- Review modified, added, and untracked files.
- Do not stage temporary scripts,
node_modules, *.log, or env files.
3. Stage Changes
Stage only what belongs in the commit:
- Typical includes:
app/, components/, lib/, types/, utils/, hooks/, supabase/migrations/*.sql, .agent/skills/, config/docs relevant to the change.
- Exclude:
node_modules/, .env*, *.log, debug scripts (e.g. scripts/debug-*.ts, scripts/check-*.ts unless they are permanent tooling), script-results.json, test-output.txt, and other local/temporary artifacts.
Use explicit paths:
git add <path1> <path2> ...
Or add by directory, e.g.:
git add app/api/activities/route.ts components/entity-feed-card.tsx supabase/migrations/20260121000700_fix_validate_post_data_visibility.sql
4. Commit
git commit -m "Short summary of changes
- Bullet point 1
- Bullet point 2 (if relevant)"
- Use clear, present-tense summaries (e.g. "Fix post visibility update" not "Fixed post visibility update").
- For larger changes, add 1–3 bullet points.
5. Push
git push origin main
- Use
main unless the user works on another branch; then use that branch name.
- If the push fails (e.g. remote has new commits), run
git pull --rebase origin main (or the current branch), resolve any conflicts, then push again.
Quick Reference (Copy-Paste)
npm run build
git status
git add <paths>
git commit -m "Your message"
git push origin main
When to Defer
- Merge conflicts, history rewrite, complex Git issues → Use git-expert.
- CI/CD, GitHub Actions, workflow automation → Use github-actions-expert.
Project Details
- Build:
npm run build (Next.js).
- Migrations:
npm run db:migrate supabase/migrations/<file>.sql (see docs/scripts/HOW_TO_RUN_MIGRATIONS.md). Do not run migrations as part of push unless the user explicitly asks.
- Remote:
origin; default branch main.
Checklist Before Pushing
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: github-push3description: Project-specific workflow for building and pushing to GitHub. Use when the user asks to "build and push", "push to GitHub", or similar. Ensures build runs first, correct files are staged, and push completes to origin. Use when this capability is needed.4---56# GitHub Push Skill78This skill defines the **build-and-push-to-GitHub** workflow for this project. Use it whenever the user requests a build and push, or to push changes to GitHub.910## Golden Rules11121. **Always build before pushing.** Run `npm run build` and confirm it succeeds. Do not push if the build fails.132. **Use project root.** Run all commands from the project root (`v0-4-11-2025-authors-info-2` or equivalent).143. **Shell: PowerShell (Windows).** Use `;` to chain commands, not `&&`. Prefer separate commands when unsure.154. **Never run database reset** or other destructive DB commands.165. **Never commit** `.env`, `.env.local`, or other secrets.1718## Standard Workflow1920### 1. Build2122```powershell23npm run build24```2526- Fix any build errors before proceeding.27- If type/lint issues appear, address them or run `npm run lint` / `npm run types:check` as needed.2829### 2. Check Status3031```powershell32git status33```3435- Review modified, added, and untracked files.36- Do **not** stage temporary scripts, `node_modules`, `*.log`, or env files.3738### 3. Stage Changes3940Stage only what belongs in the commit:4142- **Typical includes:** `app/`, `components/`, `lib/`, `types/`, `utils/`, `hooks/`, `supabase/migrations/*.sql`, `.agent/skills/`, config/docs relevant to the change.43- **Exclude:** `node_modules/`, `.env*`, `*.log`, debug scripts (e.g. `scripts/debug-*.ts`, `scripts/check-*.ts` unless they are permanent tooling), `script-results.json`, `test-output.txt`, and other local/temporary artifacts.4445Use explicit paths:4647```powershell48git add <path1> <path2> ...49```5051Or add by directory, e.g.:5253```powershell54git add app/api/activities/route.ts components/entity-feed-card.tsx supabase/migrations/20260121000700_fix_validate_post_data_visibility.sql55```5657### 4. Commit5859```powershell60git commit -m "Short summary of changes6162- Bullet point 163- Bullet point 2 (if relevant)"64```6566- Use clear, present-tense summaries (e.g. "Fix post visibility update" not "Fixed post visibility update").67- For larger changes, add 1–3 bullet points.6869### 5. Push7071```powershell72git push origin main73```7475- Use `main` unless the user works on another branch; then use that branch name.76- If the push fails (e.g. remote has new commits), run `git pull --rebase origin main` (or the current branch), resolve any conflicts, then push again.7778## Quick Reference (Copy-Paste)7980```powershell81npm run build82git status83git add <paths>84git commit -m "Your message"85git push origin main86```8788## When to Defer8990- **Merge conflicts, history rewrite, complex Git issues** → Use **git-expert**.91- **CI/CD, GitHub Actions, workflow automation** → Use **github-actions-expert**.9293## Project Details9495- **Build:** `npm run build` (Next.js).96- **Migrations:** `npm run db:migrate supabase/migrations/<file>.sql` (see `docs/scripts/HOW_TO_RUN_MIGRATIONS.md`). Do not run migrations as part of push unless the user explicitly asks.97- **Remote:** `origin`; default branch `main`.9899## Checklist Before Pushing100101- [ ] `npm run build` succeeds.102- [ ] Only intentional files are staged (no secrets, logs, or temp scripts).103- [ ] Commit message clearly describes the change.104- [ ] `git push origin main` (or target branch) completes successfully.105106---107> Converted and distributed by [TomeVault](https://tomevault.io/claim/ripgraphics) — claim your Tome and manage your conversions.108<!-- tomevault:4.0:skill_md:2026-04-15 -->