Majoring in Philosophy
I personally think majoring in philosophy (including studying it at a graduate school) has helped me improve my writing skills. I use to be a terrible writer (and I still have a huge room for improvement), but I learned how to write more clearly and precisely than before. I also learned how to summarize someone's argument concisely and accurately. What really helped me was that there were professors who cared enough to provide me constructive feedback that I can use to improve myself.
Nonetheless, I do think that I learned more philosophy outside of class from reading Stanford Encyclopedia of Philosophy and philosophy books/articles in my spare time. Philosophy courses
provide you philosophy articles/excerpts that you can discuss in class, but you can easily access them on your own with your school account. Even if you don't have access, you can easily find a lot of philosophy papers uploaded by a professor in his/her own website for fair use.
I would also add that reading philosophy books written for both students and professional philosophers is what really helped me to learn philosophy. For example, Jaegwon Kim's textbook on Philosophy of Mind was written for both students and professional philosophers. In his textbook, he usually tries to represent arguments in their syllogistic form to help us see whether or not it is valid and sound. Moreover, he shows various of ways to "attack" the argument such as arguing that one of the premises is false or one of the premises is making an unwarranted assumption and so on. This helps you learn how argumentation works in philosophy and as you read more you'll eventually pick up pretty fast.