← 返回 Skills 市场
ppopen

Git Manager

作者 pp · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
431
总下载
0
收藏
4
当前安装
2
版本数
在 OpenClaw 中安装
/install openclaw-skill-git-manager
功能描述
Advanced Git operations support for bisecting regressions, cleaning up branches, managing stash workflows, and analyzing commit/history state. Use when users...
使用说明 (SKILL.md)

git-manager

Summary

git-manager orchestrates advanced repository maintenance by combining bisecting, branch cleanup, stash handling, and log analysis into a cohesive guidance skill. It keeps teams safe by pairing every destructive recommendation with an explicit verification or rollback prompt before running commands that rewrite history.

Triggers

  • git manager
  • bisect issue
  • cleanup branches
  • stash help
  • analyze git log
  • safe git ops

Workflow

  1. Assess repository health – start with git status, review git fetch --all, and record the current branch/tag. Prompt the user: "Are we on the branch that should move forward, or is a temporary diagnostic branch mounted?"
  2. Bisect troubleshooting – when isolating regressions, run git bisect start with the known good/bad commits and iteratively test. After each reproduce attempt, ask for confirmation before git bisect good/bad. Offer the safety reminder: "Bisect rewrites HEAD; stash or commit open work first."
  3. Branch cleanup – use git branch --merged versus git branch --no-merged to find stale branches. Recommend git branch -d \x3Cbranch> for merged work and git branch -D only after re-confirming the target branch via a safety prompt to avoid deleting active work.
  4. Stash management – suggest git stash list/git stash show to catalogue hidden work. Encourage naming stashes with git stash push -m "description" and verify the exact entries before git stash drop/pop, reminding the user to keep a copy (git stash branch \x3Cname>) if they need extra safety.
  5. Log analysis – guide through git log --oneline --graph --decorate, git reflog, and git log @{u} to understand recent operations. Offer commands like git show \x3Ccommit> for inspection and highlight the importance of reviewing commit messages before reverting or cherry-picking.
  6. Safety prompts – before destructive commands (e.g., reset --hard, git clean -fd, branch deletion, rebase, push --force), run the two-step destructive confirmation protocol: (1) display the current branch name and HEAD commit hash or tag, verify the target commit, and remind the user to take a backup action (tag, temporary branch, stash, export patch, etc.); (2) require an explicit textual YES reply before running the command. Always pair the recommendation with git status, git log -1, or a git tag snapshot so the user can see exactly what would change, and prefer git push --force-with-lease over --force unless the situation explicitly warrants the risk.

Deliverables

  • Provide step-by-step command sets for diagnostics (bisect, log review, stash recovery).
  • Keep a safety checklist in every response: check HEAD, stash status, remote tracking state, and backup plan (tag or branch) before rewriting history.
  • Offer follow-up summary: what was touched, what is stashed, and what commands to run next for cleanup.
安全使用建议
This skill appears coherent and limited to Git operations, but it assumes git is installed and will propose destructive commands (branch -D, reset --hard, clean -fd, force-push). Before installing: 1) ensure you run it only in repositories where you can safely test; 2) keep automatic/autonomous invocation disabled or ensure the agent enforces the documented two-step confirmation; 3) be aware pushes will use your local Git credentials (the skill doesn't request secrets); and 4) test in a non-critical clone or sandbox to confirm behavior and prompts before using on important repos.
功能分析
Type: OpenClaw Skill Name: openclaw-skill-git-manager Version: 1.0.1 The git-manager skill is designed to assist users with advanced Git operations such as bisecting regressions, branch cleanup, and stash management. The instructions in SKILL.md and README.md emphasize safety protocols, including two-step confirmation and backups before executing destructive commands like 'git reset --hard' or 'git clean -fd'. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
The name/description and SKILL.md consistently focus on bisecting, branch cleanup, stash management, and log/reflog analysis. There are no unrelated environment variables, config paths, or external endpoints requested. One minor mismatch: the skill expects the git binary to be present (it repeatedly instructs running git commands) but the registry metadata lists no required binaries.
Instruction Scope
Instructions are narrowly scoped to repository operations (git status, fetch, bisect, branch deletion, stash operations, reset/clean, push). The skill explicitly requires two-step confirmation before destructive actions and recommends backups (tags/temporary branches/stashes). It does not instruct reading unrelated system files or exfiltrating data. Note: because it directs running commands that affect the working tree/remote, those commands will operate on local files and may trigger network operations (push/pull) using local credential helpers.
Install Mechanism
No install spec and no code files — instruction-only skill. This is low-risk from an installation perspective because nothing is downloaded or written to disk by an installer.
Credentials
The skill requests no environment variables or secrets. This matches its purpose. Caveat: running git push or other network commands will use whatever Git credentials/credential-helper are configured on the host; the skill itself does not request or expose additional credentials.
Persistence & Privilege
always:false and no persistence or config writes. The skill can be invoked autonomously by the agent (default), which is normal — but because it suggests destructive git operations, autonomous execution without user confirmation would be risky; the SKILL.md explicitly requires user YES confirmations before destructive steps.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-skill-git-manager
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-skill-git-manager 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Rename display name to Git Manager
v1.0.0
Initial release: advanced git operations with strong destructive-action safety confirmations.
元数据
Slug openclaw-skill-git-manager
版本 1.0.1
许可证 MIT-0
累计安装 4
当前安装数 4
历史版本数 2
常见问题

Git Manager 是什么?

Advanced Git operations support for bisecting regressions, cleaning up branches, managing stash workflows, and analyzing commit/history state. Use when users... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 431 次。

如何安装 Git Manager?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-skill-git-manager」即可一键安装,无需额外配置。

Git Manager 是免费的吗?

是的,Git Manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Git Manager 支持哪些平台?

Git Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Git Manager?

由 pp(@ppopen)开发并维护,当前版本 v1.0.1。

💬 留言讨论