To sneak into the stables go to the side of the stables and climb up the the platform near the left corner of the stables:
Climb up to the roof and go through the door. Climb down the ladder and pick up the key next to the sleeping guard. Use the key to let Ciri in.