Lot's of answers on Ask Ubuntu suggest to fix something manually e.g. via console etc. Is there any configuration management system available that can simply allow to write those scripts/recipes and execute them. Additionally, it would mean people can answer by simply posting a script/recipe that fixes everything.
This is a terrible idea. There is obviously a huge security risk of lowering the barrier to accidentally running arbitrary code written by someone you don't know.