/mainbranch:mb-homelab-machinefrom mainbranch
Guides setup, maintenance, hardening, and extension of an always-on agent machine (mini PC, Mac mini, homelab). Runs read-only checks and prepares commands for the owner to execute.
Ships in mainbranch. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Say first: "I'll check this machine read-only and prepare any change for you to run. I won't use sudo, change settings or print secret values."
This skill turns the Main Branch machine guide into jobs an agent can run and check. The guide is the human document; the references below point to its sections instead of copying them: Machine Setup. No business repo is needed.
Run mb machine doctor first for the current account's read-only baseline.
Use mb machine doctor --json when structured results are needed. Exit 3 means
incomplete verification, not failed verification. Exit 1 means a failed check;
exit 2 means no verdict. Report NOT VERIFIED rows and their reasons. This first
release reads a machine manifest from /etc/mainbranch/machine.json, or the
file given with --manifest. A manifest from --manifest is reported as
caller-selected, so its trust is not verified. Without a manifest the run says
so. Either way, doctor still exits 3 at best, so a run cannot establish full
machine health.
The maintenance rows below still cover checks outside doctor's current scope.
| The operator wants to | Read |
|---|---|
| Pick hardware, install the OS, finish the first week, move to a new host | references/setup.md |
| Know what to check today, this week or this month | references/maintenance.md |
| Add a business, a standing role, a data collector or storage | references/extension.md |
| Harden the box, or decide on containers, VMs or a second machine | references/hardening.md |
Read only the reference for the job. If the request spans two, finish one job and its done-checks before starting the next.
sudo, never complete a sign-in, never change the machine yourself.Every job ends with a report, one row per check:
| Check | Result | Evidence | Next step |
|---|---|---|---|
| Agent account has no admin group | PASS | id lists only its own group | none |
| Restore drill this month | NOT VERIFIED | no dated drill in the machine record | owner runs a drill |
Run checks as the account they describe: operator-level checks from the
owner's admin session without sudo, and per-account checks as that account.
If a check needs root, prepare it for the owner and report NOT VERIFIED until
they share the result.
Keep one record per machine, owned by the admin account and outside every business repo: the tool index, the restart table, backup layers and drill dates, collectors, Checkpoint 1 run dates and any recorded graduation trigger. If it doesn't exist yet, offer to draft it; the owner decides where it lives.
sudo, change settings, install software or reboot the machine.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
homelab, server-setup, machine-maintenance, agent-infrastructure, ubuntu, mac-mini
npx claudepluginhub dmthepm/mainbranch --plugin mainbranch22 skills in this plugin
/mb-adsCreate and review ads, and prepare provider-safe launch plans/checks. Flexible entry points: full pipeline (copy + images), copy only, images only, creative variations (hook library), video scripts, long-form video ads/VSL-style paid creative, paid video repurpose, compliance review, launch-plan, instrumentation, check, or optional Meta ad account check. Use when asked to create ads, ad copy, image prompts, video ad scripts, paid sales videos, creative variations, review ads, plan paid traffic, check analytics/GA4/GTM/pixels/booking/form readiness, or check launch performance. Short clips and organic social cuts from a sales video go to /mb-organic. Say /mb-ads or describe what you need./mb-betOpen, update, close, list, and narrate Main Branch business bets from repo truth. Use when the operator wants to frame an operating bet, track progress, capture a verdict, or draft public-safe narration./mb-booksReview books setup, monthly books close, reconciliation, and CPA handoff; answer what is settled, blocked, and ready. Runs read-only `mb books check` and `mb books doctor --repo` for safe facts./mb-endSession-closing skill that helps users wrap up intentionally. Use when: user says done, wrapping up, end my day, closing out, call it a day, goodnight, that's it for today, checkpoint, pause. Bookend to /mb-start. Scans git activity, surfaces what happened, spawns a crystallize agent for deep analysis, offers to save an approved checkpoint, and closes with a brief summary. Works for end-of-day, end-of-research-batch, end-of-decision-sprint, or mid-work checkpoints./mb-growRun a business's daily growth loop. Read the goal number, pick one move, act inside the owner's agreed limits, log it, and review the week with evidence of impact. Use when the owner says grow, growth, daily growth, what should we do today, push the goal, move the number, weekly growth review, or wants an agent to work on growth without being asked each day./mb-helpAnswer questions about Main Branch and Claude Code. Use when: user asks how/what/why questions, is confused about the business folder, CLI, skills, setup, errors, workflow, or what to do next.Other plugins' skills for the same job