/daloopa-investing:bom TICKER [PRODUCT] [teardown data: pasted table or file path]from daloopa-investing
Builds an interactive bill-of-materials dashboard for a physical product, mapping components, suppliers, unit costs, and gross margin sensitivity. Useful for teardown analysis and supply chain research.
Ships in daloopa-investing. 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.
None: SKILL.md is the whole skill.
Build an interactive bill-of-materials (BOM) dashboard for the company and product specified by the user: $ARGUMENTS
Before starting, read ../data-access.md (tools, citations, source rules, reuse), ../design-system.md (formatting, charts, final checks), ../metrics-definitions.md (metric definitions, pull windows, filing sections), ../valuation-conventions.md (share count and tax rate) and ../kpi-taxonomy.md (unit and price KPIs). This skill cites them and does not restate them.
This skill breaks one physical product (an iPhone 17 Pro, a Model Y, a PlayStation 5) into its components: who supplies each, what it is estimated to cost per unit, how much of the BOM it is, and how a change in that cost flows to the company's gross margin and EPS. /supply-chain maps company-to-company relationships; this skill is product-level.
Two kinds of data, kept visibly separate throughout:
../data-access.md Section 4).What to expect from public data. Line-item teardown costs for recent products are mostly behind paywalls (TechInsights, Counterpoint, Fomalhaut). What reaches the open web is usually a handful of headline components relayed by the press. For a current-generation product this skill therefore often produces a key-component cost analysis with an explicit unallocated remainder, not a full BOM. That is still useful, since the costed components are usually the ones that move margin, but the report says plainly how much of the BOM is costed. Do not pad the gap.
User-supplied teardown data (preferred when given). If the user pastes a component cost table or gives a file path (for example an export from a teardown subscription), use it as the primary cost source: read it, map its rows to components, record it in Sources as "user-supplied: {description}, {date if given}", and still label every cost "est.". Use web research only to fill gaps and cross-check. Never reproduce more of a paid dataset than the report needs.
A single self-contained HTML file, reports/{TICKER}_{PRODUCT_SLUG}_bom.html, plus its data file reports/{TICKER}_{PRODUCT_SLUG}_bom.json.
Everything a reader can cite is static HTML or inline SVG, generated by a script from the data: the bottom line, exploded view, tables, charts and each component's detail section. It reads and prints with JavaScript off.
JavaScript only adds behaviour to that markup: sorting the component table, hover-linking the exploded view's parts and labels, and opening a component's detail section in an overlay. It builds no content. The script is in Step 11.
Run the standard company setup (../data-access.md Section 1.2). If knowledge/{TICKER}/supply-chain.md exists, use it as a list of suppliers to confirm against the teardown. Check reports/ for a /supply-chain output and reuse its supplier financials under the reuse rule (../data-access.md Section 7).
Parse $ARGUMENTS: the first token is the ticker; what follows is the product, and optionally teardown data (a pasted table or a file path) or an image path for the exploded view.
/bom applies only to companies with a physical product, suggest /unit-economics, and stop.Fix the configuration (storage, trim, region) now. The BOM, the list price and the exploded view all refer to this one configuration.
PRODUCT_SLUG is the product name in lowercase with spaces and punctuation replaced by hyphens (iphone-17-pro).
Display window: 8 quarters. Pull window: 12 quarters, so LTM figures and year-over-year comparisons exist wherever they are shown (../metrics-definitions.md Section 1). Discover series without a period filter first (../data-access.md Section 8.2).
Pull:
../kpi-taxonomy.md).Compute LTM revenue, gross profit, gross margin and EPS. The effective tax rate and the diluted share count follow ../valuation-conventions.md.
Price: two different numbers for two jobs.
Units: say which level you have.
Record which path was used in Data Quality; it determines how much weight the margin and sensitivity math can bear.
If the user supplied teardown data, load it first and use the web only for gaps. Otherwise costs come from web research under ../data-access.md Sections 2.5 and 8.6.
Sources, in order of preference: teardown and cost-analysis firms (TechInsights, Counterpoint, Fomalhaut, Omdia, TrendForce); Tier-1 press reporting those estimates; trade press with original reporting. iFixit identifies parts and suppliers but generally does not estimate cost.
For each component capture: name, subsystem, supplier(s), estimated unit cost, basis (sourced / derived / user-supplied), source and date, and which configuration the estimate covers. Aim for 12-25 line items covering at least 85% of the BOM, with the tail grouped as "Other components". Where public data does not reach that, report what is sourced and the costed share, and move on.
Rules for estimates:
| Situation | What to do |
|---|---|
| Two like-for-like estimates disagree (same component, configuration, period) | Show the range, list both sources, use the midpoint |
| Estimates that are not like-for-like (different configuration, date or method; sourced vs. derived) | Do not average. Use the best-matched one, show the others as a range, say why |
| A total is published but line items are not | Use the total; allocate only to components with their own estimate; the rest is "Unallocated (no line-item estimate)" |
| Line items and percentage shares are published but no dollar total | Derive it: total = a sourced line-item cost ÷ that item's published share. Label it "derived (calc.)" and list every derivation with its result. Use the one whose dollar figure and share come from the same source and period; show the spread as the range; do not take a midpoint that an outlier would distort. A component known only by its share is then share × derived total, labelled "est., derived" |
| A component with neither a dollar estimate nor a published share | It stays in "Unallocated". Never invent a line-item cost |
| The newest teardown is for an older generation or over ~18 months old | Use it and flag it prominently: memory and display pricing move materially |
| No credible estimate at all | Say so, produce the reported-side analysis only, and draw the exploded view entirely in the unsourced style or omit it |
Also capture, if published, assembly and test cost and prior-generation estimates (Step 8).
Sourcing status per component (single, dual or multi source) comes from the teardown and from the target's own filings. Read Item 1 and Item 1A of the latest 10-K (../metrics-definitions.md Section 7); use a phrase search only for what those sections do not answer, in filing wording such as "single or limited sources" or "custom components", one phrase per call.
Limit the set to the suppliers of the top 6-8 components by BOM share, costed components first. Look each one up with its own discover_companies call and confirm the returned name.
For those with coverage: display 8 quarters, pull 8 (revenue, gross profit, gross margin as "(calc.)"; LTM revenue at the latest quarter only). Also pull:
Suppliers that are private or not covered stay in the BOM with teardown data only, marked "not covered". List any covered supplier you chose not to pull.
Expert calls (optional). Call get_expert_call_transcripts(company_id) for the target (../data-access.md Sections 1.8 and 8.4). Use views on component pricing, sourcing splits and negotiating leverage as labelled, cited opinion. An expert's number is never a BOM cost input.
All "(calc.)":
Compare the implied margin with the closest reported margin (the product segment's if disclosed, otherwise the company's) and bridge the gap. A teardown BOM always overstates margin because it omits real costs.
| Bridge item | Treatment |
|---|---|
| Assembly, test and packaging | Teardown estimate if published; otherwise unquantified |
| Warranty | Warranty expense ÷ product revenue, if disclosed |
| Freight, logistics, tariffs | Only if a filing quantifies them |
| Royalties and licensing | Only if a filing quantifies them |
| Inventory write-downs, purchase-commitment charges | From Daloopa or filings if disclosed |
| Channel margin | List price vs. blended revenue per unit, where both are known |
| Product mix | Direction only: the teardown covers one configuration |
| Services mix in a company-level margin | Strip services out using segment data |
| Unexplained residual | State it. Do not force the bridge to close |
Quantify only what the data supports and mark the rest "not disclosed" with its expected direction. If the residual is large, say the teardown or the unit and price estimate is probably wrong; do not invent explanations.
For the 5-8 largest costed components (or as many as have a sourced or derived cost) and for total BOM, compute the effect of a cost change of −30%, −20%, −10%, +10%, +20% and +30%, holding price and volume constant:
Head the table with the unit basis; on product-line units, title it "upper bound: assumes the cost change applies across the product line". State the assumptions (no pass-through to price, no volume response, no hedging or long-term supply agreements) and say which is least realistic for this company.
Tie the shocks to reality: where a supplier reports a pricing series, show its actual change over the last 4-8 quarters beside the row, with the basis stated, so the reader can see which shock sizes are plausible.
Include this when a credible prior-generation estimate exists for at least one costed component: prior cost, current cost, dollar and percentage change, supplier changes (design wins and losses, components brought in-house), and total BOM change against the price change if both totals exist. If only some components have prior figures, show those rows and title the table "Partial: {n} of {m} components". Cross-check against the reported margin trend across the two cycles. Omit the section if no prior figure exists.
For each covered supplier, "(calc., est.)":
../metrics-definitions.md Section 9).Compute it only where the supplier's share of the component is sourced or the supplier is the single source. Otherwise show the range implied by the plausible shares, or leave the supplier unranked. Where the supplier discloses the target as a customer, compare: the disclosed figure covers all of the target's products, so it should be at least as large as the single-product estimate. If it is not, say which input is most likely wrong. Flag any supplier for which this product is plausibly over 10% of revenue.
Read references/exploded-view.md before building it. It gives the projection, the part-drawing technique, the label rules, a checked smartphone scaffold and layouts for other product types.
<figure class="chart wide" id="exploded-view">, the template's wide variant, so its 960-unit drawing renders at native size.Assemble all data into reports/{TICKER}_{PRODUCT_SLUG}_bom.json (every reported figure with its id; every cost with value, basis, source and date) and generate the HTML from it with a script (../data-access.md Section 8.1). Copy the <style> block of ../report-template.html verbatim and append the short block below. BOM, bridge and sensitivity tables are not time series, so the columns-are-periods convention does not apply to them (../design-system.md, Table Conventions); the supplier financial tables do follow it.
Report order:
<div class="toolbar"><button type="button" id="print-btn">Download as PDF</button></div>.id="bom-table"): #, Component, Subsystem, Supplier(s), Sourcing, Est. unit cost (range if sources disagree), % of BOM, Basis, Source and date. Costed components first, then "Other components", then "Unallocated". If the total is derived, add a short table of each derivation and which was used.<div id="appendix">): one static <section class="detail" id="detail-c{n}"> per component with its description, every cost source, sourcing status and second sources, and, for a covered supplier, its 8-quarter table (revenue, gross margin, pricing series) with citation links and its estimated dependence on this product.<div id="overlay"><div id="overlay-panel"><button type="button" id="overlay-close" aria-label="Close">×</button></div></div>, then the footer.Interaction. Mark every element that should open a component's detail with data-detail="detail-c{n}": its table row, its bar segment, and its part and label in the exploded view (which also share data-id). Sortable header cells carry data-sortable="text" or data-sortable="num", and numeric cells carry the raw number in data-sort. The "Other" and "Unallocated" rows carry data-fixed so they stay last. This is the same overlay pattern /supply-chain uses: detail sections are static markup that the script moves into the overlay and back.
.toolbar { text-align: right; }
.toolbar button { font: inherit; font-size: var(--fs-small); padding: 6px 12px; border: 1px solid var(--mid-gray); background: #fff; color: var(--navy); border-radius: 4px; cursor: pointer; }
#bom-table th[data-sortable], [data-detail] { cursor: pointer; }
#appendix .detail { display: none; }
#overlay { position: fixed; inset: 0; background: rgba(27, 42, 74, 0.55); display: none; z-index: 10; overflow-y: auto; padding: 32px 16px; }
#overlay.open { display: block; }
#overlay-panel { background: #fff; max-width: 960px; margin: 0 auto; padding: 20px 28px 28px; position: relative; }
#overlay-panel .detail { display: block; }
#overlay-close { position: absolute; top: 10px; right: 14px; font: inherit; font-size: var(--fs-h3); border: 0; background: none; color: var(--dark-gray); cursor: pointer; }
@media print { .toolbar, #overlay { display: none !important; } #appendix .detail { display: block; break-inside: avoid; } }
// Sorting reorders the existing rows; opening detail moves an existing static section. No HTML is built in script.
function sortTable(table, col, numeric) {
var body = table.tBodies[0], dir = table.getAttribute("data-dir") === "asc" ? "desc" : "asc";
var rows = Array.prototype.slice.call(body.rows).filter(function (r) { return !r.hasAttribute("data-fixed"); });
var fixed = Array.prototype.slice.call(body.rows).filter(function (r) { return r.hasAttribute("data-fixed"); });
var key = function (r) {
var c = r.cells[col], v = c.getAttribute("data-sort") || c.textContent;
return numeric ? parseFloat(v) || 0 : v.toLowerCase();
};
rows.sort(function (a, b) { var x = key(a), y = key(b); return (x < y ? -1 : x > y ? 1 : 0) * (dir === "asc" ? 1 : -1); });
rows.concat(fixed).forEach(function (r) { body.appendChild(r); }); // "Other" and "Unallocated" stay last
table.setAttribute("data-dir", dir);
}
function openDetail(id) {
var sec = document.getElementById(id);
if (!sec) return;
closeDetail();
document.getElementById("overlay-panel").appendChild(sec);
document.getElementById("overlay").classList.add("open");
}
function closeDetail() {
var sec = document.getElementById("overlay-panel").querySelector(".detail");
if (sec) document.getElementById("appendix").appendChild(sec);
document.getElementById("overlay").classList.remove("open");
}
document.addEventListener("DOMContentLoaded", function () {
var table = document.getElementById("bom-table");
Array.prototype.forEach.call(table.tHead.rows[0].cells, function (th, i) {
if (!th.hasAttribute("data-sortable")) return;
th.addEventListener("click", function () { sortTable(table, i, th.getAttribute("data-sortable") === "num"); });
});
var openers = document.querySelectorAll("[data-detail]"); // table rows, bar segments, exploded-view parts and labels
Array.prototype.forEach.call(openers, function (el) {
el.addEventListener("click", function () { openDetail(el.getAttribute("data-detail")); });
el.addEventListener("keydown", function (ev) { if (ev.key === "Enter") openDetail(el.getAttribute("data-detail")); });
});
var pairs = document.querySelectorAll(".xv-part, .xv-label"); // hover links a part with its label
Array.prototype.forEach.call(pairs, function (el) {
var set = function (on) {
Array.prototype.forEach.call(document.querySelectorAll('[data-id="' + el.getAttribute("data-id") + '"]'),
function (m) { m.classList.toggle("xv-on", on); });
};
el.addEventListener("mouseenter", function () { set(true); }); el.addEventListener("mouseleave", function () { set(false); });
el.addEventListener("focus", function () { set(true); }); el.addEventListener("blur", function () { set(false); });
});
document.getElementById("overlay-close").addEventListener("click", closeDetail);
document.getElementById("overlay").addEventListener("click", function (ev) { if (ev.target === this) closeDetail(); });
document.addEventListener("keydown", function (ev) { if (ev.key === "Escape") closeDetail(); });
window.addEventListener("beforeprint", closeDetail);
document.getElementById("print-btn").addEventListener("click", function () { window.print(); });
});
DOM safety. JavaScript never writes HTML strings: no innerHTML, outerHTML or document.write. The script above only reorders and moves existing elements. If you add anything, use createElement, textContent, setAttribute and appendChild.
Run the Final Checks in ../design-system.md before saving, and the checks in references/exploded-view.md Section 12. For the arithmetic check: component costs plus Unallocated sum to the total BOM; each derived figure recomputes from its stated inputs; the bridge foots to the reported margin plus the stated residual. Confirm every cost reads "est." with a source and date, and that the print preview shows the appendix.
Save both files and tell the user where the HTML report was saved.
Summarize: the product and configuration analyzed (and why, if you chose it); the total estimated BOM and how much of it is actually costed; implied versus reported margin; the component that matters most to gross margin; and the supplier most dependent on this product. Be direct about reliability: a teardown BOM is a third-party estimate of a number the company never discloses. If most of the BOM is unallocated, say this is a key-component analysis and that user-supplied teardown data would close the gap. If the bridge does not close, units or price were proxied, the total is derived, or the teardown is stale, say so and tell the reader how much weight the sensitivity math can bear.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bom, bill-of-materials, teardown, supply-chain, cost-analysis, gross-margin
npx claudepluginhub daloopa/investing2 --plugin daloopa-investing42 skills in this plugin
/buyer-universePotential acquirer screen with capacity to pay, strategic fit, and likelihood tiersOther plugins' skills for the same job