/mainbranch:mb-sitefrom mainbranch
Triage and build any site shape (lander, minisite, full website) and graduate between them. Writes sales videos/VSLs, manages analytics (GA4, GTM, Meta pixel), booking links, HubSpot forms, and deploys to Cloudflare Pages with git auto-deploy.
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.
Pick a site shape, build it from business context, and ship it through a linked site repo. Cloudflare Pages with git auto-deploy is the default deploy path.
Shared source: The portable workflow contract lives in
workflows/mb-site/workflow.md. This Claude skill is the Claude Code shell over
that source.
Shared contract markers: Keep these aligned with the shared source.
Required commands:
mb status --json --peekmb start --jsonmb doctor repair --planmb connect doctor --jsonmb launch check "$SITE_REPO" --business-repo "$BUSINESS_REPO" --jsonmb site check "$SITE_REPO" --business-repo "$BUSINESS_REPO" --jsonmb validate --cross-refs --jsonmb checkpoint --plan --jsonRequired fact paths:
money_pathmoney_path.objects.proof.qualitymoney_path.objects.cta_pathmoney_path.objects.channel_strategymoney_path.objects.active_pushvalidation.file_contractscontent_strategycontent_strategy.overall_statecontent_strategy.simple_entry_pointcontent_strategy.layersranked_actionsupdatereadinessdrift.itemsintegrationsmeasurementmeasurement.availablemeasurement.statemeasurement.facts.expected_eventsmeasurement.facts.instrumentationmeasurement.blocked_countmeasurement.manual_countrelationship_health.gapscheckpoint.pendingcheckpoint.pending.blockersruntime.codex_cliruntime.claude_codestateblockedmanualevidencefacts.expected_eventsfacts.instrumentationfacts.provider_statefacts.app_stackfacts.deployfacts.commercefacts.emailfacts.measurementrecommended_actionsourcechild_descriptorApproval gates: updates_repairs_migrations, file_writes, checkpoint,
provider_mutation, publishing_or_spend, customer_contact, private_data,
destructive_operations, structured_collection, public_issue_or_proposal,
domain_purchase, dns_change, pages_project, custom_domain_attach,
deploy_or_push, and account_change.
Public/private boundaries: no_secrets, no_raw_provider_exports,
no_raw_transcripts, no_customer_member_data,
no_private_runtime_settings, no_private_dms_or_gated_communities,
no_raw_finance_legal_records, and
no_absolute_local_paths_in_committed_descriptors.
Core flow: support plan, brief, build, preview, check, publish, iterate, graduate, or recover modes.
Marker phrase: plan, brief, build, preview, check, publish, iterate, graduate, or recover.
Preserve lander, minisite, website, sales-video surface, and site repo modes;
use mb site check readiness states including ready_for_operator_review; keep
domain, DNS, Cloudflare Pages, custom-domain, deploy, publishing, provider
mutation, account changes, spend, and customer contact behind explicit gates.
Provider boundary phrase: provider mutation. Broad launch readiness uses
mb launch check; paid-traffic measurement detail uses mb site check.
Codex support stays read-only planning until runtime smoke proves site writes,
builds, deploys, and publishing.
CLI facts first: In business repo mode, run mb status --json --peek
before setup/provider/launch-readiness advice. In site repo mode or whenever a
site repo is known, run mb launch check "$SITE_REPO" --business-repo "$BUSINESS_REPO" --json for broad launch truth, then mb site check "$SITE_REPO" --business-repo "$BUSINESS_REPO" --json for paid-traffic
readiness or publish guidance.
Site/lander records that wrap a coordinated push (a launch, drop, or
challenge with a goal and timeline) live under pushes/<YYYY-MM-DD-slug>/
on the business-repo side; the wrapping record is push.md (type: push),
and the site record is typically pushes/<YYYY-MM-DD-slug>/site.md. Site
files themselves live in the linked site repo (Cloudflare Pages, etc.) and
are not duplicated in the business repo.
Reverse references from the site repo use the role-neutral .mainbranch/repo.json descriptor with engine push paths (linked.pushes: ["pushes/<...>/push.md"]); older site repos may still use .mainbranch/source.json (its campaign_path should point at the current push record). If core/vocabulary.md defines display words (e.g. terms.push.singular: launch), speak the operator's word while still writing engine files. Legacy campaigns/ records are migration input: run mb doctor and mb migrate campaigns --plan before relying on them or creating new push work.
When creating push.md, include the validator-required frontmatter and fill
the values from repo truth or operator answers:
---
type: push
slug: YYYY-MM-DD-slug
kind: launch
status: planned
health: unknown
goal: { metric: "", target: "", by: YYYY-MM-DD }
owner: ""
audience: ""
offer: core/offers/<offer>/offer.md
promise: ""
---
When creating or first writing a push, ask once:
"Which bet does this push serve, and which existing decision or research supports it?"
Offer active bets and recent decisions and research by name from status facts or files already read.
If this is a measurable trial with a review or cut point and no covering bet,
route to mb-bet before execution.
Accept "none yet" and continue. For a deliberate one-off with no bet, write
linked_bets: [] and a one-line no_bet_reason. On an approved write, put the
chosen repo-relative paths in linked_bets, linked_decisions, and
linked_research on the push; add its path to linked_pushes on each named
bet, decision, and research file. Leave unanswered links empty; do not invent
a reason. Mirror typed links in ## Related links as relative Markdown links.
Use docs/business-connections.md; never infer links from body-only references.
Also link named playbooks and outcomes through linked_playbooks and
linked_outcomes.
Say /mb-site again after compaction, context loss, or switching focus. It reloads skill context. Do it whenever the conversation feels stale.
references/pull-engine-updates.md and run the standard Main Branch update check.references/site-repo-workflow.md for repo boundaries, source links, and reverse site records.mb status --json --peek and use its readiness, drift.items, integrations, measurement, and ranked_actions facts before inventing setup, provider, or launch-readiness checks in prose.mb connect doctor --json from the business repo and check provider:cloudflare.
ready, stop before dispatching site tools and present exactly three choices:
mb connect cloudflare --metadata token_type=account --metadata account_id=... && mb connect test cloudflare. Credential entry happens in the owner's own terminal, because the hidden prompt needs a real terminal; the agent hands off, then resumes its readiness check.cfat_ account tokens route automatically when account_id is present; keep token_type=account in examples because it is explicit and works on older mb versions. User API tokens remain supported as a fallback by omitting token_type=account.references/site-context.md..claude/reference/conversion/offer-sharpening.md and route to /mb-think
before writing page copy from thin claims.
6a. Conversion-mechanism gate (before any page copy): confirm what the
visitor does to convert — submit a lead form, book a call, or buy — and
specifically whether the operator takes calls. If the operator has not
stated it, STOP and ask; never assume a model. Copy is shaped by the
mechanism, so it is pinned before drafting (the brief records it; see
mb-skill-brief-draft). A real business we built lost a full day when an
agent invented a call-booking flow the operator never chose.core/content-strategy.md and relevant
core/marketing/ files if present. Owned site content should support the
same known-for target, asset jobs, channel plan, and CTA path rather than
duplicating publishable site copy into the business repo. When the goal
includes ranking, organic search traffic, keyword research, blogging for
SEO, backlinks, or AI-search visibility, load
references/seo.md before promising SEO outcomes.Four behaviors /mb-site uses on every run:
/mb-site walks research, brief draft, review, lock, concept variations, publish, and iteration as one flow.When research subagents record findings, they follow the /mb-think research pattern: dated research/YYYY-MM-DD-slug-claude-code.md files with frontmatter and linked_decisions: [].
When the operator needs a broad researched brief before the site brief, run or
reuse /mb-think --brief-format=grok-8. Its eight categories feed the site
flow directly: offering, ICP, journey, competitive landscape, brand story,
technical requirements, assets, and metrics/constraints. Keep the grok-8
brief in research/; the locked site brief still belongs in decisions/.
Business-repo saves use mb checkpoint, not raw git commits. For accepted
research files, locked briefs, and reverse site records, run
mb checkpoint --plan --json, validate a subject such as
[drafted] minisite research -- <slug>, [decided] minisite brief -- <slug>,
or [connected] site repo -- <slug>, then save with
mb checkpoint --message "<subject>" --yes after operator approval. Site repo
code commits still use that site's normal git flow.
Use references/site-repo-workflow.md.
mb status --json --peek and/or mb doctor repair --plan before saved config or discovery. Do not write to old repo structure..mainbranch/repo.json or legacy .mainbranch/source.json. Say: "I'm editing the site here and reading business context from the linked business repo."Business repo mode plans, researches, drafts the brief, picks an offer, records push/site state, and creates or selects the site repo. Site repo mode edits code, reviews pages, previews, deploys, and runs mb site check.
Ask the operator. Do not assume.
What are you doing?
A. New site from scratch. Pick a shape.
- Lander (1 page, all-in-one). Use for focused one-off offer tests, retargeting, or paid-traffic landers. Load
references/lander-build.md.- Minisite (~4-6 pages, static HTML). V1 default for paid-ad lander tests, single-offer first deploys, payment, lead-form, and booking funnels. Load
references/minisite-build.md.- Website (full site, usually with build step). Static-first on Cloudflare Pages, with an optional build step. Load
references/website-build.md.B. Iterating on an existing site.
- Editing pages, adding sections, updating copy: load the current shape build reference.
- Publishing existing work: load the current shape build reference and follow its publish step; publishing asks for approval every time (see the approval gates above).
C. Graduating to a different shape.
- Lander -> minisite, minisite -> website, website -> website + CMS. Load
references/graduation.md.
If the operator cannot articulate the shape, ask: "What goal are you trying to hit? Drive paid traffic to a sale, lead, or booking? Sell a course? Replace your current Squarespace?" Their answer maps to the shape.
| Mode | What it does | Load |
|---|---|---|
| setup | First-run for a new site | Shape build ref, then setup step |
| build | Generate or edit content | Current shape build ref |
| preview | Local server/dev environment | Current shape preview step |
| publish | Stage, commit, push | Current shape publish step |
| instrumentation | Analytics, tags, booking/form widgets, and event mapping | references/site-measurement.md |
| check | Paid-traffic readiness | references/site-measurement.md |
| search data | Which queries or pages bring clicks, is a page indexed, sitemap status, sessions | references/search-data.md |
| recover | Resume after compaction | references/site-recovery.md |
Repo + context
references/site-repo-workflow.md - business repo mode vs site repo mode, source links, reverse records.references/site-context.md - prerequisites, active offer resolution, required core/... files, and section mapping..claude/reference/conversion/offer-sharpening.md - universal offer rubric, style spectrum, evidence handling, and stop conditions.docs/content-strategy.md - layered content, distribution,
channel, account, person, push, and results model.references/sales-video.md - sales video, VSL, about-page video, lander video, and embedded pitch scripts for owned surfaces.references/site-measurement.md - mb site check and paid-traffic readiness states.references/search-data.md - real Search Console and GA4 numbers through mb google ... --json (queries, indexing, sitemaps, sessions); recorded site and property only.references/seo.md - SEO doctrine: content silos, keyword selection math, PageSpeed thresholds, blog/backlink rules, AI search, the API-first data layer, and the fulfillment loop.references/site-recovery.md - compaction recovery and scope boundaries.Shape flows
references/lander-build.md - 1-page shape stub.references/minisite-build.md - minisite step router.references/website-build.md - website flow (static-first, optional build step).references/graduation.md - paths between shapes and CMS bolt-on.Minisite step detail: references/minisite-build.md routes each step (research, brief, setup, conversion, concept variations, build-out, publish, iterate) to its own reference; load only the current step.
Generation + design
references/minisite-generation-system.md - load-bearing system prompt for minisite generation.references/lander-generation-system.md - one-page lander generation profile.references/review.md - dial-gated quality gates.references/anti-patterns.md - AI tells and generation anti-patterns.references/archetypes.md - 9-archetype picker. Load picked detail lazily.references/headline-formulas.md - formulas grouped by frame.Visibility, hosting, and checks
For screenshots, fixtures and test content, follow /mb-setup references/where-data-lives.md.
Site repos default to private. Before creating a public site repo, ask one visibility question — see the engine docs (repo-visibility-rubric) for the rule and exact wording.
Cloudflare is the deploy rail. GitHub Pages is not part of normal Main
Branch setup; the checks-and-review model in the engine docs explains
how local mb checks, GitHub Actions, and branch protection layer.
Setup, examples, help
references/naming-heuristic.md - domain naming playbook.references/cloudflare-pages-link.md - Cloudflare Pages GitHub App handshake.references/examples.md - usage examples.references/troubleshooting.md - common fixes.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 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-npx claudepluginhub dmthepm/mainbranch --plugin mainbranchOther plugins' skills for the same job