One Render layer with a transparent background and one with sky?
Keep the Sky option on.



Then make two render layers. One with The sky option enabled.



And one without it:



The one with the sky disabled will have a transparent background.