From mainbranch
Updates the Main Branch CLI and skills, then refreshes business folder Claude Code links. Handles version checks, failures, and changelog summaries.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mainbranch:mb-updateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Update the installed Main Branch CLI and skills, then refresh this business
Update the installed Main Branch CLI and skills, then refresh this business folder's Claude Code links.
Use this instead of asking the user to remember whether they installed with
pipx or an old clone. The CLI owns the mechanics. Do not suggest raw package
commands such as pipx upgrade mainbranch as the first update path; only use
that as the bootstrap fallback when mb update is unavailable or the installed
version is 0.1.x.
CLI facts first: Run mb update --repo . --json from the business folder
and use its result before giving install-mode advice.
Run from the business folder:
mb update --repo . --json 2>&1
Handle the JSON result:
| Result | What to say |
|---|---|
"ok": true, old_version != new_version | "Updated Main Branch and refreshed skill links." |
"ok": true, old_version == new_version | "Main Branch is already up to date." |
"ok": false | Show the first error and the repair copy below. |
| Invalid JSON | Run mb update --check --repo . yourself if possible; if not, ask the user for that output. |
If the result includes warnings, show them after the main status.
Tell the user:
"I wasn't able to update Main Branch. This can leave you on old skills or old migration behavior.
Try these from your business repo:
mb update --check --repo . mb doctorIf
mb --versionsays0.1.x, run this once first:pipx upgrade mainbranch ```"
Do not continue as if the update worked.
If skills_relinked_count is greater than zero after an actual update, tell
the user:
"Skill links were refreshed. If a slash command does not appear in Claude Code, restart Claude from this repo and run
/mb-start."
Claude Code loads slash commands at session start, so a restart can be required
after repairing links. In --check --json output, treat
planned_skills_relink_count as a dry-run preview, not proof that links already
changed.
After a successful update, use release.summary and release.url from the
JSON result when present. Keep it short: 3-5 bullets max, and include the
release URL when the user asks what changed.
If the JSON result has no release summary, read CHANGELOG.md from the active
Main Branch engine if available and summarize only the matching version section.
If no changelog is available, do not guess. Say:
"Update complete. I couldn't find the local changelog, so run
mb --versionto confirm the installed version."
npx claudepluginhub noontide-co/mainbranch --plugin mainbranchChecks upstream for new commits on installed skill branches and helps users merge updates via git-native operations.
Checks for skills-for-fabric marketplace updates at session start, compares local version against GitHub releases, and shows changelog if updates are available.
Checks for updates to the skills-for-fabric marketplace at session start. Compares local version against GitHub releases and shows changelog if updates are available. Useful for staying up-to-date with skill changes.