From totto2727
This skill should be used when performing path operations across platforms. Relevant when the user asks to calculate relative paths, convert to absolute paths, or resolve symbolic links. Common triggers: "relative path", "absolute path", "resolve symlink", "realpath", "grealpath", "path calculation".
npx claudepluginhub totto2727-org/monorepo --plugin totto2727This skill uses the workspace's default tool permissions.
| Platform | Command | Notes |
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
| Platform | Command | Notes |
|---|---|---|
| macOS | grealpath | Requires GNU coreutils (brew install coreutils). See macos-cli-rules for full GNU coreutils usage. |
| Linux | realpath | Available by default in GNU/Linux. |
All examples below use realpath. On macOS, replace every realpath with grealpath.
ALWAYS use realpath for:
NEVER manually calculate relative paths, use cd/pwd combinations, or use string manipulation for paths.
Use realpath --relative-to=<base> to calculate relative paths:
# Calculate relative path from base directory to target
realpath --relative-to=/home/user /home/user/test
# Output: test
# Calculate relative path from current directory
realpath --relative-to=. ./subdir/file.txt
# Output: subdir/file.txt
# Calculate relative path between two specific paths
realpath --relative-to=/path/to/base /path/to/base/subdir/file.txt
# Output: subdir/file.txt
# Convert relative path to absolute path
realpath ./subdir/file.txt
# Output: /home/user/project/subdir/file.txt
# Resolve symbolic links to absolute paths
realpath symlink
# Output: /home/user/project/actual/path
--relative-to option is a GNU extension — BSD realpath does not support it. and .. components)