From d23b219444fa53c34380b21d8b338eda40974f3d Mon Sep 17 00:00:00 2001 From: Kaustav Mishra Date: Fri, 3 Apr 2026 18:57:55 +0530 Subject: [PATCH] docs: update freeze skill to resolve symlinks when saving boundary Change pwd to pwd -P when saving the freeze directory, ensuring that if a user provides a symlink path (e.g., /home/user/project_link), it gets stored as the canonical real path. This prevents the hook from silently blocking edits when the file is accessed via the symlink. Aligns the skill's path resolution with the improved hook behavior. --- freeze/SKILL.md | 4 ++-- freeze/SKILL.md.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/freeze/SKILL.md b/freeze/SKILL.md index abab021c7..14b1a22f8 100644 --- a/freeze/SKILL.md +++ b/freeze/SKILL.md @@ -46,9 +46,9 @@ Ask the user which directory to restrict edits to. Use AskUserQuestion: Once the user provides a directory path: -1. Resolve it to an absolute path: +1. Resolve it to an absolute path (including symlinks): ```bash -FREEZE_DIR=$(cd "" 2>/dev/null && pwd) +FREEZE_DIR=$(cd "" 2>/dev/null && pwd -P) echo "$FREEZE_DIR" ``` diff --git a/freeze/SKILL.md.tmpl b/freeze/SKILL.md.tmpl index 42329c41c..2f69bc662 100644 --- a/freeze/SKILL.md.tmpl +++ b/freeze/SKILL.md.tmpl @@ -45,9 +45,9 @@ Ask the user which directory to restrict edits to. Use AskUserQuestion: Once the user provides a directory path: -1. Resolve it to an absolute path: +1. Resolve it to an absolute path (including symlinks): ```bash -FREEZE_DIR=$(cd "" 2>/dev/null && pwd) +FREEZE_DIR=$(cd "" 2>/dev/null && pwd -P) echo "$FREEZE_DIR" ```