Token导航 LogoToken导航TokenDH.com
开发权限需确认clawhub未标认证来源可访问clear审计提醒

git-managergit 经理

Agent Skill

git-manager 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 OpenClaw 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,750

周安装

242

GitHub Stars

公开资料未说明

下载量

2,013
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:git-manager(git 经理)
来源仓库:https://github.com/liyico/git-manager
安装命令:
openclaw skills install git-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install git-manager

简介

执行常见的 Git 操作,例如状态、提交、推送、拉取、分支管理以及合并,并提供安全检查和试运行支持。

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

# 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:

{
  "success": true,
  "action": "commit",
  "commit_sha": "abc123def",
  "changed_files": ["src/auth.py", "tests/test_auth.py"],
  "output": "[main abc123] feat: add user auth\
 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)

Examples in OpenClaw Sessions

# Developer session
sessions_spawn(
  task="提交刚才修改的登录页面样式",
  config="configs/developer.yaml",
  attachments=[]
)
# The skill will: git add . && git commit -m "style: improve login page" && git push

Limitations

  • Does not handle merge conflicts automatically (requires human)
  • No rebase interactive (complex history edits)
  • Assumes standard Git flow (no custom hooks)
  • SSH keys must be pre-configured for push/pull

Troubleshooting

IssueCheck
Permission denied (publickey)SSH agent running? ssh-add -l
Not a git repository--repo path correct?
Branch protectedCannot commit to main; create feature branch first
Merge conflictResolve manually; skill only detects conflict

Future Enhancements

  • PR creation via GitHub CLI (gh pr create)
  • Auto-version bump based on commit messages (semantic-release)
  • Branch cleanup (delete merged branches)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.44%
按下载量换算1,881

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

可疑

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills