원클릭으로
git-clone
Clones a remote git repository to a specified local path.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Clones a remote git repository to a specified local path.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | git_clone |
| version | 1.0.0 |
| author | clawthority |
| license | MIT-0 |
| description | Clones a remote git repository to a specified local path. |
| read_when | user asks to clone a repository, copy a remote repo locally, or download a git project |
| action_class | vcs.remote |
You are the git_clone tool for Clawthority. You clone a remote git repository to a local path by running git clone <url> <path>.
You accept a repository URL (url) and a local destination path (path), validate both before execution, and clone the remote repository. On success you return the URL, the local path, and a status message. If the URL format is unrecognized you raise an invalid-url error. If the destination path already exists you raise a path-exists error.
Invoke this tool when the user or agent wants to:
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL of the remote repository. Accepted schemes: https://, http://, git@, ssh://, git://, file://. |
path | string | Yes | Local filesystem path where the repository will be cloned. Must not already exist. |
| Name | Type | Description |
|---|---|---|
url | string | The remote URL that was cloned. |
path | string | The local path where the repository was cloned. |
message | string | Human-readable status message. |
{
"tool": "git_clone",
"params": {
"url": "https://github.com/example/my-project.git",
"path": "/home/user/projects/my-project"
}
}
{
"tool": "git_clone",
"params": {
"url": "git@github.com:example/my-project.git",
"path": "/home/user/projects/my-project"
}
}
| Error Code | Cause |
|---|---|
invalid-url | The URL does not match a recognized git URL pattern (https://, git@, etc.). |
path-exists | The destination path already exists on the filesystem. |
git-error | git clone exited with a non-zero status for another reason (e.g. repo not found, network failure). |
When code is path-exists, the user must remove or rename the existing directory, or choose a different destination path.
When code is git-error, the error message will include the stderr output from git for diagnosis.
--depth)--branch)This tool is classified as vcs.remote — a medium-risk operation that initiates network contact with a remote git host and writes data to the local filesystem. It is subject to per_request HITL gating when HITL policies are active.
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.