Skip to main content

Main Branch engine umbrella - scaffolds, validates, and graphs business-as-files repos. Built for Claude Code.

Project description

mainbranch (mb)

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

This package is the Python entry point. Skills, playbooks, educational content, and consumer-repo templates ship as bundled package data. The actual day-to-day "do work" surfaces are Claude Code skills (markdown), invoked from inside Claude Code.

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 bundled skills for Claude Code. One question only: business name.
mb doctor Diagnostic. Checks Claude Code, gh auth, network, librsvg, skill 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 skill invocation hint for Claude Code (or run inside a session).
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.
mb educational <topic> Print an educational triage file. Powers mb doctor's "tell me more" prompts.

Status

v0.1 is Built for Claude Code only. Cross-agent compatibility is a v0.2+ commitment. The schema is v1 and will evolve. The engine decision lives at decisions/2026-04-29-mb-vip-v0-1-0-master.md; the business-side master plan is tracked in noontide-co/projects#119.

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.1.tar.gz (458.3 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.1-py3-none-any.whl (570.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mainbranch-0.1.1.tar.gz
  • Upload date:
  • Size: 458.3 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.1.tar.gz
Algorithm Hash digest
SHA256 76f8f7602751d69ef6774e516c0f688789c682a84fac65c78525eaf5b5c74eda
MD5 a4d6e9feb821f8cdeb260afe3f219466
BLAKE2b-256 27bcc3fb8866bc3adb3d3ca5631c3c726008904e44b95e0ec76cf458c952feba

See more details on using hashes here.

Provenance

The following attestation bundles were made for mainbranch-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: mainbranch-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 570.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6382fff4da18047f318b7d9b2f39ffaa382315ae0ee54055132b7b384107231a
MD5 8a22a118902fcf679c9963652fcdd4f3
BLAKE2b-256 c0873838584c7b47a6f1b1f9d37e408aaf0aa22164c2d8b039cae117fc8e0f9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mainbranch-0.1.1-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