Agent skill

cmux Billing Runbook

by manaflow-ai in manaflow-ai/cmux

Runbook for the cmux billing code: Stripe Checkout, customer portal, subscription changes, webhooks and how Pro plan entitlement is resolved from Stack metadata.

Custom licenceAuto-check passedBackend & APIs

Install cmux Billing Runbook

skills CLI
$ npx skills add manaflow-ai/cmux --skill cmux-billing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install manaflow-ai/cmux cmux-billing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/manaflow-ai/cmux.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cmux-billing .claude/skills/cmux-billing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cmux-billing
GitHub stars
28k
Token cost
~2.8k tokens
SKILL.md length
1,427 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
Custom licence

At a glance

Runbook for the cmux billing code: Stripe Checkout, customer portal, subscription changes, webhooks and how Pro plan entitlement is resolved from Stack metadata.

  • Editing or debugging Stripe Checkout creation for the Pro plan
  • SKILL.md covers Architecture map, Dev workflow, Catalog and Feature flags, plus 2 more sections
  • Calls bun and stripe; needs STRIPE_SECRET_KEY
  • Tracing why an account shows or lacks Pro status

What it does

This skill is a read-before-editing guide to the cmux billing stack, covering pricing, Stripe Checkout, subscriptions, webhooks and Pro entitlement. Its architecture map explains that the checkout route creates Stripe Checkout Sessions for Pro when the Stripe secret key is set, ties each session to the Stack user ID, creates an anonymous Stack user for signed-out buyers, and falls back to the older Stack purchase path when Stripe is unset or the plan is team.

Other routes create customer portal sessions that return to the pricing page and cancel or resume an active Pro subscription, while a dashboard page shows localized plan state. A shared recorder in `web/services/billing/purchase.ts` is idempotent and serves both the completion route and the Stripe webhook; it attaches the purchaser's email, records email claims on conflict and never grants access based on an unverified email. VM code reads the plan from Stack client-read-only metadata, where an operator override takes precedence over the Stripe-mirrored plan, and the portal link stays Stripe-only.

When your agent uses it

  • Editing or debugging Stripe Checkout creation for the Pro plan
  • Tracing why an account shows or lacks Pro status
  • Changing webhook handling or subscription recording
  • Working on the pricing page or billing dashboard

Example prompts

  • “Why does a signed-out buyer end up with an anonymous user after checkout? Walk me through the checkout route.”
  • “A customer paid but still shows as free. Trace how the webhook records the subscription and sets the plan.”
  • “Check that the subscription route cancels and resumes the Pro plan correctly.”

Requirements

  • A Stripe secret key for Stripe-backed checkout
  • The cmux web codebase

What it can do on your machine

Read from SKILL.md and the folder at commit 1e82fa4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bun
    • stripe

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • STRIPE_SECRET_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

cmux Billing Runbook loads about 2.8k tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 1,427 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,427 words (~2,849 tokens).

“Read before changing billing, pricing, Stripe, Pro entitlement, checkout, webhook, or subscription code.”

— opening of SKILL.md by manaflow-ai, Custom licence
name
cmux-billing

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/cmux-billing of manaflow-ai/cmux.

Open the folder on GitHubat commit 1e82fa4

Compare with similar skills

cmux Billing Runbook next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

cmux Billing Runbook compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
cmux Billing Runbook this skillmanaflow-ai/cmux28k—~2.8kAutomated safety check: PassCustom licence
Stripe Best Practicesfossasia/eventyay1.7k1 repos~1.7kAutomated safety check: PassApache-2.0
Stripe Patternsbybren-llc/safe-agentic-workflow423—~1.2kAutomated safety check: PassMIT
Stripe Integration Expertalirezarezvani/claude-skills28k1 repos~3.7kAutomated safety check: PassMIT
Payment Integrationaiskillstore/marketplace4338 repos~916Automated safety check: PassNone
Stripe Patternsbybren-llc/safe-agentic-workflow423—~1.1kAutomated safety check: PassMIT

Similar skills

  • Stripe Best Practices

    fossasia/eventyay

    Guides Stripe integration decisions across development and test environment planning (separate sandboxes vs the shared test mode sandbox), API selection (Checkout Sessions vs PaymentIntents)…

    1.7k GitHub starsUsed in 1 repo~1.7k tokens
    Backend & APIsAuto-check passed
  • Stripe Patterns

    bybren-llc/safe-agentic-workflow

    Stripe payment integration patterns for checkout flows, webhooks, and subscriptions.

    423 GitHub stars~1.2k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • Stripe Integration Expert

    alirezarezvani/claude-skills

    Production-grade Stripe integrations: subscriptions with trials and proration, one-time payments, usage-based billing, checkout sessions, idempotent webhook handlers, customer portal, and invoicing.

    28k GitHub starsUsed in 1 repo~3.7k tokens
    Backend & APIsAuto-check passed
  • Payment Integration

    aiskillstore/marketplace

    Integrate Stripe, PayPal, and payment processors. An agent skill from aiskillstore/marketplace.

    433 GitHub starsUsed in 8 repos~916 tokens
    Backend & APIsAuto-check passed
  • Stripe Patterns

    bybren-llc/safe-agentic-workflow

    Stripe payment integration patterns. An agent skill from bybren-llc/safe-agentic-workflow.

    423 GitHub stars~1.1k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • Stripe Integration

    davila7/claude-code-templates

    Get paid from day one. An agent skill from davila7/claude-code-templates.

    33k GitHub stars~634 tokensUpdated yesterday
    Backend & APIsAuto-check passed

