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 skills and playbooks in one place: repo-root .claude/skills/ and .claude/playbooks/. During sdist/wheel builds, setup.py copies those directories into mb/_data/skills/ and mb/_data/playbooks/ inside the build artifact so installed wheels can resolve mb skill list 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). One question only: business name.
mb doctor Diagnostic. Checks Claude Code, gh auth, network, librsvg. 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 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.0.tar.gz (401.2 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.0-py3-none-any.whl (496.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mainbranch-0.1.0.tar.gz
  • Upload date:
  • Size: 401.2 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.0.tar.gz
Algorithm Hash digest
SHA256 8f6b4abfc9df1e9822600be1e77e3561289b697c3461149c5de9715369b41386
MD5 a92498185d154550d60cd31e2ee3dd05
BLAKE2b-256 56eeee416b0d1af361a474598978d6ee1449ac0e5a4139b384eed7a789b53d32

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mainbranch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 496.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a73d3b42c94559666088db1342f0ce102b327567e638f3809a4aa0ec6bd9628
MD5 418348120e30596d9ea2d4e1f4cffa47
BLAKE2b-256 367d11329ed3f05d186c6fe8d6e0c1477b7af70d9845a0bdaed2f218e1b407a1

See more details on using hashes here.

Provenance

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