mainbranch: Skill for Claude Code

.claude/skills/mb-bet/SKILL.md

mb-bet is a skill for Claude Code from noontide-co/mainbranch. It costs 47 tokens per session (2,899 once invoked), scanned A, original, MIT.

A command-line workflow for recording and managing business bets in a code repository. It can open, update, close, list, and describe those bets.

In plain words
What is it for?
Use it to frame an operating hypothesis, track its progress, check related bets, record a verdict, and prepare a version of the story that is safe to publish.
Why use it?
It keeps bet status, evidence, deadlines, and decisions in repository files instead of scattered notes or chat.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code; mentions Codex.

This is noontide-co/mainbranch's own configuration. It tells Claude Code how to work on mainbranch itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mainbranch configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - [Existing linked file](../decisions/YYYY-MM-DD-example.md).

Part of the mainbranch plugin — 21 skills shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to noontide-co/mainbranch. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/noontide-co/mainbranch/main/.claude/skills/mb-bet/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/noontide-co/mainbranch

Made for: Claude Code.

Or install mainbranch, the plugin that ships this one along with the rest of its 21 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mb-bet

README.md
[![agentmods](https://agentmods.dev/badge/skills/noontide-co/mainbranch/mb-bet/github.svg)](https://agentmods.dev/skills/noontide-co/mainbranch/mb-bet)
Your own site
<a href="https://agentmods.dev/skills/noontide-co/mainbranch/mb-bet"><img src="https://agentmods.dev/badge/skills/noontide-co/mainbranch/mb-bet/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mb-bet

Your own site · 80×15
<a href="https://agentmods.dev/skills/noontide-co/mainbranch/mb-bet"><img src="https://agentmods.dev/badge/skills/noontide-co/mainbranch/mb-bet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,899 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.02899
Opus 5 $0.00023 $0.01450
Sonnet 5 $0.00009 $0.00580
Haiku 4.5 $0.00005 $0.00290

Measured 11d ago against content hash 414b33f10054, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

mb-bet scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/mb-bet/SKILL.md · 371 lines

How it starts

The opening of the file, as written. The whole thing — 371 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bet

Shared source: The portable workflow contract lives in workflows/mb-bet/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 --peek
  • mb start --json
  • mb doctor repair --plan
  • mb validate --cross-refs --json
  • mb checkpoint --plan --json
  • mb similar-bets "<thesis>" --repo . --json
  • mb books exposure --repo . --bet bets/YYYY-MM-DD-slug.md --json
  • mb books exposure --repo . --active --json

Required fact paths:

  • money_path
  • money_path.objects.proof.quality
  • validation.file_contracts
  • content_strategy
  • ranked_actions
  • update
  • readiness
  • drift.items
  • brain.bets
  • brain.bets.active
  • brain.bets.due_soon
  • brain.bets.overdue
  • brain.bets.exit_criteria
  • relationship_health.sections.bets
  • relationship_health.gaps
  • checkpoint.pending
  • checkpoint.pending.blockers
  • books
  • runtime.codex_cli
  • runtime.claude_code

Approval gates: updates_repairs_migrations, file_writes, checkpoint, provider_mutation, publishing_or_spend, customer_contact, private_data, destructive_operations, structured_collection, and public_issue_or_proposal.

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_raw_ledger_rows.

Core flow: Bet is a time-boxed wager, not an offer or push. Preserve new, update, close, list, and narrate modes. Marker phrase: new, update, close, list, and narrate. Keep bets/YYYY-MM-DD-slug.md and the strict contract for typed links and reverse linked_bets; aggregate exposure privacy; public-safe narration; mb validate --cross-refs; checkpoint plan; and the Codex support boundary of read-only planning until runtime smoke proves lifecycle writes.

Business bets are hub nodes in bets/. They connect decisions, research, pushes, logs, documents, and outcomes without replacing any of them. Legacy campaigns/ records may still be linked for old repos, but new coordinated work uses pushes/.

A bet is not an offer. An offer is a durable thing the business sells. A bet is a time-boxed operating hypothesis with appetite, target, deadline, evidence, and a verdict. A successful bet may graduate into an offer, workflow, content pillar, push, or decision; a failed bet should be closed with learning. For the full offer/bet/push/proof routing rubric, use .claude/reference/business-primitives/offer-bet-push-proof.md.

Use /mb-bet for five modes:

  • new - open a bet with hypothesis, appetite, MoneyPath anchor, metric, target, deadline, and links.
  • update - add progress and link new evidence.
  • close - record result, verdict, learning, and follow-up links.
  • list - summarize active bets and deadlines.
  • narrate - draft public-safe site, community, or social copy from repo truth.

Do not publish automatically. Narration drafts are files or message drafts only.

Read the full file on GitHub · 371 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 371 lines · 47 tokens per session scan A 414b33f10054

Subscribe to this mod's changes

mb-bet is a skill published in the GitHub repository noontide-co/mainbranch (39 stars, last pushed 27d ago), licensed MIT. It adds 47 tokens to every session and 2,899 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.