Command Palette

Search for a command to run...

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

mb-setup

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

Bootstrap a new business folder with Main Branch structure, or migrate an existing single-offer folder to multi-offer. Use when: (1) New user needs Claude…

dmthepmот dmthepm★ 44 звезды на GitHub

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

Repo Setup

Get a new user fully configured with Claude Code and their business repo. Use shipped mb commands for setup facts before teaching concepts or reading reference prose.

CLI facts first: Run mb doctor, mb start --json, and mb status --json --peek when a repo exists or can be identified. Use mb onboard status --json as the read-only progress check for existing repos. Use mb onboard plan only after the operator approves writing setup progress; do not keep onboarding state only in chat prose. If there is no repo yet, inspect mb onboard --help, explain the target folder, ask for approval, then use mb onboard to create one instead of hand-rolling repo-shape checks.

For provider setup, use mb connect plan and mb connect doctor --json as the durable readiness contract. Explain providers as business capabilities, not developer config, and end with exact commands.

Pasted setup guide = setup intent. If the user pastes this guide, the beginner setup guide, its prompt ("Help me set up Main Branch using the current README and setup guide..."), the older "I want Main Branch: AI business memory I own as files..." prompt, or any bootstrap prompt with business/folder intent, treat it as setup intent, not as a document to save. Do not offer to save it as a document. Check mb --version; if missing, stop with pipx install mainbranch. If present, inspect mb onboard --help, explain the target folder, and ask before any write. When the pasted prompt carries its own arc (brief interview, then install → doctor → onboard → seed core files → teach the daily loop), follow that arc: interview first, stop at the named first win, and show what was set up.

GitHub-backed setup preflight. GitHub is strongly recommended because it gives Main Branch a free cloud backup, shared history, task/proposal layer, and connector-friendly copy of the business record. Main Branch can start locally without GitHub. If the user wants backup, sync, collaboration, or mb onboard --github <owner/repo> --push, check gh auth status and gh api user --jq .login first. Confirm the account is the one they expect before running a writing setup command.


Before We Begin

Need help? Type /mb-help + your question anytime. If conversation compacts (gets summarized), /mb-help reloads fresh context.


Workflow

CRITICAL: Write Boundaries in Sandboxed Environments

Some workspace-isolated tools may only allow direct file writes inside the current workspace folder. If you see:

"Cannot edit files outside allowed directories"

In a regular terminal claude session, this is less common because Claude can often request permission and continue. In restricted workspace tools, limits are usually stricter.

Do not silently switch strategies. Ask the user first, in beginner language:

"This app is only letting me edit files in this one workspace folder.

Since this is first-time setup, switching workspaces mid-chat can be confusing. The easiest options are:

  1. Continue here and I use terminal commands to create/update files in your target repo path
  2. Stop here, open Terminal in the target repo folder, run claude, then run /mb-setup again

If you already have a workspace open for that repo, we can use that too. Which option do you want?"

For first-time setup, do not default to "switch workspace now." Prefer option 1 or 2 unless the user already has the target repo workspace ready.

Check Main Branch Updates and Detect CWD (FIRST)

Repair Main Branch wiring + detect CWD before context gathering. Four cases: CWD is the business folder (happy path), CWD is an old Main Branch repo needing repair/migration, CWD is the Main Branch source checkout (engine migration), or CWD is neither (ask user).

See references/cwd-detection.md for the full repair path and all four cases (Case 1 happy path, Case 2 old repo repair, Case 3 engine migration, Case 4 ask). This must happen BEFORE any context gathering — if conversation compacts later, the essential config is already saved.


0. Check Chrome Extension (Optional, Helpful for Skool)

Mention once: "The Claude in Chrome extension lets me read your sales pages, Skool community, and web content directly. It's optional: check chrome://extensions for 'Claude', or install from https://claude.ai/chrome." If missing or declined, proceed with URL fetching, Playwright, or manual screenshots.

1. Confirm Repo + Working Directory

mb doctor
mb start --json
mb status --json --peek
pwd

If no business repo exists yet:

mb onboard --help

If the operator wants the folder created, saved, synced to GitHub, and ready for Claude Code in one first-run pass, prefer the first-class onboarding path over hand-rolled git / gh glue:

mb onboard --yes --name "[Business Name]" --path "[repo-path]" --github "[owner/repo]" --github-visibility private --push

End setup answe

Полный SKILL.md на GitHub

Установить mb-setup в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

references/claude-md-guide.mdreferences/context-gathering.mdreferences/cwd-detection.mdreferences/engine-path-resolution.mdreferences/file-education.mdreferences/git-workflow.mdreferences/migration-multi-offer.mdreferences/nano-banana-setup.mdreferences/repo-scaffolding.mdreferences/repo-visibility-rubric.mdreferences/templates.mdreferences/where-data-lives.md

FAQ

Что делает скилл mb-setup?

Bootstrap a new business folder with Main Branch structure, or migrate an existing single-offer folder to multi-offer. Use when: (1) New user needs Claude Code environment configured (2) User says "set up", "get started", "initialize", "bootstrap", "create my repo", "new business" (3) User is new to Main Branch and needs full onboarding (4) Migrating existing business context into the Main Branch structure (5) User wants to add a second offer to an existing repo. Creates CLI and skill wiring, a business folder with full structure, and bounded context until core files are useful. Applies business setup patterns. Teaches concepts during setup.

Как установить скилл mb-setup?

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

Скилл mb-setup запускает скрипты?

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

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

Сравнить mb-setup с