5,438,349 AI resources indexedWorking toward the world’s largest AI resource index.

PDF

Push to Main (MooshieUI)

Automates the process of committing and merging changes in MooshieUI, ensuring a smooth workflow without version bumps.

Installable skillAGPL-3.0-onlyBy Mooshieblob1Updated Nov 1, 2026
INTENDED FORClaude CodeCodexOpenClawCursorInstall in a listed agent.

instructions.md

---
name: push-a2f96a59e733
description: >-
  Commits MooshieUI working-tree changes and lands them on main via a squash-merged
  PR without version bump or release tag. Use when the user says /push, push to main,
  chore PR, or wants docs/CI/fixes merged without a release.
---

# Push to Main (MooshieUI)

Non-release path: **PR → GlassWorm CI → squash merge → sync main**. Run autonomously; do not pause for confirmation unless blocked.

**Does not:** bump version, edit `docs/RELEASE_NOTES.md` / `CHANGELOG.md`, create tags, or run full release build CI.

## Inputs

- **Commit message:** user-provided, or derive from `git diff` (imperative, ≤72 chars, e.g. `fix CI toolchain`)
- **Branch:** `chore/<slug>` — lowercase, hyphens, ≤50 chars from message

## Windows git (required)

Pre-commit hook is bash and **hangs in PowerShell**. Prefix **every** git command:

```text
git -c core.hooksPath=/dev/null ...
```

## Workflow

### 1. Pre-flight

```powershell
cd "$(git rev-parse --show-toplevel)"
git diff --stat
git diff --cached --stat
```

Clean tree → tell user and stop.

If `package.json`, `src-tauri/Cargo.toml`, or `src-tauri/tauri.conf.json` show version-only bumps → warn user to use **release** skill instead.

### 2. Pre-commit-check

Follow the **pre-commit-check** skill. Fix blocking issues; re-run until ✅ Ready to commit.

### 3. Branch, commit, push

```powershell
git checkout -b chore/<slug>
git add -A
git -c core.hooksPath=/dev/null commit -m "<message>"
git -c core.hooksPath=/dev/null push -u origin chore/<slug>
```

### 4. Open PR

```powershell
gh pr create --base main --head chore/<slug> --title "<message>" --body "$(git diff --stat origin/main...HEAD)"
```

### 5. Wait for CI

Poll until **GlassWorm Infection Audit** is `SUCCESS` (30s interval, 5 min timeout):

```powershell
gh pr checks --watch --interval 30
```

On failure: `gh pr checks` / run logs → fix → push → re-poll.

### 6. Merge

```powershell
gh pr merge --squash --delete-branch
```

### 7. Sync local main

```powershell
git checkout main
git fetch origin main
git reset --hard origin/main
```

### 8. Cleanup

Remote branch is deleted by `--delete-branch` if merge succeeded. If not:

```powershell
git -c core.hooksPath=/dev/null push origin --delete chore/<slug>
```

### 9. Wiki pass [only if user-facing behavior changed]

Most pushes (docs, CI, refactors, internal fixes) need **nothing here** — skip. Only if this push adds, renames, or removes a user-facing feature or setting, sync the wiki (a **separate repo**: `https://github.com/Mooshieblob1/MooshieUI.wiki.git`, branch `master`, top-level `*.md`, nav `_Sidebar.md`).

```powershell
git clone https://github.com/Mooshieblob1/MooshieUI.wiki.git <scratch>/MooshieUI.wiki   # outside the main repo
```

Edit the relevant page(s), **verifying exact UI labels against current code** (`src/lib/locales/en.ts` + the component) rather than trusting the commit message — labels get renamed before ship. Match the wiki's concise, present-tense voice. Then:

```powershell
git -c core.hooksPath=/dev/null commit -am "Document <feature>"
git -c core.hooksPath=/dev/null push origin master
```

No `Co-Authored-By`, no em dashes. Report pages touched (or that no wiki change was needed).

## Checklist

```
- [ ] Pre-commit-check passed
- [ ] PR created chore/<slug> → main
- [ ] GlassWorm SUCCESS
- [ ] Squash merged
- [ ] Local main reset to origin/main
- [ ] Wiki pass done if the push changed user-facing behavior (else skipped)
```

## Mistakes to avoid

1. Pushing directly to `main` (branch protection)
2. Omitting `core.hooksPath=/dev/null` on Windows
3. Including release version bumps — use **release** skill
4. Adding `Co-Authored-By` trailers to commits, PR bodies, or comments — never attribute AI assistance in any git or GitHub output

Discuss this resource

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.