On the pirate ship. That is genuinely the answer — the skill book is found aboard the vessel itself rather than being handed to you by a character or sold in a shop.
Work through the ship's decks methodically and open every container you pass, since the item is easy to walk straight by if you are rushing toward the exit. If you have already cleared the area, revisit it; missed items stay available on a return trip.