/howtoai-business:marginsfrom How to AI — Business
Ranks products, services, and clients by true profitability after fees, refunds, delivery time, and owner hours. Outputs a ranked table plus 2-3 decisions, not a spreadsheet dump.
Ships in How to AI — Business. 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; scripts run unread.
Nobody wants a margin report. They want to know which three things to raise, drop, or deliver differently. The whole value of this analysis is that the revenue ranking and the profit ranking disagree — the item at the top of the sales report is routinely somewhere near the bottom of the profit one, and the owner has been optimizing for the wrong list for years.
So the output is a ranked table plus 2–3 decisions. Never a spreadsheet dump.
Margins built from the costs an owner remembers off the top of their head are wrong in one predictable direction: too high. The reliably-forgotten ones are payment processing, refunds and chargebacks, the platform's cut, delivery and support time, and above all the owner's own hours.
Full capture checklist by business type, how to set a defensible hourly rate for
the owner's time, and which costs belong nowhere near a per-item margin: read
references/true-costs.md.
The blocker to name early: a services business that prices by project and has never tracked hours cannot know its margins, and no estimate rescues it — asking someone to recall last quarter's hours produces a number shaped like the answer they want. Say that plainly and prescribe the fix: log time against every job for two weeks (a phone note is enough), then run this. Do the fee-and-cost half of the analysis meanwhile so the trip isn't wasted.
Hourly rate, effective processing fee, and business type are stable facts. Ask
once, store them in a config.json (${CLAUDE_PLUGIN_DATA} in Claude Code,
otherwise a howtoai/ folder in the working directory), reuse thereafter.
Works from any sales export with a line per sale — or from pasted line items, which you write to a CSV yourself and run identically.
python3 scripts/margin_calc.py --sales sales.csv \
--hourly-rate 80 --fee-pct 2.9 --fee-fixed 0.30 \
--cost-map costs.json --group-by item
It returns per-group contribution, margin %, effective $/hour, ranked winners and
losers, share-of-revenue vs share-of-profit, concentration, break-even volume for
a price cut and a price rise, and an assumptions block to paste into the write-up.
--group-by client and --group-by category re-cut the same data; --list-columns
prints every header alias it accepts.
Column mapping, cost-map format, and messy-export handling (junk header rows,
currency symbols, refunds, gross vs net): read references/data-prep.md.
If a bookkeeping or payments connector is available, pull the same columns
through it — nothing downstream changes.
Run it three ways when the data allows — by item, by category, by client. The disagreements between the three cuts are usually where the finding lives.
Four things to look for, roughly in order of how often they're the story:
Which margin answers which question — and why picking the wrong one gives a confident wrong answer:
| Margin | What it is | The decision it serves |
|---|---|---|
| Contribution | Revenue − costs that vanish if you stop selling this | Keep / drop / reprice a single item, client, or channel |
| Gross | Revenue − cost of goods sold | Is the delivery model itself viable at scale |
| Net | Revenue − everything, overhead included | Is the whole business profitable; what you can pay yourself |
Contribution margin is the default here, because the questions people actually
ask ("should I keep selling this?") are contribution questions. Allocation rules,
discount and price-rise break-even math, and mix effects: read
references/margin-math.md.
Ranked table, at most ~10 rows (roll the tail into "everything else"), then 2–3 decisions. Each decision names the number that justifies it, the action, and what happens next:
If the analysis produces no decision, say so. "Your margins are healthy and evenly spread, here's the one to watch" is a legitimate, useful answer.
Setting the new price → price-check. Whether the money is in the bank when the bills land → cash-flow. Recurring business-health briefing → business-pulse. Closing the books so the numbers are trustworthy in the first place → month-close.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rubenhassid1/howtoai-skills --plugin howtoai-business12 skills in this plugin
/business-pulseTurns a small business's numbers into a one-page brief that ends in decisions — week-ahead priorities, end-of-week results, what changed since last time. Use for "how's my business doing", "weekly brief", "Monday brief", "give me my numbers"./business-reviewRuns the quarter-or-year step-back on a business: what actually drove results, what to stop, and the bets for next period. Use for "quarterly review", "year in review", "how did this quarter go", annual planning, or what to focus on next quarter./cash-flowWorks out where a small business's cash stands, how long it lasts, and what breaks first — from a bank CSV or a short interview. Use for "cash flow", "how much runway", "will I make payroll", "can I afford this", or "forecast my cash".Other plugins' skills for the same job