Процесс релиза Worktrunk. Используй, когда просят выпустить новую версию и опубликовать её на crates.io и GitHub.

Звёзды12 603
Авторmax-sixty
Установок68

Установка

SKILL.md

Release Workflow

Steps

  1. Sync the release branch with main: The release worktree's branch lags main between releases — it's only reset to main after a release lands. Cutting from a stale branch silently drops everything merged since. Fast-forward to the tip of main before anything else:<!-- -->
    git fetch origin
    git merge --ff-only origin/main
    
    --ff-only advances the branch when it's a strict ancestor of origin/main and fails (rather than creating a merge commit or discarding work) if it has diverged — reconcile manually before continuing. This is the release-branch equivalent of wt up, spelled out because the up alias rebases each branch onto its own upstream (origin/release), not main. Note the resulting commit SHA: this is the tip the changelog covers, and step 12 checks that nothing else reaches main before the tag.
  2. Run tests: Two gates — the local suite and the full cross-platform suite.<!-- -->
    • Local: cargo run -- hook pre-merge --yes.
    • Cross-platform: dispatch the nightly workflow on the cut-from tip and wait for it to go green. This is where a release gets its full linux/macos/windows validation: the PR path (ci.yaml) is moving to cargo-affected selection and will stop running the full test matrix, while nightly hosts full-tests (the full 3-OS suite) alongside feature-powerset, release-target, nix-flake, and minimal-versions. Benchmarks aren't part of nightly — they run in their own benchmarks.yaml and gate nothing.<!-- -->
      gh workflow run nightly.yaml --ref main
      # Registration lags the dispatch, and a prior release may have left a
      # stale completed workflow_dispatch run — filter to the in-flight one.
      sleep 5
      RUN=$(gh run list --workflow=nightly.yaml --event=workflow_dispatch --branch=main --limit 5 --json databaseId,status --jq 'map(select(.status != "completed")) | .[0].databaseId')
      
      <!-- -->Launch a ci-reporter to monitor $RUN to completion (avoid gh run watch — it can hang). Fix any failure before continuing.
  3. Check current version: Read version in Cargo.toml
  4. Review commits: Check commits since last release to understand scope of changes. Audit the cumulative diff for the data-loss surface (see Data-Loss Surface Review) before proceeding.
  5. Check library API compatibility (advisory): Run cargo semver-checks check-release -p worktrunk (install with cargo install cargo-semver-checks --locked if missing) as a bump-level input, not a compat gate — worktrunk ships breaking library changes freely. If it reports breaking changes, that's fine; under semver the bump must still be minor (pre-1.0) or major (post-1.0). See "Library API Compatibility" below.
  6. Credit contributors: Check for external PR authors and issue reporters (see "Credit External Contributors" and "Credit Issue Reporters" below)
  7. Determine release type: Pick the bump from the changes (including semver-checks result). Ask the user only if the choice is genuinely ambiguous (see below).
  8. Bump version (must run on a clean tree — before editing CHANGELOG):<!-- -->
    cargo release X.Y.Z -p worktrunk -x --no-publish --no-push --no-tag --no-verify --no-confirm && cargo check
    
    <!-- -->This bumps Cargo.toml and Cargo.lock, then auto-commits. We'll reset this commit in step 10 to fold in the CHANGELOG.
  9. Update CHANGELOG: Add ## X.Y.Z section at top with changes (see MANDATORY verification below)
  10. Commit: Reset the auto-commit from step 8, stage everything, and create the final release commit:<!-- -->
    git reset --soft HEAD~1 && git add -A && git commit -m "Release vX.Y.Z"
    
  11. Merge to main: /gpk — opens a PR, waits for CI, merges via PR (preserves worktree). main can advance during the CI wait; step 12 catches anything that lands before the tag.
  12. Verify nothing drifted in, then tag and push: /gpk squash-merges onto whatever main tip exists at merge time, so a commit that lands during the PR's CI wait ships in the release but goes undocumented (the easy miss is a follow-up that reworks a feature this release already documents). Confirm the only commit added to main since the cut-from tip (step 1) is the release commit:<!-- -->
    git fetch origin
    git log --oneline <cut-from-commit>..origin/main
    
    <!-- -->Expect a single line — the Release vX.Y.Z (#NNNN) squash commit. Any extra line drifted in during the window: review it, fold it into the changelog if user-facing (a quick follow-up squash PR), then re-run the check. Once clean, tag the squash commit (not the local branch HEAD, which /gpk reset) so the tag is reachable from main:<!-- -->
    MERGE_SHA=$(gh pr view --json mergeCommit --jq '.mergeCommit.oid')
    git tag vX.Y.Z "$MERGE_SHA" && git push origin vX.Y.Z
    
  13. Wait for the release workflow: The tag push triggers release.yaml. Launch a ci-reporter agent to monitor the run through to completion (avoid gh run watch — it can hang); the run ID comes from:<!-- -->
    gh run list --workflow=release.yaml --event=push --branch=vX.Y.Z --limit 1 --json databaseId --jq '.[0].databaseId'
    

release.yaml builds binaries and publishes to crates.io, Homebrew, and winget automatically.

Data-Loss Surface Review

Worktrunk's worst failure is silently destroying a user's work. The per-PR review (running-tend, "Data-Loss Surface") is the first gate; the release is the second, where the whole diff since the last release is visible at once.

This review optimizes for recall: find every change that could touch the deletion surface, accept false positives, then adjudicate each candidate. Missing one real loss path costs far more than reviewing a false alarm.

A keyword grep alone is insufficient. It finds only what someone thought to pattern-match, and an agent handed the grep anchors on it and inherits its blind spots. So fan out independent finders, most of them without the grep, and analyze every candidate they surface.

Find: independent finders, recall over precision

Launch 3-5 finder subagents in parallel over the cumulative diff (git log v<last-version>..HEAD -p) and the code it touches, including anything that calls into or is called by the changed code. Each works independently: do not let them share findings during this phase, and do not collapse them onto one method. Each returns candidate locations with a one-line reason, erring toward over-reporting.

Give each a distinct charter. At least two receive no grep and no keyword list, so they reason from the code instead of pattern-matching:

  • Behavioral (no grep): read each change and ask what it could destroy: files, branches, worktrees, uncommitted or untracked work, committed-but-unpushed commits. Flag any change whose worst case is lost user data.
  • Blast-radius (no grep): for every function and file the diff touches, trace callers and callees. Flag any path that can now reach a destructive primitive (branch deletion, worktree removal, filesystem removal, history rewrite), even when that call sits outside the diff.
  • Automation diff (no grep): compare shipped automation before and after: plugins/*/hooks/hooks.json, hooks/hooks.json, hooks/wt.sh, and skill or alias examples users copy. Flag any new or altered invocation that removes or force-overwrites anything.
  • Keyword scan (grep): one finder runs the pattern filter over the full diff as a cross-check, never as the primary method. It takes no pathspec; a path allowlist would recreate the blind spots the no-grep finders exist to avoid (the densest destructive code, the trash sweep in src/commands/process.rs, sits outside src/git/).<!-- -->
    git log v<last-version>..HEAD -p \
      | grep -nE -- '--force-delete|--force| -D| -f |branch -[dD]|worktree remove|reset --hard|checkout -f|clean -[fdx]|remove_dir_all|remove_file|rm -rf'
    

Analyze: adjudicate each candidate

Pool the candidates, dedupe, and analyze each against the data-safety invariants in CLAUDE.md and the FAQ "What can Worktrunk delete?" inventory: does it preserve data on failure, require explicit consent for destructive ops, and avoid silent side-effect deletion? Mark each real risk / acceptable / needs change, with the reasoning.

Surface the full adjudicated list and get explicit sign-off before tagging. Do not tag a release with an unresolved deletion-surface candidate, even if it looks acceptable.

CHANGELOG Review

Check commits since last release for missing entries:

git log v<last-version>..HEAD --oneline

IMPORTANT: Don't trust commit messages. Commit messages often undersell or misdescribe changes. For any commit that might be user-facing:

  1. Run git show <commit> --stat to see what files changed
  2. If it touches user-facing code (commands, CLI, output), read the actual diff
  3. Look for changes bundled together — a "rename flag" commit might also add new features

Common patterns where commit messages mislead:

  • "Refactor X" commits that also change behavior
  • "Rename flag" commits that add new functionality
  • "Fix Y" commits that also improve error messages or add hints
  • CI/test commits that include production code fixes

Notable changes to document:

  • New features or commands
  • User-visible behavior changes
  • Bug fixes users might encounter

Section order: Improved, Fixed, Documentation, Internal. Documentation is for help text, web docs, and terminology improvements. Internal is for selected notable internal changes (not everything).

Within each section, order by impact:

  1. Breaking/behavior changes (affect existing users' workflows)
  2. New user-facing features and commands
  3. Performance improvements users will notice
  4. Minor enhancements and display changes
  5. Niche/platform-specific improvements (Nix, Windows-only, etc.)
  6. Developer/internal tooling exposed to users

Breaking changes: Note inline with the entry, not as a separate section:

- **Feature name**: Description. (Breaking: old behavior no longer supported)

Skip: internal refactors, test additions (unless user-facing like shell completion tests).

Length and tone

Combine related bullets. Several PRs that share a theme — e.g. three perf changes that together account for one user-visible speedup — belong in one bullet, not three. The reader cares about the net change, not the PR boundaries. Cite all the PRs in the trailing ([#a](...), [#b](...), [#c](...)) list.

Be brief. Each bullet should communicate the user-visible change in 1–3 sentences. Internal-section bullets in particular should be terse — usually one sentence. Drop the "why we did it this way" details unless they materially affect how the user thinks about the change. Code examples and exhaustive Cmd::stream / OnceCell / DashMap-style internals usually don't belong; they live in the PR description.

No editorial framing. Describe what changed, not what was wrong with the previous decision in subjective terms. Avoid words like "sledgehammer", "ugly", "noisy", "wrong" applied to past code. State the prior behavior neutrally and the new behavior plainly.

Good: "Removed .pi/ from the default excludes list; users who need it can add it via [step.copy-ignored]." Bad: "Removed .pi/ — a sledgehammer fix from an unrelated debugging session that has no place as a project-agnostic default."

Credit External Contributors

For any changelog entry where an external contributor (not the repo owner) authored the commit, add credit with their GitHub username:

- **Feature name**: Description. ([#123](https://github.com/user/repo/pull/123), thanks @contributor)

Find external contributors:

git log v<last-version>..HEAD --format="%an <%ae>" | sort -u

Then for each external contributor's commit, find their GitHub username from the commit (usually in the email or PR).

Credit Issue Reporters

When a fix or feature addresses a user-reported issue in this repo, thank the reporter — not just the PR author. Users who take time to report bugs, request features, or provide reproduction steps deserve recognition. (Don't credit reporters from upstream/external repos — only issues filed here.)

- **Feature name**: Description. ([#456](https://github.com/user/repo/pull/456), thanks @reporter for reporting)

For fixes that reference issues:

- **Bug fix**: Description. Fixes [#123](https://github.com/user/repo/issues/123). (thanks @reporter)

Finding reporters — do ALL three steps:

Issues may have been filed months before the fix. Bug reports also appear as PR comments, not just issues. These steps are complementary; each catches things the others miss.

  1. Extract every issue/PR reference from every commit (PRIMARY):

    git log v<last-version>..HEAD --format="%B" | grep -oE '#[0-9]+' | sort -t'#' -k2 -n -u
    

    For each referenced number: run gh issue view N --json title,author,state. This catches issues filed months ago — the most commonly missed credits.

  2. Check PR comments for bug reports (catches reports that never became issues): For feature PRs referenced in commits, check comment threads for users reporting problems:

    gh pr view NNN --json comments --jq '.comments[] | "\(.author.login): \(.body[:150])"'
    
  3. Survey every issue opened or closed since last release (catches unreferenced matches):

    git log -1 --format=%cs v<last-version>
    gh issue list --state all --search "created:>=<date>" --json number,title,author --limit 100
    gh issue list --state closed --search "closed:>=<date>" --json number,title,author --limit 100
    

    Cross-reference every title against changes in this release.

When to credit:

  • Bug reports with clear reproduction steps (in issues OR PR comments)
  • Feature requests that shaped the implementation
  • Performance reports with measurements (like "takes 15s")
  • Users who helped diagnose issues through discussion

Skip credit for: issues opened by the repo owner, trivial reports, or issues that were substantially different from what was implemented.

Связывайте значимые функции с документацией

Для крупных функций с отдельной документацией добавляйте ссылку на документацию. Используйте полные URL, чтобы ссылки работали из релизов GitHub:

- **Hook system**: Shell commands that run at key points in worktree lifecycle. [Docs](https://worktrunk.dev/hook/) ([#234](https://github.com/user/repo/pull/234), thanks @contributor for the suggestion)

Ссылайтесь, когда есть существенная документация, которую пользователю будет полезно прочитать — новые команды, страницы функций или разделы Tips & Patterns. Пропускайте для мелких улучшений.

ОБЯЗАТЕЛЬНО: проверяйте каждую запись changelog

После составления записей changelog вы ДОЛЖНЫ запустить субагента, чтобы проверить точность каждого пункта. Это не обсуждается — ошибки в changelog являются повторяющейся проблемой.

Субагент должен:

  1. Взять список составленных записей changelog
  2. Для каждой записи найти коммит(ы), которые она описывает, и прочитать фактический diff
  3. Проверить, что запись точно описывает изменения
  4. Проверить наличие пропущенных изменений, которые следует задокументировать
  5. Сообщить о любых неточностях или пропусках

Шаблон промпта для субагента:

Verify these changelog entries for version X.Y.Z are accurate.

Previous version: [e.g., v0.1.9]
Commits to check: git log v<previous>..HEAD

Entries to verify:
[paste drafted entries]

For EACH entry:
1. Find the relevant commit(s) using git log and git show
2. Read the actual diff, not just the commit message
3. Confirm the entry accurately describes the user-facing change
4. Flag if the entry overstates, understates, or misdescribes the change

Also check:
- Are there user-facing changes NOT covered by these entries?
- Verify each "thanks @..." attribution (right person, right role — author vs reporter)

Report format:
- Entry: [entry text]
  Status: ✅ Accurate / ⚠️ Needs revision / ❌ Incorrect
  Evidence: [what you found in the diff]
  Suggested fix: [if needed]

Не финализируйте changelog, пока субагент не подтвердит точность всех записей.

Если проверка выявила проблемы: Эскалируйте пользователю. Покажите ему результаты субагента и спросите, как поступить. Не пытайтесь самостоятельно разрешать неоднозначные записи changelog — пользователь знает замысел своих изменений лучше вас.

Определите тип релиза

Выберите повышение версии на основе изменений. Пропускайте вопрос, когда правдоподобен только один уровень; спрашивайте только когда выбор действительно неоднозначен.

Действуйте без вопроса, когда ответ очевиден:

  • cargo semver-checks сообщает о breaking changes → minor (pre-1.0; patch запрещён, major не имеет оснований pre-1.0 в развивающемся проекте). Сообщите пользователю и продолжайте: "Повышаю minor — semver-checks сообщил о N breaking changes; patch запрещён pre-1.0."
  • Только исправления ошибок и внутренние коммиты с прошлого релиза, без новых функций, без нарушений semver → patch. Сообщите пользователю в той же форме.

Спрашивайте только когда действительно неоднозначно — например, появились новые функции без нарушений semver (patch vs. minor — вопрос суждения), или пограничный случай, когда трактовка изменений пользователем может отличаться. Используйте AskUserQuestion с фактическим выбором (patch vs. minor); не добавляйте варианты новизны вроде пропуска номера версии.

При вопросе представляйте:

  1. Текущая версия (например, 0.2.0)
  2. Краткое резюме изменений (новые функции, исправления ошибок, breaking changes)
  3. Ваша рекомендация с обоснованием

Пример:

Current version: 0.2.0
Changes since v0.2.0:
- Added `state clear` command (new feature)
- Added `previous-branch` state key (new feature)
- No breaking changes

Recommendation: Minor release (0.3.0) — new features, no breaking changes

Рекомендации по версиям

  • Вторая цифра (0.1.0 → 0.2.0): обратно несовместимые изменения
  • Третья цифра (0.1.0 → 0.1.1): всё остальное

Текущий статус проекта: режим развития (см. CLAUDE.md › Project Status). Внешние интерфейсы — формат файла конфигурации (wt.toml, пользовательская конфигурация) и флаги/аргументы CLI — несут вес совместимости, поэтому нарушения там требуют обоснования (реальное улучшение, а не чистка) и предпочтительны предупреждения об устаревании вместо молчаливых нарушений. Всё остальное, включая внутренние и библиотечные API, остаётся гибким: worktrunk свободно выпускает breaking-изменения библиотеки и каждый раз повышает версию, не придавая веса существующим внутренним API.

Совместимость библиотечного API

Worktrunk — это CLI-инструмент. Крейт [lib] в Cargo.toml действительно предоставляет публичный API, но он не является поверхностью совместимости — согласно CLAUDE.md › Project Status, проблем совместимости Rust-библиотеки нет, и проект свободно выпускает breaking-изменения библиотеки, каждый раз повышая версию (см. записи "Breaking library API" в CHANGELOG.md). Ожидается, что нижестоящие крейты будут закреплять версии.

cargo-semver-checks таким образом является справочным входным сигналом для уровня повышения, а не шлагбаумом, обязывающим нас сохранять API стабильным для нижестоящих крейтов. Он сравнивает текущий публичный API с последней версией, опубликованной на crates.io, и сообщает о semver-значимых изменениях — полезный сигнал для выбора повышения:

cargo semver-checks check-release -p worktrunk

Интерпретация результатов:

  • Проблем не сообщено: нет сигнала на уровне библиотеки для повышения. Выбирайте на основе изменений CLI и новых функций.
  • Сообщены breaking changes: ожидаемо и приемлемо — нарушение библиотечного API здесь не то, чего следует избегать. Но по semver breaking change всё равно требует как минимум minor-повышения, пока pre-1.0 (например, 0.37.0 → 0.38.0), а не patch. Повышайте соответственно; это механика версий, а не сигнал сохранять старый API.
  • Инструмент не запускается (например, отсутствует базовая версия): вероятно, крейт ещё не опубликован или кэш реестра устарел. Попробуйте cargo semver-checks check-release -p worktrunk --baseline-version <last-published>.

Эта проверка подтверждает выбранное повышение — она не различает patch и minor, когда нарушений нет. Продолжайте использовать обзор коммитов, чтобы выбрать между patch (только исправления) и minor (новые функции).

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: release](https://darkplay.ru/ai/skills/max-sixty-worktrunk-release)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Opensource Sanitizeraffaan-m · Проверяет open-source форк на утечки секретов, PII и опасные файлы перед релизом.
225 587 ★
aws-agents-for-devsecopsanthropics · Расследование инцидентов, ревью кода и проведение UAT для готовности к релизу…
100 комп.
qa-orchestrawshobson · Мультиагентный QA-набор из 10 специализированных агентов на весь жизненный цикл QA…
495 комп.
Arch Linux Expertgithub · Специалист по Arch Linux: pacman, поддержка rolling-release и системное администрирование…
36 140 ★
DevOps Expertgithub · Специалист по DevOps, следующий принципу бесконечного цикла (Plan → Code → Build → Test →…
36 140 ★
Dynatrace Expertgithub · Агент Dynatrace Expert встраивает возможности наблюдаемости и безопасности прямо в…
36 140 ★
Octopus Release Notes With Mcpgithub · Генерирует примечания к релизу в Octopus Deploy. Инструменты этого сервера MCP…
36 140 ★
press-releasedeanpeters · Написать пресс-релиз в стиле Amazon, определяющий ценность для клиента до начала…
8 061 ★
user-story-mappingdeanpeters · Создание карты пользовательских историй с активностями, шагами, задачами и релизными…
8 061 ★
waza-checktw93 · Проверяет диффы кода, PR, очереди задач, готовность к релизу, коммиты, публикацию и аудит…
8 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8