Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

upgrade-microbus

БесплатноБез исполняемых скриптовНе проверен

TRIGGER when the user asks to upgrade the project to a newer or the latest version of Microbus, or to update the framework. Each Microbus release ships this…

microbus-ioот microbus-io★ 173 звезды на GitHub

Об этом скилле

CRITICAL: Do NOT explore or analyze the project unless a migration step below tells you to. This skill is self-contained.

CRITICAL: This skill is self-propagating. It migrates the project by exactly one version increment (Phase 1), then replaces itself on disk with the next release's copy of this same skill and runs that (Phase 2). Only the "Release constants" and Step 3 differ between releases; the Phase 1 and Phase 2 machinery is identical in every release.

Release Constants

The only part of this skill a release author edits. Set these when cutting a release.

  • SOURCE = the version this release upgrades from (the previous release), e.g. v1.44.0.
  • DEST = this release's own version, e.g. v1.45.0.
  • Migration = the source edits taking a project from SOURCE to DEST, authored in Step 3. Empty when the release has no breaking changes.
SOURCE = v1.50.0
DEST   = v1.51.0

Workflow

Copy this checklist and track your progress:

Upgrade Microbus:
- [ ] Step 1: Read the CURRENT and TARGET versions
- [ ] Step 2: Phase 1 - apply this release's increment (SOURCE -> DEST)
- [ ] Step 3: (release-specific migration, invoked by Step 2)
- [ ] Step 4: Phase 2 - chain to the next release, or finish

Step 1: Read the CURRENT and TARGET Versions

Read the github.com/microbus-io/fabric version from go.mod; call it CURRENT. If the dependency is absent, this is not a Microbus project; exit.

Determine the TARGET. In order of precedence: the TARGET carried forward from the previous hop of the chain (see Step 4); the version the user named when starting the upgrade; or, if the user asked only to update or go to "latest", the latest published version:

go list -m -versions github.com/microbus-io/fabric

The versions are listed oldest to newest. A user-supplied TARGET is fixed for the whole run: carry it across every hop and do not silently re-derive it as "latest" on a later hop. If CURRENT is already TARGET (or newer), there is nothing to do; exit.

Step 2: Phase 1 - Apply This Release's Increment (SOURCE -> DEST)

If CURRENT is not equal to SOURCE, skip straight to Step 4. (This happens on the very first hop: the project's installed copy of the skill is CURRENT's own release, so its DEST equals CURRENT and its SOURCE is one behind - Phase 1 has nothing to do, and its only job is to bootstrap the chain in Step 4.)

Otherwise the project is exactly one version behind this release. Migrate it:

  1. Pin the framework to DEST:

    go get github.com/microbus-io/fabric@DEST
    
  2. Apply the migration in Step 3.

  3. Regenerate each microservice's boilerplate with this release's generator, resolve dependencies, and compile-gate:

    find . -path ./vendor -prune -o -name definition.go -path '*api/definition.go' -print \
      | while read -r def; do
          svcdir=$(dirname "$(dirname "$def")")
          go run github.com/microbus-io/fabric/cmd/genservice "$svcdir"
        done
    go mod tidy
    go vet ./...
    

    go vet must pass before Step 4. A grep-guided or manual migration can leave a compile error at a site it could not fix mechanically; resolve those now - with the user when the fix is a design choice - so the project compiles at DEST. (A migration may deliberately leave a runtime // TODO: that still compiles; the final go test in Step 4 surfaces it.)

Step 3: Release-Specific Migration (v1.50.0 -> v1.51.0)

Invoked by Step 2. This is DEST's migration; a release author replaces it when cutting the next release (see "Authoring framework upgrade skills" in the repo-root CLAUDE.md). Confine it to source edits - Step 2 owns the per-increment genservice + go vet, and Step 4 owns the final go test.

v1.51.0 moves the foreman to dwarf v0.16.0 (by way of v0.15.0) and sequel v1.20.2, which Step 2's go get and go mod tidy already pull in. The foreman gains ListRecentlyClosed, the closed flows not archived yet, and Summary, one flow's summary by its key; every FlowSummary now names its RootFlowKey and ParentStepKey. sequel's changes reach a project's own SQL-backed microservices (3f). Email parsing moves to a renamed package (3g). The release also changes how the short-circuit transport delivers to overlapping subscriptions, and the status Chat returns for a task tool (3h).

3a. Tell the User That the Foreman's Databases Need a Schema Change

This is not a source edit, but the foreman fails without it, so tell the user before going on. dwarf v0.15.0 and v0.16.0 edited their migrations in place, so a database v1.50.0's foreman created does not pick the changes up, and nothing detects it: the foreman starts, then fails on its first write of a flow or step. Each environment's foreman shards need one of:

  • New, empty databases. Flows in the old databases d
Полный SKILL.md на GitHub

Установить upgrade-microbus в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл upgrade-microbus?

TRIGGER when the user asks to upgrade the project to a newer or the latest version of Microbus, or to update the framework. Each Microbus release ships this one self-contained skill; it applies that release's single-version migration, then chains to the next release's copy of this skill until the target version is reached.

Как установить скилл upgrade-microbus?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл upgrade-microbus запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить upgrade-microbus с