gonka-ai/gonka/upgrade-bootstrap
Claude Code and agent skill by gonka-ai/gonka
- community
Checking that the SKILL.md file is still in the repository.
Bootstrap a new Gonka full automatic upgrade train for inference-chain and decentralized-api only. Use when the user wants to start a new upgrade branch from the latest main, scaffold the matching chain upgrade handler, make the initial bootstrap commit, and open the canonical draft PR against main. Do not use for MLNode-only or devshard-only work, release rollout, governance voting, or post-upgrade merge steps.
Install
npx vskill@latest install gonka-ai/gonka/upgrade-bootstrapSKILL.md
Upgrade Bootstrap
This skill bootstraps an upgrade train. It does not finish one.
Use it only for the special full automatic upgrade flow that covers:
inference-chaindecentralized-api
Do not use this skill for:
- MLNode upgrades
- devshard upgrades
- ad hoc API-only rollouts
- release publishing
- governance voting
- testnet rollout
- merge or post-upgrade cleanup
Required input
The caller must provide the target version in exact vX.Y.Z form.
Everything else is derived from that one string:
- branch:
upgrade-vX.Y.Z - upgrade package dir:
inference-chain/app/upgrades/vX_Y_Z/ - Go package:
vX_Y_Z - upgrade constant:
UpgradeName = "vX.Y.Z" - draft PR title:
Upgrade vX.Y.Z
If the caller gives a partial version, a branch name without the v, or any other approximate form, normalize only after confirming the exact target version.
Goal
Produce the canonical starting point for the upgrade train:
- branch from the latest
main - scaffold the minimal chain upgrade handler
- make one bootstrap commit
- open a draft PR against
main - stop
That draft PR is the coordination anchor for the rest of the upgrade work.
Safety rules
- Always branch from the latest
main, not from the current branch and not
from an older upgrade branch.
- Prefer non-interactive git commands.
- If local work prevents switching to
mainor fast-forwarding it cleanly, do
not bulldoze through it. Pause and ask the user how to proceed.
- Never include MLNode or devshard work in this bootstrap unless the caller
explicitly broadens scope.
- Keep the initial scaffold intentionally small. Do not start implementing the
actual upgrade features unless the caller asks.
Bootstrap workflow
1. Prepare the branch
Start from the latest main:
If the repo is dirty and switching branches would disturb local work, stop and ask before proceeding.
2. Scaffold the upgrade handler
Create the minimal handler scaffold modeled after the current tracked-upgrade pattern. Touch only the upgrade-registration surface:
inference-chain/app/upgrades.goinference-chain/app/upgrades/vX_Y_Z/constants.goinference-chain/app/upgrades/vX_Y_Z/upgrades.goinference-chain/app/upgrades/vX_Y_Z/upgrades_test.go
Do the following:
- Add the new import in
inference-chain/app/upgrades.go - Register the handler in
setupUpgradeHandlers()using
app.setTrackedUpgradeHandler(...), not raw SetUpgradeHandler(...)
- Create
constants.gowith the exact on-chain upgrade name - Create
upgrades.gowith a minimal handler that: - logs start and success
- fixes missing
capabilityversion infromVM - runs
mm.RunMigrations(...) - does nothing else yet
- Create
upgrades_test.gowith a test that pinsUpgradeNameexactly
The initial scaffold should not:
- add real migration logic
- bump module
ConsensusVersion - register empty migrations in
registerMigrations() - create proposal/release/governance artifact docs
- modify join-stack image tags
Those belong to later upgrade work, not to bootstrap.
The registration helper matters: it keeps LastUpgradeHeight tracking attached to every software upgrade handler automatically. Do not bypass it unless the upgrade work is intentionally changing that behavior.
3. Keep the scaffold comments useful
The scaffold should explain the contract briefly:
UpgradeNamemust exactly match the future on-chain proposal name- future migration steps belong below the capability-version fix and above
RunMigrations
- if later work bumps a module
ConsensusVersion, that later work must also
register the corresponding migration in registerMigrations()
Keep these comments short and operational.
4. Verify only the bootstrap surface
Run a narrow test for the new package. When using Go commands, always go through zsh -lc so the shell loads the Go environment.
Example:
If the new package needs broader verification because of compile-time registration issues, extend to the smallest useful check. Do not turn bootstrap into a full upgrade test pass.
5. Make the initial bootstrap commit
Use a focused commit message. Default:
Stage only the scaffold files and commit them. Do not mix unrelated work into this commit.
6. Push and open the draft PR
Push the new branch and open a draft PR against main.
The PR is the canonical upgrade thread. It should exist immediately after the bootstrap commit so future work has one shared place for review and scope.
Default PR title:
Default PR body should be short and clearly marked as bootstrap. Include:
- that this is the draft upgrade train for the full automatic
inference-chain decentralized-apiupgrade- that the branch currently contains only the initial upgrade-handler scaffold
- that later commits on this branch will accumulate the actual upgrade changes
- that MLNode and devshard work are out of scope for this PR unless explicitly
added later
Do not pad the PR with release, voting, or rollout instructions.
If GitHub connector tools are available, prefer them for PR creation. Otherwise use a non-interactive gh pr create --draft ... flow.
Stop condition
Stop as soon as all of the following exist:
- local branch
upgrade-vX.Y.Z - minimal handler scaffold in
inference-chain/app/upgrades/vX_Y_Z/ - one bootstrap commit
- pushed branch
- draft PR against
main
Do not continue into feature implementation unless the caller explicitly asks.
Report back
When finished, report:
- branch name
- bootstrap commit hash
- test command run
- draft PR URL
- any blocker or deviation from the standard bootstrap flow
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/upgrade-bootstrap/SKILL.md
Popularity
- Repository stars
- 609
- Repository forks
- 135
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gonka-ai/gonka/upgrade-bootstrap)