Knights use the same skillbooks as warriors, bought from Aureus in the barracks.
Rangers skillbooks are bought from the Arrow Vendor on Cyseal market.
There's also a specific ranger skillbook on the doctor (whose building is just "beneath" the arrow vendor).