founder-cost-leak
When to use
- Last month's direct cost % is above the threshold in
founder/profile.md(default 35% for F&B; ask for other businesses). - The owner asks "what are we wasting", "why is buying up when sales are the same", "is stock going missing".
- After
/founder-pnlfinds a high direct cost.
This skill does not accuse people. The result is a list of items with the biggest gaps and likely causes that can be checked. Who is responsible is for the owner to decide after checking on the ground.
The data
| source | required columns | notes |
|---|---|---|
| Purchases | date, item, quantity, unit, total Rp | one full month, one outlet or warehouse |
| Sales per item | product or menu item, quantity sold | from the POS, the delivery apps and the marketplaces, same period |
| Usage per unit sold | product, the main materials, quantity per unit, unit | F&B: a rough recipe, 2 to 3 main ingredients per menu item is enough. Made in-house: the bill of materials. Retail / online: 1 unit of stock per unit sold (plus packaging per order if it matters) |
| Stock (optional) | item, opening stock, closing stock, unit | with it, actual usage is far more accurate |
| Waste and returns (optional) | date, item, quantity, value, reason | from a daily waste form, the returns log or the marketplace returns; explains part of the gap |
If there is no recipe or bill of materials at all, ask the owner to fill a rough table for the 10 best sellers only. Do not continue with made-up quantities. If the owner insists, use common quantities and label every affected number (assumed quantity).
Units must match. If purchases are in kg and recipes in grams, convert first and write the conversion.
founder/profile.md is written by /founder-plan. A business that skipped the
build stage often has its own outlet profile instead (an owner's notes, a course
profil-outlet.md): use it the same way, and say which file the thresholds came
from. Where both exist and disagree, the owner's own file wins.
Steps
For each item in the usage table:
- Expected usage = sum of (quantity sold x quantity per unit) across every product that uses it.
- Actual usage = opening stock + purchases - closing stock. Without stock: actual usage = purchases, labelled (no stock count).
- Gap (quantity) = actual usage - expected usage.
- Gap % = gap / expected usage.
- Gap (Rp) = gap x the month's average purchase price (total Rp bought / total quantity bought).
- Sort by gap in Rupiah, biggest first. Take the top 5.
- For each of the top 5, check the purchase price: the average in the first week against the last week. A rise above 10% is reported separately as "price rise", not "waste".
- If waste and returns data exist: subtract the recorded waste for each item. The rest is the unexplained gap, and that is what gets reported as worth checking. Recorded waste has its own column.
A normal gap for fresh ingredients is 5 to 10% (trimming, shrinkage, tasting); for packaged retail stock, close to 0 to 2%. Above 15% for fresh, or above 3% for packaged, is worth checking. A large negative gap (actual far below expected) is also a finding: the recipe is wrong, portions were cut, or sales are missing from the POS.
Likely causes (pick the best fit, more than one is fine)
| pattern in the data | likely cause | how to check on the ground |
|---|---|---|
| The gap is spread across all protein or main materials | non-standard portions or usage | weigh 5 random portions or builds against the recipe |
| A big gap in 1 or 2 expensive items only | unrecorded waste, or used for something else | check 7 days of the waste form, staff meals, samples and giveaways |
| Packaged stock missing, sales flat | shrinkage, theft, or orders sent but not recorded | count stock today; match marketplace orders against shipments and returns |
| Purchases up, sales flat, no closing stock | stock piling up or expiring | count physical stock today, check expiry dates |
| Average purchase price up more than 10% | the supplier raised prices, selling prices have not followed | compare 2 suppliers, review prices with /founder-product-mix |
| A large negative gap | the recipe or BOM does not match practice, or sales did not go through the POS | ask the head cook or the packer, check manual transactions |
| The gap appears only on certain dates | a specific event (a bazaar, a shift, a flash sale) | match against the roster and the order log for those dates |
Verification rules (required)
- Show the calculation table for the top 5 items with every column: expected, actual, gap quantity, gap %, gap Rp, source rows.
- Compare the top 5's total gap in Rupiah with the total direct-cost gap (actual direct cost - direct cost if everything matched the recipe or BOM). If the top 5 explain less than 50% of the total gap, say so and name where the rest is.
- Never name employees or shifts, never allege theft. Write "worth checking" and how to check.
- If some products sold have no recipe or BOM, give their count and their share of sales. If more than 20% of sales have none, label the title (low recipe coverage).
Output format (fixed)
COST LEAK CHECK: [Business], [Month Year] Recipe/BOM coverage: xx% of sales | Direct cost this month xx.x% (benchmark xx-xx%) TOP 5 ITEMS BY GAP | Item | Expected | Actual | Gap | Gap % | Gap Rp | Likely cause | | ... | Top 5 total gap: Rp xxx.xxx (xx% of the total direct-cost gap of Rp xxx.xxx) PURCHASE PRICES THAT ROSE [item, price at the start -> end of the month, % rise, products affected] or "No rise above 10%" 3 FINDINGS 1. ... 2. ... 3. ... 1 ACTION THIS WEEK [one concrete field check: which item, who checks, when, where the result is recorded] 1 NUMBER TO DOUBLE-CHECK [usually: the recipe quantity of the item with the biggest gap, or the closing stock] Source: [tabs and rows]
Save the report
After showing the report, save it so next time (and the founder-id dashboard) can
use it. Two files in founder/reports/cost-leak/, named by the month or period:
2027-01.md: the report exactly as shown above.2027-01.json: its key numbers, in this shape (money in full Rupiah as plain numbers, percentages as fractions: 0.45 means 45%):
json{ "month": "2027-01", "coverage_pct": 0.94, "direct_cost_pct": 0.478, "items": [ {"item": "Fresh milk", "unit": "L", "expected": 2160, "actual": 2490, "gap_qty": 330, "gap_pct": 0.153, "gap_rp": 4950000, "waste_recorded": 0, "cause": "Non-standard portions"}, "... the top 5, biggest gap_rp first" ], "price_rises": [{"item": "Fresh milk", "from": 14000, "to": 15500, "pct": 0.107}] }
Get the paths with python3 "${CLAUDE_SKILL_DIR}/../founder-weekly-report/reports.py" path cost-leak 2027-01, write both files, then run
python3 "${CLAUDE_SKILL_DIR}/../founder-weekly-report/reports.py" check founder/reports/cost-leak/2027-01.json. It checks that gap_qty = actual - expected, items sorted by gap_rp.
If it reports a problem, fix the numbers (never the check) and say what changed.
Copy numbers from the report; do not compute new ones for the JSON.
Thresholds the owner can change (in founder/profile.md)
- Normal gap % (default 10% fresh, 2% packaged)
- Gap % worth checking (default 15% fresh, 3% packaged)
- Purchase price rise to report (default 10%)
- Number of items shown (default 5)


