1) The collapse happens slowly over time, as a slow degradation of services. You'd have decades to adapt.
2) The collapse happens all at once. Almost everyone dies, because there's not enough food and water to go around.
Also, the people fighting over scraps would be the gangsters and warlords. It would be thugs and homicidal teenagers, not middle age former software engineers. We'd be like Ethiopia.
I guess it's possible to form common defense collectives among likeminded people, but I think the more likely outcome is we'd be cowtowing to the local warlord and paying him for our protection. If we didn't die early.
This is how humans have lived for most of our time on this planet.
One man's terrorist is another man's freedom fighter, and one man's warlord is another man's legitimate leadership.
There is also a number of people who would chose to be violent to fight for the scraps of before rather than build what the future requires.
And if you think you’re up to it, you’re probably wildly over estimating yourself.