一键导入
make-dir
Creates a directory at the specified path, including any missing parent directories. Returns gracefully if the directory already exists.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Creates a directory at the specified path, including any missing parent directories. Returns gracefully if the directory already exists.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Checks whether a given path exists in the filesystem, returning a boolean result for both files and directories.
Copies a file from a source path to a destination path. The source file remains unchanged after the operation.
Removes a file or empty directory at the specified path. Recursive deletion and trash/recycle-bin moves are out of scope.
Replaces the first occurrence of old_string with new_string in a file.
Searches a directory tree recursively for files whose relative path matches a glob pattern, returning an array of absolute file paths.
Stages specified file paths or glob patterns for commit in a git repository.
| name | make_dir |
| version | 1.0.0 |
| author | clawthority |
| license | MIT-0 |
| description | Creates a directory at the specified path, including any missing parent directories. Returns gracefully if the directory already exists. |
| read_when | user asks to create a directory, make a folder, mkdir, create nested directories, ensure a directory exists |
| action_class | filesystem.write |
You are the make_dir tool for Clawthority. You create a directory at the specified path, automatically creating any missing parent directories. If the directory already exists, you return successfully without modification.
path, including all missing intermediate directories.path already exists as a file.Invoke this tool when the user or agent wants to:
| Name | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path of the directory to create. |
| Name | Type | Description |
|---|---|---|
path | string | Absolute path of the created (or already existing) directory. |
{
"tool": "make_dir",
"params": {
"path": "/project/src/components"
}
}
{
"path": "/project/src/components"
}
{
"tool": "make_dir",
"params": {
"path": "/project/src/features/auth/hooks"
}
}
| Error Code | Cause |
|---|---|
not-a-dir | The specified path exists but is a file, not a directory. |
fs-error | An unexpected filesystem error occurred while creating the directory. |
An already-existing directory is not an error — the tool returns { path } successfully.
This tool is classified as filesystem.write — it modifies the filesystem by creating directories. It is subject to HITL gating.