After the long rest. You can cast a spell before a long rest, like "Alarm", benefit from the spell during the long rest, and regain the spell slot after the rest, why not use a skill which gives you PP before the long rest, use them during the long rest, then regain the skill after the long rest?