Realpath Tool for Openclaw

A command-line utility for resolving relative file paths and symbolic links into absolute canonical paths.

dinghaibin
v1.0.0
May 2, 2026
0
615
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install realpath-tool

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install realpath-tool using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Realpath Tool?

The Realpath Tool provides a robust way to handle filesystem paths within the Openclaw Skills ecosystem. It converts relative paths and symbolic links into absolute canonical paths, ensuring that your scripts and AI agents always reference the correct file location regardless of the current working directory. This tool is critical for maintaining consistency across different environments and complex directory structures when building with Openclaw Skills.

Realpath Tool Use Cases

  • Resolving relative paths to absolute paths to ensure script reliability.
  • Identifying the true source location of symbolic links within a project.
  • Calculating paths relative to a specific directory for documentation or build tools.
  • Handling missing file paths in pre-execution checks within Openclaw Skills workflows.

How Realpath Tool Works

  1. The tool accepts one or more path strings as input arguments from the user or an agent.
  2. It canonicalizes the path by resolving all dot-references (like . and ..) and symbolic links.
  3. It generates the fully qualified absolute path string.
  4. The tool outputs the result to the console, making it available for subsequent steps in Openclaw Skills automation.

Realpath Tool Setup

To verify the tool is available within your Openclaw Skills environment, you can run the help command:

realpath-tool --help

No complex configuration is required as the tool leverages standard filesystem resolution logic.

Realpath Tool Data Schema & Taxonomy

The Realpath Tool processes path data and returns string-based results. The following schema describes its input and output behavior:

Component Type Description
Input Path String The relative or symbolic path to be resolved.
Absolute Path String The resulting canonical path output.
DIR Reference String The base directory used when calculating relative-to outputs.

Realpath Tool Advanced Features

  • Support for non-existent paths using the -m flag, allowing for path resolution of future resources.
  • Logical path preservation using the -s flag to prevent the expansion of symbolic links.
  • Comparative path generation using the --relative-to argument to find the path from one directory to another.
  • Batch processing capability to resolve multiple paths in a single command execution for Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*