I had WD40, but I never know it works that way until now.
Yes, there is a gap between the window and shingles, so I caulked around the window. If it still leaks, at least I know it is not the problem of the skylight window.
Other than that, I can not find any apparent problems with the...