From mainbranch
Updates Main Branch CLI engine via `mb update`, refreshes skill links, handles errors, and summarizes changelog. Use for update requests or after releases.
npx claudepluginhub noontide-co/mainbranchThis skill uses the workspace's default tool permissions.
Update the Main Branch engine and refresh this business repo's skill links.
Detects updates to installed Claude Code skills from upstream git branches, lists available ones, merges selected branches, resolves conflicts, and validates with build/test.
Executes 'mb update --repo' CLI command to update repository with latest main branch changes. Legacy alias for /mb-update, triggered by /mb-pull or 'pull latest' phrases.
Syncs local Claude Code skills and references from Paper-Polish-Workflow GitHub repo via gh CLI. Activates on 'update skills', 'sync skills', or Chinese equivalents.
Share bugs, ideas, or general feedback.
Update the Main Branch engine and refresh this business repo's skill links.
Use this instead of asking the user to remember whether they installed with pipx or an old clone. The CLI owns the mechanics.
Run from the business repo:
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 | "I couldn't read the update result. Run mb update --check --repo . and send me the 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, 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.
After a successful update, read CHANGELOG.md from the active Main Branch
engine if available and summarize only the most recent "What this means for
you" section. Keep it short: 3-5 bullets max.
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."