Install
openclaw skills install @voronindenis5/mattress-spec-decoderUse when shopping for a mattress or decoding one you already own — translates marketing specs into materials science (foam density lb/ft³, ILD, coil type/count/gauge), computes your firmness band from sleep position + BMI, scores durability and real lifespan, decodes warranty sag-thresholds and prorated traps, and compares two mattresses side by side for YOUR body instead of brand marketing.
openclaw skills install @voronindenis5/mattress-spec-decoderMattress shopping is engineered confusion: every retailer gets a different model name for the same bed (so you can't price-compare), and the spec sheet is written in marketing ("UltraCool Gel Infinity Foam!") instead of the four numbers that actually predict performance: foam density, ILD, coil type/count, and layer stack order.
This skill decodes the specs, computes the firmness band your body actually needs, and tells you how many years the mattress will really last.
Don't use for: medical sleep disorders (apnea — see a doctor), or crib/toddler mattresses (different safety rules: firm, tight fit, waterproof).
| Spec | Junk | Good | Excellent | Why |
|---|---|---|---|---|
| Memory foam density | <3.0 lb/ft³ | 3.0–4.0 | >4.0 | Density = lifespan. Low-density foam impressions in 1–2 years |
| Base (poly) foam | <1.5 lb/ft³ | 1.5–1.8 | >1.8 | The support layer nobody advertises — where cheap beds cheat |
| Latex density | — | 4.3–5.3 | 5.9+ | Durable across the board; weight is the tradeoff |
| Coil count (queen) | <300 | 480–900 | >900 is marketing | Returns diminish past ~900; type matters more |
| Coil gauge | 15+ (soft) | 13.5–14.5 | zoned 12.5–15 | Lower gauge = firmer steel |
| ILD/IFD | — | 10–15 soft / 15–25 med / 25+ firm | — | Very rarely published; ask or infer |
# Firmness band for a 78 kg / 175 cm side sleeper
python3 scripts/mattress_advisor.py recommend --position side --weight 78 --height 175
# Couple with different profiles — get the compromise band
python3 scripts/mattress_advisor.py couple --p1 side,62,168 --p2 stomach,95,182
# Decode a spec sheet
python3 scripts/mattress_advisor.py decode --type hybrid \
--memory-density 3.0 --base-density 1.5 --coils 480 --coil-type pocketed
# Compare two mattresses for your profile
python3 scripts/mattress_advisor.py compare --profile side,78,175 \
--a 'name="DreamCloud-ish",type=hybrid,memory_density=4.0,base_density=1.8,coils=850,coil_type=pocketed,price=1100' \
--b 'name="Box-o-Foam",type=foam,memory_density=2.5,base_density=1.3,coils=0,price=500'
# Is the 10-year warranty worth anything?
python3 scripts/mattress_advisor.py warranty --years 10 --prorated --sag-threshold 1.5
# Sagging after 2 years — covered?
python3 scripts/mattress_advisor.py sag --measured 1.75 --threshold 1.5 --years-owned 2
Stdlib-only Python 3. Offline. No brand affiliations.
recommend → your firmness band (1–10), target ILD,
mattress-type candidates, and body-specific warnings (BMI ≥ 30 needs
≥1.8 lb/ft³ base foam or impressions form fast).decode → durability verdict per layer +
expected lifespan + which specs are marketing noise.compare → weighted score for YOUR profile
(support-fit, durability, motion isolation, heat, edge) with the reasoning
printed per criterion.warranty → sag threshold, prorated
schedule math, what voids coverage. sag → verdict for your measured dip.references/buying-playbook.md: same-bed
fingerprinting, floor-model math, delivery-day inspection.Base firmness by position: side 4/10 (shoulder/hip pressure), back 6/10, stomach 7.5/10 (hip sink → spinal extension), combo 6/10. BMI shift: <19 → −1; 25–29.9 → +1; ≥30 → +2 and a hard requirement for high-density support. Couples: take the max firmness of the two profiles and solve pressure relief with a comfort layer (topper), not a softer core — split-core or dual-firmness options if the gap > 1.5 points.
warranty decodes this.recommend run with real weight/height/positioncompare shows reasoning per criterion, not just a scorereferences/mattress-science.md — density/ILD/coil deep dive, layer stack
order effects, heat and off-gassing physics, lifespan tablesreferences/buying-playbook.md — same-bed fingerprinting, negotiation,
delivery inspection, topper-first rescue for an existing mattress