Polarity mistakes are brutal because they happen so fast. What saved me was installing an Anderson connector with an inline fuse on the battery positive before anything else—means if you do accidentally reverse it, you blow a fuse instead of your entire system. Cost about a fiver, took five minutes.
The motorhome situation's extra risky because you're working in tight spaces with heavy gauge cable, easy to lose track of which terminal is which. I'd strongly recommend labeling everything with cable tags or heat shrink in different colours—red for positive, black for negative, full stop. Sounds basic but it genuinely works.
If you're rebuilding after this, grab a battery isolator switch rated for your amp-hour capacity. Gives you peace of mind when you're working on the rig, and it's a decent safety feature anyway for when you're parked up for extended periods.
What's your battery bank size? That'll determine whether you need proper breaker protection or if fused disconnects are sufficient.