Fix sandbox errors: use relative paths for cross-project file access
Skills used absolute paths (~/dev/claude/projects/claude-foundations/...) which get blocked by Claude Code's sandbox when running from other projects. Changed to relative paths (../claude-foundations/) with local-first fallback and inline defaults so skills work regardless of sandbox restrictions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,7 +26,7 @@ You are processing session logs into structured, topic-based memory files.
|
||||
!`ls -1 memory/ 2>/dev/null || echo "No memory directory"`
|
||||
|
||||
### Settings
|
||||
!`cat ~/dev/claude/projects/claude-foundations/settings.yaml 2>/dev/null || echo "No settings file found"`
|
||||
!`cat settings.yaml 2>/dev/null || cat ../claude-foundations/settings.yaml 2>/dev/null || echo "No settings file found — using defaults: max_logs_per_run=10, retention_days=7, warn_unreflected_days=14"`
|
||||
|
||||
### Recent git log (for staleness detection)
|
||||
!`git log --oneline -30 2>/dev/null || echo "Not a git repo"`
|
||||
|
||||
Reference in New Issue
Block a user