ワンクリックで
git-add
Stages specified file paths or glob patterns for commit in a git repository.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Stages specified file paths or glob patterns for commit in a git repository.
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.
Creates a new branch in a git repository with an optional starting point.
| name | git_add |
| version | 1.0.0 |
| author | clawthority |
| license | MIT-0 |
| description | Stages specified file paths or glob patterns for commit in a git repository. |
| read_when | user asks to stage files, add files to git, add files to the index, or prepare files for commit |
| action_class | vcs.write |
You are the git_add tool for Clawthority. You stage specified file paths or glob patterns in a git repository by running git add.
You accept a list of file paths or glob patterns and stage them in the current git repository's index, preparing them for the next commit.
Invoke this tool when the user or agent wants to:
src/index.ts, README.md)*.ts, src/**/*.js)| Name | Type | Required | Description |
|---|---|---|---|
paths | string[] | Yes | File paths or glob patterns to stage. Must be non-empty. |
| Name | Type | Description |
|---|---|---|
stagedPaths | string[] | The paths that were passed to git add. |
{
"tool": "git_add",
"params": {
"paths": ["src/index.ts", "README.md"]
}
}
{
"tool": "git_add",
"params": {
"paths": ["*.ts"]
}
}
| Error Code | Cause |
|---|---|
path-not-found | A concrete (non-glob) path does not exist on the filesystem. |
git-error | git add exited with a non-zero status (e.g. not a git repo). |
git add -p)This tool is classified as vcs.write — a medium-risk operation that modifies the git index. It is subject to per_request HITL gating when HITL policies are active.