More from manaflow-ai/cmux

All 22 skills in this repo
  • cmux Diagnostics

    manaflow-ai/cmux

    Runs a read-only health check for cmux and explains what it finds, covering the CLI and socket, settings, agent hooks, session restore and notifications.

    28k GitHub starsUsed in 1 repo~819 tokens
    Auto-check passed
  • cmux Settings Editor

    manaflow-ai/cmux

    Reads and changes cmux preferences in `~/.config/cmux/cmux.json` through a helper that validates each change before writing, covering terminal, browser, viewers and shortcuts.

    28k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • cmux Backend Rules

    manaflow-ai/cmux

    Sets the backend TypeScript and Cloud VM rules for cmux: Effect-based services, thin route handlers, Postgres as source of truth, migrations and provider secrets.

    28k GitHub starsUsed in 1 repo~682 tokens
    Auto-check passed
  • Cmux Debugging Guide

    manaflow-ai/cmux

    Covers debug logging, the Debug menu, profiling rules and runtime pitfalls for working on the cmux macOS terminal app.

    28k GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Workflow rules for the Ghostty submodule in cmux: rebuilding GhosttyKit.xcframework, pushing fork changes and updating the parent submodule pointer safely.

    28k GitHub starsUsed in 1 repo~580 tokens
    Auto-check passed
  • Cmux Release Workflow

    manaflow-ai/cmux

    Runs the cmux release process: gathers per-PR changelog lines since the last tag, bumps the version, guards against a bad tag, then tags and pushes the macOS DMG release.

    28k GitHub starsUsed in 1 repo~856 tokens
    Auto-check passed

Works with

Categories

Questions about cmux Billing Runbook

What does cmux Billing Runbook do?

Runbook for the cmux billing code: Stripe Checkout, customer portal, subscription changes, webhooks and how Pro plan entitlement is resolved from Stack metadata. This skill is a read-before-editing guide to the cmux billing stack, covering pricing, Stripe Checkout, subscriptions, webhooks and Pro entitlement. Its architecture map explains that the checkout route creates Stripe Checkout Sessions for Pro when the Stripe secret key is set, ties each session to the Stack user ID, creates an anonymous Stack user for signed-out buyers, and falls back to the older Stack purchase path when Stripe is unset or the plan is team.

When should I use cmux Billing Runbook?

cmux Billing Runbook fits situations like: editing or debugging Stripe Checkout creation for the Pro plan; tracing why an account shows or lacks Pro status; changing webhook handling or subscription recording; working on the pricing page or billing dashboard.

How do I install cmux Billing Runbook in Claude Code?

Run `npx skills add manaflow-ai/cmux --skill cmux-billing -a claude-code`. Or copy the skill folder (skills/cmux-billing in manaflow-ai/cmux) into .claude/skills/cmux-billing in your project. Claude Code loads it when a task matches its description.

How do I install cmux Billing Runbook in Codex?

Run `npx skills add manaflow-ai/cmux --skill cmux-billing -a codex`. Or copy the skill folder (skills/cmux-billing in manaflow-ai/cmux) into .agents/skills/cmux-billing in your project. Codex loads it when a task matches its description.

Can I use cmux Billing Runbook in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add manaflow-ai/cmux --skill cmux-billing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cmux-billing, .gemini/skills/cmux-billing, .github/skills/cmux-billing and .opencode/skills/cmux-billing in your project.

What does cmux Billing Runbook need to run?

Going by SKILL.md and its folder, cmux Billing Runbook needs the command-line tools its instructions call (bun and stripe) and credentials named STRIPE_SECRET_KEY. Our summary lists: A Stripe secret key for Stripe-backed checkout; The cmux web codebase.

Does cmux Billing Runbook access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is cmux Billing Runbook safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does cmux Billing Runbook use?

cmux Billing Runbook has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does cmux Billing Runbook use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to cmux Billing Runbook?

Skills that share tags, products or a category with cmux Billing Runbook: Stripe Best Practices (fossasia/eventyay, 1.7k stars), Stripe Patterns (bybren-llc/safe-agentic-workflow, 423 stars), Stripe Integration Expert (alirezarezvani/claude-skills, 28k stars) and Payment Integration (aiskillstore/marketplace, 433 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains cmux Billing Runbook?

manaflow-ai (a GitHub organization) maintains it in manaflow-ai/cmux, which has 28,092 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 11, 2026.

Source: manaflow-ai/cmux on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.