/vivreal-knowledge:vivreal-unit-economicsfrom vivreal-knowledge
Use when reasoning about Vivreal's COST, MARGIN, PRICING, or UNIT ECONOMICS: gross margin per customer, the cost stack (AWS, MongoDB Atlas, AI), overage revenue, infra cost at scale, runway, or whether a change dents the margin floor. Teaches where the real numbers live: tier-quotas pricing, the AWS bill as a decomposition (tax plus an untaxed Registrar pass-through), Amplify build minutes, Atlas by cluster rung, overage and spending caps, and that DB tier tracks PEAK CONCURRENCY not signups. Customer inference is RETIRED as a cost axis. Triggers on: unit economics, gross margin, pricing, overage, spending cap, AWS cost, AWS bill, AWS tax, Cost Explorer, Amplify build minutes, Amazon Registrar, domain cost, pass-through, Atlas cost, M10/M20/M30, Anthropic cost, prompt caching, AI quota, runway, margin floor, scale ladder, peak concurrency, CAC payback. Grounds the `finance-auditor` agent; for GTM/funnel economics use the growth agents.
Ships in vivreal-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Last synced: 2026-11-04. A stamp only means anything if every hand-patch moves it. This one sat at 2026-07-30 while facts were edited in underneath it, so it stopped meaning "everything before this date, nothing after" and became decoration. Bump it whenever you touch a fact here, or delete the line rather than leaving a date nobody can rely on.
The internal cost/margin/profitability model for Vivreal. This is the source-of-truth digest for any margin or pricing reasoning, and the grounding for the finance-auditor agent. Lean body; the bill-reading method, the margin model and the AI-optimization detail live in references/cost-model.md.
Sources of truth, and the order to trust them in. Pricing and quota constants:
@hillbombcreations/tier-quotassrc/tierQuotas.ts, which is authoritative and which also holds the Stripe price ids. Live customer mix and counts: queryVivreal.groups. Live Atlas headroom:db.adminCommand({serverStatus: 1}), which is permitted on M10 (and was on M0) and returnsconnections.currentandconnections.availabledirectly. Infrastructure spend: the AWS bill and the MongoDB invoice, which are two separate bills. Everything below is reasoning and method. Where a number is pinnable, this file points at the pin rather than copying it, because a copy is wrong in two places at once the moment it moves.This repository is PUBLIC, so it carries the method and no figures. The margin floor and the live figures are in the private vivreal-hq repo at
docs/finance/unit-economics.md(read with your local checkout). That file is where the measured bill, the fixed infra cost, the blended revenue and the scale ladder live; update them there, never here.
Prices, tier names and AI allowances are NOT written down here, deliberately. They live in
TIER_DISPLAY and TIER_QUOTAS in Vivreal-Tier-Quotas src/tierQuotas.ts, which is the
pricing-constant source of truth including the Stripe price ids. Read them there before quoting
a single figure to anyone, internally or in copy.
Count paying customers by stripeSubscriptionID, never by tier. Several paid-tier groups are comped by hand and pay nothing (the measured count is in the private figures file), so MRR, ARPU and margin computed from the tier distribution report revenue that does not exist.
Three specific traps this table used to walk into:
agentActions is 0 on every tier, retired
2026-09-18 as an owner decision to stop paying for customer inference. There is no AI quota
to model, raise, or trade off. A question premised on one has no valid answer, and saying so
is the correct response.Vivreal.groups before using it in an argument, and take the prices from the package. Annual plans exist as real Stripe prices in TIER_DISPLAY.agentActions quota is now 0 everywhere, so what remains live is the binary capability flags. TIER_FLAGS in src/tierQuotas.ts carries aiSiteEditing and aiComponentGen. Read which tier gets which from the file. Helpers mirror canHidePoweredBy, plus lowestTierWithFlag() so consumers derive the required tier rather than hardcoding one. ENFORCEMENT_MANIFEST entries are mandatory: it is a total Record over the flags, so omitting one fails the build and the tests. A manifest row is only true if the path the product actually calls runs the gate, so check the caller before believing a row.AWS is a DECOMPOSITION, not a constant, and it is NOT flat. Read it from Cost Explorer
(UnblendedCost, the prod payer account), one closed month at a time. It has grown several
times over across 2026, so any answer built on a remembered flat monthly figure is wrong.
Model it as:
monthly_bill = usage * (1 + tax_rate) + domain_registrations
RECORD_TYPE before reasoning about the rate at all.The Atlas tier step does not change this line: Atlas is a different bill entirely (below). The measured monthly series, by record type and by service, is in the private figures file.
MongoDB Atlas, billed directly by MongoDB, NOT on the AWS bill. This is a real lever and it tracks PEAK CONCURRENCY, not signup count (see below). Each cluster rung (free, M10, M20, M30) costs a step more; price a rung from the MongoDB invoice, not a remembered list price. One cluster holds all tenant DBs, you don't pay per database.
Customer inference: RETIRED as a cost axis, 2026-09-18. agentActions is 0 on every
tier including enterprise, so no group can enter the agent loop and there is no per-customer
Claude API spend. This was a deliberate owner decision to stop paying for customer inference,
not a quota tuned down, and it removes the whole line from the cost stack rather than shrinking
it. Do not model it, and do not answer a question that presupposes an AI quota exists.
What survives is mcpToolCalls, which meters something else entirely: Vivreal's own Lambda and
Mongo work. It is a HARD STOP with no overage rate, so treat it as a capacity bound, not
revenue. Verify both against src/tierQuotas.ts on the deployed line before quoting either.
OVERAGE_PRICING in the tier-quotas package. The shape that matters: CDN and API overage are strongly margin positive, and agent overage roughly breaks even against uncached token cost and is positive with caching. The eligible-tier list is in the package too, and it changed when a tier was retired.DEFAULT_SPENDING_CAP for the numbers. The cap is what bounds worst-case AI cost, so it is the lever, not the quota.The Atlas cost lever is driven by simultaneous in-flight backend requests, not how many customers exist. Each warm Lambda container holds ~6-15 Mongo connections, so the connection cap converts into a ceiling on concurrent requests:
ConnectionsCap, and see vivreal-infra:vivreal-atlas-topology). Read the live headroom with serverStatus before reasoning about it; do not quote a remembered ceiling. The conversion that matters: each warm Lambda container holds a handful of Mongo connections, so the cap becomes a ceiling on concurrent in-flight requests, and a rule of thumb of about three connections per concurrent user is close enough for planning.serverStatus, and price the step from the MongoDB invoice, which does not appear on the AWS bill.vivreal-atlas-topology.The ladder itself, with its blended figure and per-rung MRR, is in the private figures file. The method that produces it:
blended_ARPU = sum over paid tiers of (price from TIER_DISPLAY * share of PAYING groups on that tier)
MRR(rung) = paying_customers(rung) * blended_ARPU
Count paying groups by stripeSubscriptionID, take the prices from the package, recompute the
mix from Vivreal.groups, and pair each rung with the Atlas tier its PEAK CONCURRENCY needs (not
its customer count).
Fixed infra is the sum of: AWS usage plus its tax for a CLOSED month, the Atlas line from the
MongoDB invoice (a budget from the hourly rate only until the first invoice is read), GitHub, and
any non-product domain renewals. Derive it from Cost Explorer UnblendedCost grouped by
RECORD_TYPE (method in references/cost-model.md). Only quote a closed month. A mid-month
read understates badly, and once made fixed infra look half its real size. Do not add WorkMail on
top of the AWS total, it is already inside it. Domains sold to customers are excluded on purpose,
being an untaxed pass-through against domain revenue. The current figure is in the private
figures file.
The margin-improves-with-scale conclusion survives, but the mechanism has changed and matters: the biggest usage line is now Amplify build minutes, which scale with DEPLOY activity rather than with customer count. Fixed infra still amortizes, but a build-heavy month is a genuine variable cost that a per-customer model will miss entirely.
TIER_DISPLAY; read the prices there. The free-domain bundle is the sweetener cost.references/cost-model.md (the figures themselves are in the private vivreal-hq file named above).references/cost-model.md.This skill is internal cost / margin / profitability. It is NOT go-to-market. For funnel/conversion economics, churn (NRR/GRR), CAC, positioning, and retention, use the growth agent (vivreal-growth-analytics), it owns the revenue-side levers; this skill owns the cost-side levers. Companions: vivreal-atlas-topology (the connection-cap mechanics behind the Atlas tier lever), vivreal-lambda (reserved-concurrency, which bounds the peak-concurrency cost driver).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
27 skills in this plugin
/sentry-tracerUse when investigating what happened during a Vivreal user action across the stack, tracing an error end-to-end, validating a deploy, or doing tenant-scoped triage with Sentry. Teaches WHEN to trace cross-stack (frontend spans ↔ backend logs ↔ WebSocket events) and HOW (trace-ID propagation, the standard tag set, request_id fallback, service.* breadcrumbs). Triggers on: "what happened when I did X", "why did this error", trace this request, Sentry issue, deploy validation, "everything's broken for this group", crash, error timeline. For the full investigation agent with Sentry MCP tools wired in, dispatch the `sentry` agent / `/sentry-trace` (both in the `vivreal-sentry` plugin); this skill is the passively-loaded knowledge layer. Also covers the step from a Sentry error to the AWS and Atlas metric that confirms an infrastructure cause (502 with no backend event, Lambda timeout, Mongo connect-hang, throttling, OOM, stalled deploy)./vivreal-accounts-and-writesUse before filming, walking or capturing anything in the Vivreal portal or on vivreal.io, and before any write a capture or walk makes. Carries which login to use for which business (the demo account, the QA scratch owner, the owner session), the eight-step owner-approved write protocol (named approval, snapshot, write through the UI, fresh-process read-back, restore, manifest entry), the never-list (Post, Publish, Schedule, Connect and the rest), and the rules for stills that fill vivreal.io marketing slots (pair by what the slot says, no demo site has its own web address, mask comped plan figures). Shared by footage-recorder, tutorial-maker, help-page-producer, qa-walker and marketing-auditor. Triggers on: which login, demo account, QA scratch-2, test account, switch business, owner-approved write, write protocol, snapshot and restore, mutations, marketing still, screenshot swap, vivreal.io slot, walk harness, write guard, POST allow list, PRO badge./vivreal-admin-app-knowledgeUse when working on, walking, deploying or reasoning about the internal admin app (vivreal-hq packages/admin-app), the invite-only, sign-in-only staff hub that holds every staff surface since v7 (outreach CRM, sign-ups, monitoring, errors, tickets, flags, audit, usage, economics, deployed sites, team, staff push), covering where it lives, its own identity pool and session, how it calls the fleet with no active_ctx, the deploy by fast-forwarding deploy/admin-app, its two ops Lambdas, what each page reads, including the dark navy restyle and the Releases, Database, Marketing and Inbound pages. Source of truth: `vivreal-hq` `packages/admin-app/CLAUDE.md` (and the docs it links) at `origin/deploy/admin-app`./vivreal-agent-knowledgeUse when working on, writing about, or debugging Vivreal AI. The AI offering is connecting an AI agent through the Vivreal MCP server (VR-MCP-Server, plan flag mcpAccess, metered in mcpToolCalls), and nothing else: the in-app assistant is RETIRED (owner 2026-10-07, agentActions 0 on every tier; the global FAB, drawer and /agent page were deleted 2026-09-24) and only dead code survives in the portal (Studio AiRail, EditPlan) and VR_Secure_API's agent Lambda. Covers the copy rule ("AI agent", never assistant or a model name), the real gates, and the retired surface's archaeology. Triggers on: AI agent, MCP, connect an AI agent, AI assistant, AI assistant not showing, agentActions, aiActionsEnabled, aiSiteEditing, aiComponentGen, mcpAccess, mcpToolCalls, AiRail, useAgentAccess, EditPlan, proposeSiteEdits, agent/execute, agentProgress. Sources: VR-MCP-Server, Vivreal-Tier-Quotas src/tierQuotas.ts./vivreal-analytics-knowledgeUse when working on Vivreal's first-party analytics, VR_Analytics_API (the collect→store→rollup pipeline), the Templates SiteBeacon, or the per-site traffic dashboard (VR_Secure_API read route + portal AnalyticsPanel). Covers the CloudFront+WAF → Lambda Function URL ingest chain (X-Origin-Verify, bot filter, Joi, per-IP rate limit, daily-salt visitor hash), the analytics_rollup DynamoDB design, the daily rollup cron into mainDb.site_traffic_daily, the LIVE auto-deploy status (GitHub Actions → CloudFormation) plus the W4 CDN egress meter (runs unconditionally), and where increment 2 lives. Triggers on: analytics, site traffic, beacon, SiteBeacon, visitor stats, page views, unique visitors, analytics_rollup, site_traffic_daily, first-party analytics, per-site dashboard, collect.vivreal.io, visitor hash, rollup cron, CDN egress meter, VR_Analytics_API. Source of truth: `VR_Analytics_API` `CLAUDE.md` (and the docs it links) at `origin/main`./vivreal-blender-knowledgeUse when scripting or rendering in Blender for Vivreal, above all the Vivreal duck mascot in vivreal-hq/brand/mascot/model. Covers headless renders (blender -b -P script.py -- args, --factory-startup, --python-exit-code), bpy data versus ops, bmesh, depsgraph evaluated_get and new_from_object, mathutils transform gotchas, flat toon and NPR rendering in EEVEE (Emission plus the Standard view transform, exact sRGB hex, dither, filter size, transparent film, orthographic framing), outline methods compared (Freestyle, Grease Pencil Line Art, inverted hull, ID-pass edge inking), and the 4.2 to 5.2 API changes that break scripts (EEVEE engine id, blend_method, use_nodes, Grease Pencil v3). Triggers on: Blender, bpy, bmesh, headless render, background render, EEVEE, Workbench, Cycles, toon, cel, NPR, outline, inverted hull, Freestyle, Line Art, Grease Pencil, view transform, AgX, Filmic, mascot, the duck, duck.py, render.py, mascot-artist.npx claudepluginhub hillbombcreations/vivreal-skills --plugin vivreal-knowledge