mb-end

A session-closing workflow that reviews what happened during a coding session and prepares a checkpoint or summary. It is the closing counterpart to a session-start workflow.

In plain words
What is it for?
Use it when the user says they are done, wants to wrap up or pause, asks to end the day, or requests a checkpoint.
Why use it?
It helps preserve unfinished work, decisions, repository changes, and next actions instead of ending with an unclear project state.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/noontide-co/mainbranch/mb-end
Any agent
npx skills add noontide-co/mainbranch --skill mb-end
Clone the repo
git clone --depth 1 https://github.com/noontide-co/mainbranch

Made for: Claude Code, Codex.

Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,823 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00113 $0.04823
Opus 5 $0.00056 $0.02412
Sonnet 5 $0.00023 $0.00965
Haiku 4.5 $0.00011 $0.00482

Measured yesterday against content hash a8fb7ca61183, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mb-end 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 yesterday.

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-end/SKILL.md · 474 lines

How it starts

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

End

Close your session intentionally. The bookend to /mb-start.

You only run this when you choose to. It is never auto-invoked.

Shared source: The portable workflow contract lives in workflows/mb-end/workflow.md. This Claude skill is the Claude Code shell over that source.

CLI facts first: After finding the business repo, run mb status --json --peek and mb checkpoint --plan --json before summarizing the session or offering to save. Use status journal, since_last_check, dirty-work, readiness, and checkpoint facts as the primary source. Raw git is fallback/detail only when mb facts are unavailable or a crystallize step needs site-code history the CLI does not expose.

Shared contract markers: Keep these aligned with the shared source.

Required commands:

  • mb status --json --peek
  • mb start --json
  • mb doctor repair --plan
  • mb checkpoint --plan --json
  • mb validate --json

Required fact paths:

  • money_path
  • money_path.objects.proof.quality
  • validation.file_contracts
  • content_strategy
  • ranked_actions
  • update
  • readiness
  • drift.items
  • runtime.codex_cli
  • runtime.claude_code
  • journal
  • since_last_check
  • checkpoint.pending
  • checkpoint.pending.changed_files
  • checkpoint.pending.blockers
  • checkpoint.pending.proposed_subject
  • summary.changed_files
  • safety.blocks
  • proposal.message
  • validation

Approval gates: updates_repairs_migrations, file_writes, checkpoint, provider_mutation, publishing_or_spend, customer_contact, private_data, destructive_operations, 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, and no_raw_finance_legal_records.

Core closeout flow: status scan, checkpoint plan, session summary, final thought capture, crystallize, approval-gated save, owner-facing save states, and warm close.


Philosophy

The end of a session is the highest-leverage reconnection point. All session you were doing -- researching, deciding, generating. Now you step back and see what actually happened. Accumulated doing becomes conscious understanding.

Read the full file on GitHub · 474 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 474 lines · 113 tokens per session scan A a8fb7ca61183

Subscribe to this mod's changes

mb-end is a skill published in the GitHub repository noontide-co/mainbranch (37 stars, last pushed 17d ago), licensed MIT. It adds 113 tokens to every session and 4,823 once invoked, about $0.0006 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.