Workflow Ship Change
Meng ToCommunityCreated by Meng To
- Skill
- Workflow
- Software development
- MIT
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a comprehensive workflow for managing software changes, from initial development to live deployment. It enforces strict guardrails, including mandatory screenshot documentation, automated testing, and size-based upload constraints. The process ensures that every change is verified, committed as a clean fast-forward to the main branch, and published to a live environment with documented evidence of success.
What it does
- Captures screenshots of the start, key moments, and final results for documentation.
- Integrates changes into the project's changelog with versioning and visual assets.
- Verifies code and assets through targeted and full test suites.
- Manages git commits and fast-forward pushes to the main branch.
- Handles live deployment with pre-publication verification on draft URLs.
- Generates a structured report detailing commit sizes, test results, and deployment status.
When to use it
- At the conclusion of any feature, fix, tweak, art, balance, or polish task.
- When the user explicitly requests to ship, commit, push, merge, or deploy.
- When updating the project changelog.
- When a change requires verification and formal reporting before going live.
Advantages
- Ensures consistency across all project deployments through standardized steps.
- Prevents accidental large uploads by enforcing a 50 MB threshold for user confirmation.
- Maintains a clean repository history with fast-forward merges.
- Reduces deployment risks by requiring verification on a draft URL before production.
- Provides clear, evidence-based reporting for every change.
Usage examples
- “Ship the recent balance changes.”
- The agent will initiate the workflow, running tests, capturing screenshots, committing the changes, and preparing the deployment report.
- “Deploy the latest feature to production.”
- The agent will verify the current main branch, perform a draft deployment, run verification scripts, and publish to the live domain if all checks pass.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/mengto/workflow-ship-change/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip workflow-ship-change.zip -d .agents/skills
Documentation by Meng To
Workflow: ship a change
A change is done only when all of these are true, and the report shows each one:
Screenshots of the real rendered game: the start state, the key moment and the result. They're shown inline in the report.
Its own changelog version, with its pictures on the in-game changelog page.
Verified:
your own tests;
the tests of commits you merged in;
the asset checks;
the full suite, run on the pushed commit.
Committed: one cohesive commit, with only your own files staged.
Pushed to
mainas a fast-forward, and confirmed on GitHub.Live: the build of that exact
mainis published, and confirmed working on the real domain.Measured: the sizes of the commit, the push, any upload and the publish, all measured, never estimated.
Pushing and publishing are standing authorizations for the project's own repository and live site. So don't ask before them, except where a guardrail below says stop. Read the project's AGENTS.md before starting, and this skill's references/<project>.md if there is one. Project rules change often, and wherever they differ from this skill, they win.
Guardrails: stop and ask the user
Any upload over 50 MB. That covers a git push, a Netlify deploy, a media release, and files sent to any outside service.
Measure first (
upload-size.sh, or the pack sizepush-main.shprints), and state the size when asking.Count the whole operation, and never split it to get under.
A full Supabase media release (about 861 MiB) always needs asking.
A force-push, rewriting remote history, changing repository visibility, or pushing to another repository.
A new site or project, or changing a site's access, domain or DNS, unless the task is exactly that and the user asked for it.
When the permission check blocks a deploy, rollback or upload: stop. Don't retry it another way or through another thread. Tell the user the exact click path or command.
Live broken after your publish: say so first in your report, with the measured evidence and the rollback click path. Don't bury it.
Guardrails: never
Never publish anything but the clean, pushed
origin/main. No unmerged branch, no uncommitted file.Never deploy large media to Netlify as a fallback; media lives in Supabase Storage.
Never publish to a host the project has retired, even if old scripts still point at it.
Never run the broad image optimizer (
pnpm images:optimize, oroptimize-images.py --apply). It rewrites other sessions' pending images. Useruntime-assets.py --only '<your glob>', then--verify.Never stage credentials,
.env*,node_modules, caches or build output, and never usegit add -Ain a shared checkout.Never call a local commit pushed, or a deploy live, until you've confirmed it on the remote or the domain.
Never kill a process you didn't start. Check its working folder first:
lsof -a -p <pid> -d cwd.
Steps
0. Before you start
Run
git fetch, thengit log origin/main --oneline -30, and search for your area. Look in the sibling worktrees (git -C <wt> diff --stat) for someone already making the same edit.Work in your own worktree on a branch off
origin/main. Other sessions edit the shared checkout live.
1. Screenshots
Capture the real game at 1600×900 using the project's review fixtures (
?review=<name>). Take the start, the key moment and the result.If the project names a capture tool, use it. Otherwise capture headlessly over CDP (see the
workflow-progress-screenshotsskill), and say which you used.Look at every picture before using it. Stray toasts, stale numbers, or the wrong scene mean recapture.
Label them honestly: headless browser captures, and a phone-sized viewport is not a device test.
Keep capture scripts in the worktree's gitignored
qa/captures/; the session scratchpad is wiped on restart.
2. Changelog version
Follow the project's changelog rules exactly: format, versioning, and how pictures are added.
Write for players: what they can see or do now, with no file names or hashes.
Changes to tests, tooling, docs or rules get no version.
If another session took your version number, renumber yours on merge, and keep their entries.
3. Verify
Run the suites your change touches as you go.
After merging
main, also run every test file the incoming commits touched:git diff --name-only <old-base> <new-base> -- tests.Run the image verify if images shipped.
The full suite takes 10–40 minutes on a busy machine. Run it with
run_in_backgroundand read the log. Re-run a timeout-looking failure on its own before calling it real.Report honestly which runs were full and which were targeted, with pass and fail counts.
4. Commit
git diff --cachedmust be empty before you start.Stage explicit paths only.
Run
commit-size.shon the staged changes; its numbers go in the report.One commit per cohesive change. While still iterating, amend a single work-in-progress commit instead of piling up small ones.
Write the message in the repo's style, ending with the attribution line the system gives you.
5. Merge and push
git fetch, thengit rebase origin/main(or merge, on a shared branch).Resolve conflicts keeping everyone's work. For generated JSON (image audit, manifests), take upstream's file, re-add your own records, and recompute totals with the project's tool.
node --checkeverysrcandtestsfile. Then run your tests plus the incoming commits' tests.push-main.sh:it refuses anything that isn't a fast-forward;
it measures the pack and stops over 50 MB;
it pushes with
--progressand prints git's "Writing objects" line (the bytes sent);it confirms
origin/mainequals HEAD.
If
mainmoved, go back to step 1.Run the full suite on the pushed commit, and fix forward if it breaks.
6. Publish live
Build in a checkout whose HEAD is exactly
origin/mainand whose tracked files are clean.If the build changes a tracked file, commit and push that file first, then build again.
Measure what will be uploaded (
upload-size.sh dist, plus any media release). Over 50 MB, stop and ask.Deploy to a draft or preview URL first. Run
verify-live.sh <draft-url>: the page, its scripts and art, and the gate route. Promote to production only when it passes. This step exists because a production deploy once went out without its edge function: the site served its page but 404'd every image, and nobody could play.After promoting, run
verify-live.shon the real domain. Record the deploy ID, the publication time, the live game version, and the bytes sent.If another session published after you, that's fine as long as it also published
main.
Report
Short, in this order:
The commit hash, pushed and confirmed. Commit size: files, total size, largest files. Push size: the bytes sent.
Live: URL, deploy ID, time, live version, and the
verify-live.shresult. Upload size: bytes sent, built-site size, and any media release. If you didn't publish, say why (for example "held: needs a media release over 50 MB; asking").What changed, for a player, plus the changelog version and title.
Tests: which runs were full and which targeted, with pass and fail counts.
Screenshots with captions, labelled as headless captures.
Anything deferred or departed from, and why.
Files
- ATTRIBUTION.mdAdded by AutoGineer860 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md8.1 KiB
- scripts/commit-size.shScript1.4 KiB
- scripts/push-main.shScript1.9 KiB
- scripts/upload-size.shScript1.2 KiB
- scripts/verify-live.shScript1.8 KiB
scripts/commit-size.sh
#!/usr/bin/env bash
# Measured size of a commit (or of what is staged), for the report the user asks for with every commit:
# how many files it changes, the total size of the new or changed files, and the largest ones.
# commit-size.sh size of the staged changes (run before committing)
# commit-size.sh <rev> size of that commit (default comparison: its first parent)
set -uo pipefail
if [ $# -eq 0 ]; then
list=$(git diff --cached --name-status); side=':'; label="staged"
else
list=$(git diff --name-status "$1^" "$1"); side="$1:"; label="$(git log -1 --format='%h %s' "$1" | cut -c1-70)"
fi
[ -n "$list" ] || { echo "nothing to measure ($label)"; exit 0; }
total=0; rows=""; count=0; deleted=0
while IFS=$'\t' read -r status path rest; do
count=$((count+1))
[ -n "$rest" ] && path="$rest" # renames: take the new path
case "$status" in D*) deleted=$((deleted+1)); continue ;; esac
size=$(git cat-file -s "$side$path" 2>/dev/null || echo 0)
total=$((total+size)); rows+="$size $path"$'\n'
done <<< "$list"
human() { awk -v b="$1" 'BEGIN{ if (b>=1048576) printf "%.2f MiB", b/1048576; else if (b>=1024) printf "%.1f KiB", b/1024; else printf "%d B", b }'; }
echo "commit: $label"
echo "files changed: $count ($deleted deleted) size of new or changed files: $(human $total) ($total bytes)"
echo "largest:"
printf '%s' "$rows" | sort -rn | head -5 | while IFS=$'\t' read -r s p; do echo " $(human "$s") $p"; done
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Node.js
Security
What our scanner noticed· Low risk
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Meng To
- Publisher
- Meng To (Community)
- Source
- MengTo/Skills · agent-skills/workflow/workflow-ship-change · commit 5ea1661
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Meng To.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download workflow-ship-change.zip