К основному содержанию
скилл CX Codex

workflow-ship-change — скилл для Claude Code: что делает

Скилл задаёт регламент релиза изменений: делает скриншоты, прогоняет тесты, обновляет список изменений и деплоит код в main с проверкой лимитов.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add MengTo/Skills --skill workflow-ship-change -a claude-code
Открыть на GitHub

Что делает workflow-ship-change

Скилл проводит изменение через строгий цикл: создание снимков экрана игры с разрешением 1600×900, запись версии в changelog для игроков, запуск тестов и замер объёмов данных. Фиксация в git делается одним коммитом без git add -A и секретов в индексе, а отправка в ветку main разрешена только как fast-forward.

Внутри используются вспомогательные скрипты вроде push-main.sh, commit-size.sh и CDP для браузерных скриншотов. Перед началом агент заглядывает в AGENTS.md и соседние рабочие деревья git, чтобы исключить конфликты параллельных сессий.

Любая операция с передачей данных свыше 50 МБ требует явного подтверждения пользователя, поэтому агент остановится перед тяжёлой выгрузкой в сеть.

Какие задачи решает

  • подготовить скриншоты и описание релиза для changelog
  • проверить ветку и прогнать тесты перед отправкой в репозиторий
  • защитить основную ветку от случайного force-push
  • проконтролировать размер сборки и сетевых выгрузок до деплоя

Примеры запросов агенту

  • Задеплой текущие изменения и обнови список версий
  • Проверь тесты, сделай коммит и отправь всё в main
  • Оформи релиз этой правки по правилам workflow-ship-change

Как установить workflow-ship-change

1Через Skills CLI (Vercel)

npx skills add MengTo/Skills --skill workflow-ship-change -a claude-code

2Вручную: положить файлы

~/.claude/skills/workflow-ship-change/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/workflow-ship-change/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о workflow-ship-change

Как установить workflow-ship-change в Claude Code?

Выполните команду npx skills add MengTo/Skills --skill workflow-ship-change -a claude-code.

Что делает workflow-ship-change?

Скилл контролирует полный цикл отправки изменений: снимает скриншоты игры, фиксирует файлы в git, запускает проверки и публикует чистую ветку main.

Когда скилл прерывает работу и спрашивает подтверждение?

Он останавливается при загрузках объёмом свыше 50 МБ, попытке сделать force-push, смене настроек домена или блокировке прав доступа.

Исходный текст

SKILL.md · MIT
---
name: workflow-ship-change
description: Ship every change the way the user requires, with the guardrails. Take screenshots of the start, the key moment and the result; give the change its own changelog version with pictures; verify with tests; commit only your own files; merge with the latest main and push as a fast-forward; publish that exact main live; confirm each step; and report measured sizes, asking before any upload over 50 MB. Use at the end of every change (feature, fix, tweak, art, balance, polish) and whenever the user says "ship it", "commit", "push", "merge", "publish", "deploy", "go live" or "update the changelog". Project specifics (hosting, the changelog pipeline, merge conflicts) go in an optional local references/<project>.md next to this skill.
---

# Workflow: ship a change

A change is **done** only when all of these are true, and the report shows each one:

1. **Screenshots** of the real rendered game: the start state, the key moment and the result. They're shown inline in the report.
2. **Its own changelog version**, with its pictures on the in-game changelog page.
3. **Verified**:
   - your own tests;
   - the tests of commits you merged in;
   - the asset checks;
   - the full suite, run on the pushed commit.
4. **Committed**: one cohesive commit, with only your own files staged.
5. **Pushed** to `main` as a fast-forward, and confirmed on GitHub.
6. **Live**: the build of that exact `main` is published, and confirmed working on the real domain.
7. **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 size `push-main.sh` prints), 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`, or `optimize-images.py --apply`). It rewrites other sessions' pending images. Use `runtime-assets.py --only '<your glob>'`, then `--verify`.
- Never stage credentials, `.env*`, `node_modules`, caches or build output, and never use `git add -A` in 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`, then `git 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-screenshots` skill), 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_background` and 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 --cached` must be empty before you start.
- Stage **explicit paths** only.
- Run `commit-size.sh` on 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
1. `git fetch`, then `git rebase origin/main` (or merge, on a shared branch).
2. 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.
3. `node --check` every `src` and `tests` file. Then run your tests plus the incoming commits' tests.
4. `push-main.sh`:
   - it refuses anything that isn't a fast-forward;
   - it measures the pack and stops over 50 MB;
   - it pushes with `--progress` and prints git's "Writing objects" line (the bytes sent);
   - it confirms `origin/main` equals HEAD.

   If `main` moved, go back to step 1.
