Skip to main content

Main Branch engine umbrella - scaffolds, validates, and graphs business-as-files repos. Claude Code first, runtime-agnostic by design.

Project description

mainbranch (mb)

Engine umbrella for Main Branch — scaffolds, validates, and graphs business-as-files repos.

This package is the Python entry point. Workflows, playbooks, educational content, and consumer-repo templates ship as bundled package data. In v0.1.x, the day-to-day "do work" surfaces are packaged as Claude Code skills (markdown), invoked from inside Claude Code. The mb CLI is runtime-agnostic by design: future adapters should let Codex, Cursor, OpenClaw, Hermes, and local runtimes operate against the same business-as-files repo.

The source tree keeps the engine payload in one place: repo-root .claude/. During sdist/wheel builds, setup.py copies that tree into mb/_engine/.claude/ inside the build artifact so installed wheels can resolve skills, playbooks, reference files, lenses, and educational prompts without a source checkout.

Install

pipx install mainbranch

That puts mb on your PATH. Verify:

mb --version

Subcommands (v0.1)

Command What it does
mb init Scaffold a new business repo (six folders, CLAUDE.md, CODEOWNERS, git init) and wire the bundled Claude Code skill adapter. One question only: business name.
mb doctor Diagnostic. Checks Claude Code, gh auth, network, librsvg, runtime wiring, and package freshness. Warns on cloud-backed finance paths and offers educational triage.
mb validate Frontmatter shape check across decisions/, core/offers/, research/, log/, campaigns/, documents/. Exit 1 on any fail.
mb graph Walk linked_research / linked_decisions / supersedes; emit Graphviz DOT to stdout. --open shells to dot + open.
mb think <topic> Print the /think workflow invocation hint for the currently supported runtime.
mb resolve <key> Resolve a reference path through the OSS / paid layered lookup.
mb skill path <name> Print the on-disk path to a bundled skill.
mb skill link --repo <path> Wire or repair Claude Code skill discovery for a business repo. Future runtime adapters should get equivalent wiring commands.
mb educational <topic> Print an educational triage file. Powers mb doctor's "tell me more" prompts.

Status

v0.1 is Claude Code first. Runtime compatibility for Codex, Cursor, OpenClaw, Hermes, and local runtimes is a v0.2+ commitment. The schema is v1 and will evolve. The runtime boundary decision lives at decisions/2026-05-01-mb-cli-vs-agent-workflows-boundary.md; the engine master decision lives at decisions/2026-04-29-mb-vip-v0-1-0-master.md.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mainbranch-0.1.2.tar.gz (458.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mainbranch-0.1.2-py3-none-any.whl (570.3 kB view details)

Uploaded Python 3

File details

Details for the file mainbranch-0.1.2.tar.gz.

File metadata

  • Download URL: mainbranch-0.1.2.tar.gz
  • Upload date:
  • Size: 458.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mainbranch-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1363f698d6bb4b2da2d3d814fee4c06b8de7a9d44c65b50309e91951b81756ce
MD5 e72068d27622216ff0c47ddbf08d39e9
BLAKE2b-256 24170774e661896a85570ee286291269baa862ded1cf53e8dd011896d9fb5a50

See more details on using hashes here.

Provenance

The following attestation bundles were made for mainbranch-0.1.2.tar.gz:

Publisher: publish-pypi.yml on noontide-co/mainbranch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mainbranch-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mainbranch-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 570.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mainbranch-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3bc5933caf6855f67e57b90b5324de750dd36901cca438365fd21a28b83e52ec
MD5 3136a51dc0442eee75bdd580f68c2718
BLAKE2b-256 f32e8dacfe472fa0f347f4e2e6b9c5614fb91b2950912c125b7a6d1c8659d675

See more details on using hashes here.

Provenance

The following attestation bundles were made for mainbranch-0.1.2-py3-none-any.whl:

Publisher: publish-pypi.yml on noontide-co/mainbranch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page