Founder Cost Leak logo

Founder Cost Leak

Community
julisman
founder-cost-leak

Finds the materials or stock used up faster than sales explain, by comparing what was bought (and the stock count) with what should have been used for what was sold: recipes for F&B, a bill of materials for products made in-house, one unit per unit for retail and online sellers. Ranks the five biggest gaps in Rupiah, separates price rises from waste and shrinkage, and gives a field check for each, without accusing anyone. Use when direct cost (food cost, COGS) is above the threshold, when the owner suspects non-standard portions, waste, missing stock or theft, or when purchase prices rose and the owner does not know which items are hit. Phrases: "which material is wasted", "bocor", "stock is missing", "why is buying up when sales are flat".

Overview

Publisherjulisman
Repositoryfounder-id
Skill namefounder-cost-leak
Stars
66
Forks
1
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by julisman on GitHub. Read the source before you install it.

Installation

Install the Founder Cost Leak AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/julisman/founder-id/tree/main/skills/founder-cost-leak
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/julisman/founder-id.git /tmp/founder-id
mkdir -p .claude/skills
cp -r /tmp/founder-id/skills/founder-cost-leak .claude/skills/founder-cost-leak
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Founder Cost Leak in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Founder Cost Leak on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Founder Cost Leak is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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-pnl finds 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

sourcerequired columnsnotes
Purchasesdate, item, quantity, unit, total Rpone full month, one outlet or warehouse
Sales per itemproduct or menu item, quantity soldfrom the POS, the delivery apps and the marketplaces, same period
Usage per unit soldproduct, the main materials, quantity per unit, unitF&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, unitwith it, actual usage is far more accurate
Waste and returns (optional)date, item, quantity, value, reasonfrom 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:

  1. Expected usage = sum of (quantity sold x quantity per unit) across every product that uses it.
  2. Actual usage = opening stock + purchases - closing stock. Without stock: actual usage = purchases, labelled (no stock count).
  3. Gap (quantity) = actual usage - expected usage.
  4. Gap % = gap / expected usage.
  5. Gap (Rp) = gap x the month's average purchase price (total Rp bought / total quantity bought).
  6. Sort by gap in Rupiah, biggest first. Take the top 5.
  7. 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".
  8. 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 datalikely causehow to check on the ground
The gap is spread across all protein or main materialsnon-standard portions or usageweigh 5 random portions or builds against the recipe
A big gap in 1 or 2 expensive items onlyunrecorded waste, or used for something elsecheck 7 days of the waste form, staff meals, samples and giveaways
Packaged stock missing, sales flatshrinkage, theft, or orders sent but not recordedcount stock today; match marketplace orders against shipments and returns
Purchases up, sales flat, no closing stockstock piling up or expiringcount physical stock today, check expiry dates
Average purchase price up more than 10%the supplier raised prices, selling prices have not followedcompare 2 suppliers, review prices with /founder-product-mix
A large negative gapthe recipe or BOM does not match practice, or sales did not go through the POSask the head cook or the packer, check manual transactions
The gap appears only on certain datesa 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)

Frequently asked questions

What does the Founder Cost Leak AI skill do?

Finds the materials or stock used up faster than sales explain, by comparing what was bought (and the stock count) with what should have been used for what was sold: recipes for F&B, a bill of materials for products made in-house, one unit per unit for retail and online sellers. Ranks the five biggest gaps in Rupiah, separates price rises from waste and shrinkage, and gives a field check for each, without accusing anyone. Use when direct cost (food cost, COGS) is above the threshold, when the owner suspects non-standard portions, waste, missing stock or theft, or when purchase prices rose a...

Why use Founder Cost Leak on TypingMind?

Because you install it once and use it with any model. Founder Cost Leak is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Founder Cost Leak in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/julisman/founder-id/tree/main/skills/founder-cost-leak. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Founder Cost Leak?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Founder Cost Leak?

As many as you like. As long as a model supports skills, you can use Founder Cost Leak with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Founder Cost Leak AI skill free?

Yes. It is published on GitHub by julisman under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