Standardize skill contracts, loop pass tracking, and history metadata