Packs / engineering-public
bill-of-materials-costing
roll up a multi-level bill of materials into total quantities and cost per top-level assembly
Install
logicpacks pack use engineering-public/bill-of-materials-costingget_pack engineering-public/bill-of-materials-costingThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
python-stdlib - Checks: 1 in
outcome/checks.yaml - Code:
bom.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Roll up a multi-level bill of materials into total quantities and cost per top-level assembly.
Steps
- Export the BOM as parent/child/qty and current part costs.
- Run bom.py for the top assembly and build quantity.
- Add labour and overhead separately.
Edge cases
- Any part listed as a parent is treated as an assembly (its own cost is ignored); buy-and-modify parts need their own leaf row.
- Scrap/yield allowances multiply quantities.
Don'ts
- Don't ignore cycles; the script stops on them.
Routes (free first)
python-stdlib:code/bom.py(no install).