Xpersona
G

Git Manager

CLAWHUB · Unverified

Perform common Git operations like status, commit, push, pull, branch management, and merge with safety checks and dry-run support. Skill: Git Manager Owner: liyico Summary: Perform common Git operations like status, commit, push, pull, branch management, and merge with safety checks and dry-run support. Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-26T18:46:56.575Z | auto Initial release of git-manager skill. - Safely execute common Git operations: status, commit, push, pull, branch, checkout, merge, stash, log, diff. - Safety features: p

62
Rank
84
Safety
953
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 953 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fyxxpe9v43npymfc8ywdcah83m93q:git-manager
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-liyico-git-manager/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

8,435 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: git-manager
description: Execute common Git operations: status, commit, push, pull, branch management, PR creation. Use when user mentions Git, repository, commit, push, pull, branch, merge, or code versioning. Provides safe, auditable operations with dry-run support.
---

# Git Manager Skill

This skill safely executes common Git commands. It wraps `git` CLI with additional safety checks and structured output.

## Capabilities

- `status` - Show working tree status
- `commit` - Stage changes and commit (with message)
- `push` - Push to remote
- `pull` - Pull from remote (rebase or merge)
- `branch` - Create, list, delete branches
- `checkout` - Switch branches
- `merge` - Merge branches
- `stash` - Stash/apply changes
- `log` - Show commit history
- `diff` - Show changes

## Safety Features

- **No force push** by default (`--force` must be explicit)
- **Protected branches**: Cannot delete or commit directly to `main`/`master`/`production`
- **Dry-run mode**: Preview operations before execution
- **Auto-commit message quality check** (LLM can improve messages)
- **All operations logged** to `~/.openclaw/logs/git-manager.log`

## When to Use

User says:
- "查看Git状态"
- "提交代码"
- "推送到远程仓库"
- "拉取最新代码"
- "创建新分支"
- "合并分支"
- "查看提交历史"

## Invocation

```bash
# Status
git-manager --action status --repo /path/to/repo

# Commit all changes
git-manager --action commit --repo /path/to/repo --message "feat: add user auth"

# Commit specific files
git-manager --action commit --repo /path/to/repo --files [file1,file2] --message "fix: bug in payment"

# Push
git-manager --action push --repo /path/to/repo --branch feature-xyz

# Pull
git-manager --action pull --repo /path/to/repo --branch main

# Create branch
git-manager --action branch --repo /path/to/repo --create new-branch --from main

# Checkout
git-manager --action checkout --repo /path/to/repo --branch feature-xyz

# Diff
git-manager --action diff --repo /path/to/repo --files [file1]
```

## Output Format

JSON with fields:
- `success`: boolean
- `output`: string (raw git output)
- `error`: string (if failed)
- `changed_files`: array (for commit)
- `commit_sha`: string (after commit)
- `branch`: current branch

Example:
```json
{
  "success": true,
  "action": "commit",
  "commit_sha": "abc123def",
  "changed_files": ["src/auth.py", "tests/test_auth.py"],
  "output": "[main abc123] feat: add user auth\n 2 files changed, 45 insertions(+)"
}
```

## Configuration via Environment

- `GIT_MANAGER_LOG`: path to activity log (default `~/.openclaw/logs/git-manager.log`)
- `GIT_MANAGER_DRY_RUN`: set "1" to default to dry-run
- `GIT_MANAGER_PROTECTED_BRANCHES`: comma-separated list (default `main,master,production`)

## Integration with OpenClaw

When used from a developer role session:
- Automatically respects the session's `cwd` as the repo if `--repo` not provided
- Can chain operations: `status` -> `commit` -> `push` in one go
- Suggest commit messages based on `git diff` (if `--message` omitted)

## E

_meta.json

{
  "ownerId": "kn7a5kct5sdn9kck055ann7pk983e4en",
  "slug": "git-manager",
  "version": "1.0.0",
  "publishedAt": 1774550816575
}

skill-card.md

## Description:

Execute common Git operations such as status, commit, push, pull, branch management, PR creation, merge, stash, log, and diff with dry-run support and structured output.

This skill is ready for commercial/non-commercial use.

## Publisher:

[liyico](https://clawhub.ai/user/liyico)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineering agents use this skill to run common Git repository workflows, including status checks, commits, pushes, pulls, branch management, merges, stashes, logs, and diffs. It is intended for controlled workspaces where Git actions can be reviewed and audited.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The packaged entry point can execute unescaped user input through a shell.

Mitigation: Use only in tightly controlled workspaces, review commands before execution, prefer dry-run mode for planned changes, and do not grant access to repositories where injected or unintended commands would be costly.

Risk: The entry point delegates work to a hard-coded executable outside the reviewed package.

Mitigation: Do not rely on the stated safety checks until the executable path and implementation are packaged, reviewed, and argument handling avoids shell interpolation.

Risk: Git operations can change repository history or publish code to remotes.

Mitigation: Avoid use with sensitive credentials or high-value repositories unless repository permissions, protected branches, and human review gates are in place.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/liyico/skills/git-manager)

## Skill Output:

**Output Type(s):** [text, json, shell commands, configuration, guidance]

**Output Format:** [JSON results and concise text guidance for Git command workflows]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include raw Git output, changed files, commit SHA, branch name, errors, and dry-run previews.]

## Skill Version(s):

1.0.0 (source: server release metadata and artifact/skill.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

skill.json

{
  "name": "git-manager",
  "version": "1.0.0",
  "description": "Git 仓库管理工具 - 克隆、拉取、推送、分支管理等操作。",
  "author": "local",
  "license": "MIT",
  "main": "scripts/git_manager.py",
  "scripts": {
    "clone": "scripts/clone_repo.sh",
    "pull": "scripts/pull.sh",
    "push": "scripts/push.sh",
    "branch": "scripts/branch.sh"
  },
  "dependencies": {
    "git": ">=2.0"
  },
  "requirements": [
    "git installed on system"
  ],
  "capabilities": [
    "version-control",
    "git"
  ],
  "permissions": {
    "file_system": {
      "read": [
        "~/.openclaw/workspace/**"
      ],
      "write": [
        "~/.openclaw/workspace/**"
      ],
      "execute": [
        "git"
      ]
    }
  },
  "configuration": {},
  "documentation": "README.md",
  "tags": [
    "git",
    "version-control",
    "repository"
  ]
}

Sponsored

Ads related to Git Manager and adjacent AI workflows.