Has anybody experimented with some behavioral scripts to treat mental illness

When I was in my auto in America and I heard voices and had some psychological issues, I started experimenting with some behavioral scripts to counter f.ex. depression or to maintain a certain state of mind.

In my notebooks I have many behavioral scripts I documented 14 years ago. F.ex. one for countering depression could be:

  1. What is causing / triggering my depression?
  2. Do I understand real root causes of these trigger?
  3. Are these triggers real or delusions /imaginary?
  4. What can I do to eliminate these root causes?
  5. Can I do this alone or do I need some help?
  6. What can I do to prevent these triggers coming up again in the future?
  7. If I can not eliminate root causes, can I live with these without feeling depressed?
  8. How can I be more positive in my life, to feel better?