5. 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/main` and 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.sh` on 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:

1. The commit hash, pushed and confirmed. Commit size: files, total size, largest files. Push size: the bytes sent.
2. Live: URL, deploy ID, time, live version, and the `verify-live.sh` result. 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").
3. What changed, for a player, plus the changelog version and title.
4. Tests: which runs were full and which targeted, with pass and fail counts.
5. Screenshots with captions, labelled as headless captures.
6. Anything deferred or departed from, and why.

© MengTo · MIT · MengTo/Skills

Похожие скиллы

Все скиллы по теме «Git и GitHub» →
propagate-design-change Donchitos Находит архитектурные решения (ADR), которые устарели после правок в диздоке (GDD). Скилл сопоставляет изменения через git diff и ведёт по списку затронутых решений. CX Codex +1 415установок patch-notes Donchitos Собирает патч-ноуты для игроков из git-истории и внутренних ченджлогов, переводя язык разработчика в понятный текст. CX Codex +1 435установок review-and-ship cursor Скилл автоматизирует проверку изменений перед отправкой: смотрит на баги, тесты и соответствие намерению, затем коммитит и открывает PR. Подойдёт, если хочешь убедиться, что код готов, прежде чем его залить. CX Codex +1 2 500установок ship-it jssblck Доводит завершённую правку до готового пул-реквеста: коммитит, пушит, открывает PR и следит за CI до зелёного. CX Codex +1 1 700установок ship-gate Rajaraman Arumugam Проверяет код перед релизом по безопасности, базе данных, деплою и другим категориям. Останавливает намерение развернуть проект, пока критические проблемы не устранены. 475установок release-skills JimLiu Автоматизирует подготовку релизов, анализ коммитов и обновление версий в проектах на Node.js, Python или Rust. Сгенерирует ченджлог и создаст GitHub Release. CX Codex +1 25 600установок

Из того же набора148

3d-ultra-realistic-water Скилл для Three.js: собирает открытое море с волнами Герстнера, бликами солнца, пеной и кильватерным следом. Пригодится, когда в сцене есть горизонт и движущаяся камера. CX Codex +1 408установок horizontal-scroll-scenes Скилл для сцен, которые едут слева направо, пока пользователь скроллит вниз. Одна чистая функция превращает scrollY в сцену, паузу и переход. CX Codex +1 367установок workflow-score-to-target Ставит оценку от 1 до 10 по рубрике и доводит каждый пункт до названного вами порога за несколько раундов. CX Codex +1 348установок workflow-progress-screenshots Скилл обязывает агента присылать реальные скриншоты интерфейса по ходу работы, а не в конце задачи. Пригодится при правках фронтенда, анимаций, 3D-сцен и вёрстки. CX Codex +1 341установок paper-cinder-transition Скилл для WebGL-перехода между сценами: линия огня съедает старую страницу и открывает новую. Пригодится, когда fade или slide выглядит дешёво. CX Codex +1 330установок workflow-threads-manager Скилл для тех, кто ведёт несколько сессий Claude Code на одном репозитории. Проверяет, что каждая задача дошла до main, получила запись в чейнджлоге и живёт на проде. CX Codex +1 327установок 3d-orbit-inspect-demo Скилл для Three.js: объект наклоняется под курсором, а по клику поднимается в руку для осмотра. Пригодится для карточек товара и портфолио. CX Codex +1 321установок fire-paper-loader Создаёт прелоадер в виде горящей бумаги на WebGL 1 и OffscreenCanvas. Анимация огня не зависает в веб-воркере, пока основной поток браузера занят сборкой страницы. CX Codex +1 319установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой