use-grealpath
Installation
SKILL.md
Use grealpath for Path Operations
Rule (CRITICAL)
ALWAYS use grealpath command for:
- Calculating relative paths between files/directories
- Converting relative paths to absolute paths
- Resolving symbolic links to absolute paths
Relative Path Calculation
Use grealpath --relative-to=<base> to calculate relative paths:
# Calculate relative path from base directory to target
grealpath --relative-to=/home/user /home/user/test
# Output: test
Related skills