Umm... have you actually read the 10 commandments? and assume they are all towards public good etc? The first 4 of them are entirely meaningless to a non-christian, 6-9 are blatently obvious to any human being regardless of religion, and 5 and 10 have some serious problems.
1. you shall have no other gods before me
yeah... I don't think that one quite fits a secular government like the united states
2. Thou shalt not make unto thee any graven image
yeah same problem here
3. Don't take the lords name in vain
Uhh.... ok still haven't gotten to anything about the good of humans yet
4. Remember the sabbath day, to keep it holy
Are we seeing a pattern here yet?
5. Honour thy father and thy mother
woo half way through and one with moderate secular value... though also pretty terrible and lacking nuance... we have child abuse laws on the books for a reason
6, 7, 8, 9, Don't kill, commit adultry, steal or bear false witness
ah finally some good reasonable public good commandments that for the most part, aren't bad... admitted any society that didn't figure these basic ones out on their own... would have died out pretty quickly
10. Don't covet your neighbors wife, servants, donkey or other possesions.
not terrible advice... minus the fact that it is phrased in a way, more or less puts a man's wife, donkey and house, are all more or less in the same category.