runbookify
← All plans
Manufacturing & Production / Downtime & OEE Tracking

Scrap & Yield Tracker: Log It, Cost It, Stop the Bleed

Stop writing off scrap as 'we always lose some.' Build a tool where operators log scrap by job and machine with a reason code and quantity, the tool computes first-pass yield and attaches a real dollar cost, and a supervisor approves before anything posts — so your biggest money-losers finally become visible.

BeginnerAn afternoonBuilds onNext.jsSupabaseResend
What you'll build

A logged-in web app where an operator logs a scrap event (work order, machine, item, quantity, reason code) in a few taps, the tool computes first-pass yield and a dollar cost using your unit-cost reference, a supervisor reviews and approves before it posts, and you can export a clean scrap log, an optional inventory-adjustment CSV, and a cost summary that ranks your worst money-losers.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.

Before you start

  • A Supabase account (free)
  • A Vercel account (free)
  • A Resend account (free)
  • Your list of scrap reason codes, your machines/work centers, and a unit-cost reference per item (a CSV or Google Sheet is fine)
  • Claude Code or any AI coding agent

The problem this kills

Everybody on the floor "knows" Machine 4 runs heavy on scrap. Everybody "knows" that one part number always loses a few in setup. But nobody can put a number on it, because the scrap gets tossed in a bin, scribbled on a clipboard, or just absorbed into "we always lose some." At month-end the yield looks roughly okay and the cost of all that wasted material, labor, and machine time disappears into overhead where no one can see it — or fix it.

The problem isn't that you scrap parts. Every plant does. The problem is that your scrap is invisible: not tied to a job or a machine, not tagged with a reason, and never given a dollar figure. You can't improve what you can't see, and you can't make the case for a fix when all you've got is a hunch. You don't need a six-figure MES module to fix this. You can build the tracker yourself.

What you'll build

A simple internal web app for your floor. An operator logs a scrap event — the work order, the machine or work center, the item, the quantity scrapped, and a reason code from your controlled list — in a few taps. The tool immediately computes first-pass yield (good parts ÷ total started) and attaches a dollar cost using your unit-cost reference. Nothing hits your reporting or inventory until a supervisor reviews and approves it — they check the quantity, the reason, and the cost basis, then post it. From there you export a clean scrap log, an optional inventory-adjustment CSV in your system's columns, and a cost summary that ranks reasons, machines, and parts by money lost — so the biggest leaks finally have a name and a number.

What's inside the Implementation Plan

The downloadable plan is a step-by-step file you paste into an AI coding agent. It opens by interviewing you about your plant — your real machines and work centers, how you name work orders and items (your SKU/part-number conventions), your actual scrap reason codes, where your unit costs come from, your typical and peak scrap volumes, who approves what, and the messy edge cases like rework vs. true scrap or a scrap event logged against the wrong job. It reads a short spec back to you for a thumbs-up, then builds the tracker around your operation instead of a generic template. From there it walks the agent through the data model, the operator logging screen, the yield-and-cost calculations, the supervisor approval gate, and the three exports. Every step ends with a ready-to-copy prompt.

The governance it includes (this is the point)

This isn't a toy spreadsheet. The plan builds in the controls a real operation needs: login so only your team can use it, row-level security so a plant or site only ever sees its own scrap, and a complete audit trail of every entry, edit, approval, and rejection — who, what, and when. The centerpiece is a hard human-in-the-loop approval gate: the operator's entry and the tool's computed cost are a draft until a named supervisor reviews and approves it, and only then does it post to scrap reporting or feed an inventory adjustment. And a duplicate guard keyed on work order + machine + scrap-event timestamp keeps the same scrap from being logged — and double-counted — twice.

Who it's for

Operators who log the scrap, quality engineers who chase the reasons, and cost accountants who need to put a dollar figure on the loss. If you can describe how you name your jobs and parts, what your reason codes are, and where your unit costs live, you can build this.

You've got this — open the plan, paste the first prompt, and you'll be logging and costing your first scrap event this afternoon.

Gated download

Enter your email — the plan downloads instantly and a copy lands in your inbox.

By submitting your email you'll also receive the weekly runbookify newsletter. You can unsubscribe at any time.