N NoBullshit.wiki 中文

Hardware store sales associate - whole-home electrical & plumbing material estimator tool - enter floor area, room count, kitchen and bath count, full or partial rewire, and it prints a reference materials list (wire by gauge, plates by gang count, valves and hoses tallied) priced by nothing, calibrated from the store's own past whole-house orders rather than guesswork, with "final quantities per your electrician's on-site count" pinned to the top and bottom of every list

Works with:Claude / GPT-4 classCategories:Hardware & Building Materials StoreLevel:Advanced Updated

You are a coding agent. Build a single-file HTML "Whole-Home
Electrical & Plumbing Material Estimator" for the counter staff of
a hardware and building-materials store. Runs locally, no network,
no install, no dependencies.

Scenario (design to this; do not build home-design software): a
homeowner stands at the counter with a floor plan - "89 square
meters, three bed two living, full rewiring, roughly how much
material?" Today the associate guesses: too high reads as
upselling, too low means the customer returns mid-job for
emergency parts. The tool turns that into four inputs and one
reference list.

Inputs (four, answerable at the counter in two minutes):
- Floor area (number, square meters)
- Room count (bedrooms + living + dining), bathroom count,
  kitchen count
- Scope: full rewire (everything re-run) / partial (local changes
  riding the existing runs)
- Option: include data cabling (off by default, separate checkbox)

Estimating engine (the core design, implement as specified):
- Every line's quantity = an input x a usage factor. All factors
  live in one "calibration" panel the associate can edit; edits
  persist to localStorage
- The sourcing rule is printed on that panel, non-negotiably:
  "Calibrate factors from this store's completed whole-house
  orders - take the last ten same-layout orders, divide actual
  quantities by area/room count. Factory defaults are for demo
  only; until calibrated, every estimate carries an
  'uncalibrated' mark"
- Uncalibrated state: a prominent banner up top - "factors not
  calibrated to this store's data, results for demonstration" -
  repeated in the list footer
- Full versus partial rewire runs on two factor sets (partial
  carries lower wire factors); no finer conversion

Output (one copyable plain-text list - not PDF, not charts):
- Group 1 "Electrical": wire meters grouped by gauge (lighting
  circuits / outlet circuits / dedicated kitchen & AC lines),
  conduit meters, junction-box count, switch and outlet plates
  counted by gang
- Group 2 "Plumbing": pipe meters, elbows and couplings derived
  by a per-meter fitting factor, angle valves, supply hoses
  counted
- Group 3 "Consumables": electrical tape, thread-seal tape,
  anchors - estimated as "per-order base + area factor"
- Every line shows: item / estimated quantity / unit / the common
  retail pack it translates to ("est. 187 m -> 100 m rolls x 2") -
  this step converts the estimate into how the customer actually
  buys
- One fixed line pinned at top and bottom: "Reference list -
  final quantities per your installer's on-site count." The top
  copy is for the customer to read; the bottom copy rides along
  when the text is copied out

Export:
- One-click copy as plain text (for the counter to message the
  customer)
- A demo dataset preloaded, so opening the page shows a complete
  list immediately

Hard constraints:
- Pure front end: no network requests, no external libraries, no
  accounts
- Factor edits persist in localStorage, with a "restore factory
  factors" button
- No brand recommendations and no price math - prices change
  daily; a tool that touches prices expires in three days. Price
  is negotiated at the counter, always

You must not:
- No baked-in "industry average usage" posing as authority -
  default factors are demo placeholders; until calibrated, show
  "uncalibrated" rather than a number that looks trustworthy
- No precision claims: the words "precise" or "accurate" may not
  appear in the tool name, UI, or export text. An estimate is an
  estimate
- No floor-plan drawing, circuit design, or outlet placement -
  that is the electrician's profession. One step over the line
  and the tradesman tells the homeowner "that store is making it
  up," and the tool is dead

Why it is written this way

The tool lives or dies on the calibration design. The same estimator with gut-feel factors is a toy; with factors derived from the store's own completed orders it is an asset - every whole-house sale makes it one order more accurate, and competitors cannot copy it. That is why the sourcing rule is hard-printed on the calibration panel, why factory defaults are explicitly demo placeholders, and why the "uncalibrated" mark persists until calibration is done. This guards against the most common death of counter tools: defaults that look authoritative, used as-is, badly wrong, taking the store's credibility down with them.

Translating estimated quantities into retail packs is the step that matters from the associate's chair. 187 meters of wire means nothing to a homeowner; "two 100-meter rolls" is a decision he can make. That conversion turns the tool from a calculator into a ticketing assistant - every line maps to one action behind the counter. The electrical / plumbing / consumables grouping matches how tradesmen check lists and homeowners shop top-ups, so the associate can read it straight down.

"Final quantities per your installer's on-site count," pinned at top and bottom, is the tool's relationship design with the tradesman. The electrician owns the quantity decision; a tool that poses as a precision calculator will be opposed by the first tradesman who sees it - and one sentence from him ("that store is making it up") settles the matter with the homeowner. Positioned instead as a reference draft that hands the count back to the tradesman, the tool gives him respect plus a head start, gives the homeowner a takeaway, and gives the store the whole order - all three parties gain, which is the only condition under which a counter tool survives.

Staying off prices is a durability decision. Prices move daily; a tool with baked-in prices expires in days, and once price lives in the tool, the associate's negotiating room is locked to it. The tool owns quantity, the counter owns price - the estimate carries the tradesman's endorsement, and the flexibility stays with the human. That division is what lets this tool stay useful for years.

Variables

Variable Description
Usage-factor table The per-material coefficients against area/room count - reverse-engineered from the store's last ten same-layout whole-house orders (actual quantity / area or room count). This table is the tool's core asset; calibrate once, benefit for years, and until then every output wears the "uncalibrated" mark
Full vs partial factor sets Partial rewire carries lower wire and fitting factors - how much existing runs get reused varies widely by market and tradesman habit; set it from your own completed orders, never copy a generic ratio
Retail pack table Each material's common retail unit (roll meters, pack counts) - filled from your actual purchasing specs; it drives the "187 m -> 2 rolls" conversion, and a stale pack table turns that step into misinformation

single-file toolwhole-order sellingquantity estimating