pub fn write_lock( repo_root: &Path, locked: &BTreeMap<String, LockEntry>, ) -> Result<(), SkillfileError>
Write lock entries to Skillfile.lock with sorted keys, 2-space indent, trailing newline.
Skillfile.lock