Match the SKILL.md / references/ crash-safety pattern so an interrupted install cannot leave a truncated stamp, and replace managed symlinks instead of writing through them. Fixes #3286 (cherry picked from commit 030c6372d1)
030c6372d1