If an author possessed ruach hakodesh, does that mean all of their books were written through it?
No: possessing ruach hakodesh and writing a particular work through it are distinct. Rabbi Yonatan Eybeschutz cites the sages' discussions about Kohelet and Megillat Esther, even though their authors' spiritual gift is not questioned here. Tehillim, by contrast, is described as a book whose every psalm was composed through ruach hakodesh, including David's thanksgiving for deliverance.
The source brings differing opinions.
Quote from the source«אמנם לא כל מי שהיה בעל רוח הקודש, גם כתב את חיבורו על פי רוח הקודש.»
- Author
- ר' יהונתן אייבשיץ; ר' חיים ויטאל; הרמ"ד וואלי
- Source
- מטעמי תורת חיים — מטעמי תורת חיים — Toldos 5787, p. 3
- Parsha
- Toldot