We want:
pref for current in-progress letters
pref for current attunement modifier, and apply in recalculateAdjustments
prefs for whether you have the skills unlocked, set by viewing the skills in-combat or on the skillz.php page
codpiece support: skills, equip codpiece when casting
function...