← 返回 Skills 市场
mupengi-bot

Git Auto

作者 mupengi-bot · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
785
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install git-auto
功能描述
Git workspace automation (status/commit/push/log/diff)
使用说明 (SKILL.md)

git-auto

Git Workspace Automation — Streamline daily Git operations with intelligent defaults. Status checks, smart commits, safe pushes, and diff analysis in one skill.

When to Use

  • Check workspace status across multiple repos
  • Generate meaningful commit messages from staged changes
  • Push with safety checks (branch protection, conflict detection)
  • View formatted logs and diffs
  • Batch operations across monorepo subdirectories

Commands

status

# Show concise workspace status
git-auto status
# Multi-repo status scan
git-auto status --all

Returns: modified files, untracked files, branch info, ahead/behind count.

commit

# Auto-generate commit message from diff
git-auto commit
# With explicit message
git-auto commit -m "feat: add user auth"
# Commit specific files
git-auto commit -f "src/auth.ts,src/types.ts"

Behavior:

  1. Runs git diff --staged to analyze changes
  2. Generates conventional commit message (feat/fix/refactor/docs/chore)
  3. Validates message format before committing
  4. Shows commit hash and summary

push

# Push current branch with safety checks
git-auto push
# Force push (with confirmation)
git-auto push --force

Safety checks:

  • Warns if pushing to main/master directly
  • Checks for upstream conflicts
  • Verifies remote exists

log

# Last 10 commits, formatted
git-auto log
# Last N commits
git-auto log -n 20
# Filter by author
git-auto log --author "name"

diff

# Staged changes
git-auto diff
# Working directory changes
git-auto diff --unstaged
# Between branches
git-auto diff main..feature-branch

Smart Commit Message Format

Uses Conventional Commits:

  • feat: — New feature
  • fix: — Bug fix
  • refactor: — Code restructuring
  • docs: — Documentation only
  • chore: — Maintenance tasks
  • test: — Adding/updating tests

Integration

Works with any Git repository. No configuration needed — auto-detects .git directory and current branch. Pairs well with code-review skill for pre-commit analysis.

Error Handling

Situation Behavior
Not a git repo Clear error message with suggestion
Merge conflicts Shows conflict files, suggests resolution
No staged changes Prompts to stage or shows unstaged changes
Auth failure Suggests credential refresh
Detached HEAD Warns and suggests creating branch
安全使用建议
This skill is coherent with a git automation tool, but its documentation over-promises and the script will automatically stage (git add -A), commit, and push without the safety checks promised in the docs. Before installing/using: (1) inspect run.sh yourself and test it in a throwaway repo; (2) set WORKSPACE explicitly to a safe test directory (do not rely on the default); (3) be aware it will use your local git credentials to push; (4) avoid running it in repos that might contain secrets (.env, .secrets) because the script does not actually block or scan for them; (5) if you need the promised safety checks (conflict detection, force-push confirmation, multi-repo behavior), request or implement those features before using it on important repositories.
功能分析
Type: OpenClaw Skill Name: git-auto Version: 1.0.0 The skill is classified as suspicious due to critical vulnerabilities stemming from discrepancies between its described safety features and its implementation. The `run.sh` script's `commit` action uses `git add -A` unconditionally, risking the accidental staging and committing of sensitive files, which directly contradicts safety instructions in `GUIDE.md` to prevent this. Additionally, the `push` action in `run.sh` lacks the safety checks (e.g., warnings for pushing to main/master, conflict detection) explicitly described in `SKILL.md`. The `GUIDE.md` also attempts to instruct the AI agent to perform safety checks that are not implemented in `run.sh`, creating a false sense of security and potential for unintended data exposure or repository corruption.
能力评估
Purpose & Capability
The skill name and description claim multi-repo scans, conventional-commit generation/validation, branch-protection and conflict checks, and a force-push confirmation flow. The included run.sh implements only a single-workspace script that cd's to $WORKSPACE and supports basic status/commit/push/log/diff actions. Several claimed features (multi-repo, detailed message generation/validation, conflict detection, force-push confirmation) are not implemented in run.sh — the capability claims exceed the actual code.
Instruction Scope
SKILL.md promises safety checks and sensitive-file protections, but run.sh will run git add -A and git commit -m with automatically generated messages and then git push origin <branch> with no checks for .env/.secrets, no conflict verification, and no --force confirmation handling. The script also relies on a WORKSPACE path (defaulting to $HOME/.openclaw/workspace) and blindly operates there, which could cause unintended commits/pushes if that directory contains important repos or sensitive files.
Install Mechanism
Instruction-only with a small shell script included; there is no install spec or external downloads. Nothing is written to disk by an installer step beyond the provided files.
Credentials
The skill declares no required env vars or credentials, which is consistent. However, run.sh uses $WORKSPACE (defaulting to $HOME/.openclaw/workspace) and will invoke git push, which will use whatever local git credentials/config are present. That implicit use of the user's git credentials is expected for a git tool but is worth noting because pushes will act with the agent's Git identity and auth.
Persistence & Privilege
The skill does not request always:true, has no install actions that modify other skills or system-wide settings, and is user-invocable only by default. It does perform repository writes (add/commit/push) when run, which is normal for a git utility but means it can change user repos when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install git-auto
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /git-auto 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of git-auto — automate and simplify common Git tasks with smart defaults. - Provides commands for status, commit (with message generation), push (with branch safety), log, and diff. - Supports batch and multi-repo operations. - Auto-detects git repositories and integrates with conventional commit standards. - Includes built-in safety checks for push, branch protection, and conflict detection. - User-friendly error handling for common git issues.
元数据
Slug git-auto
版本 1.0.0
许可证
累计安装 3
当前安装数 2
历史版本数 1
常见问题

Git Auto 是什么?

Git workspace automation (status/commit/push/log/diff). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 785 次。

如何安装 Git Auto?

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

Git Auto 是免费的吗?

是的,Git Auto 完全免费(开源免费),可自由下载、安装和使用。

Git Auto 支持哪些平台?

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

谁开发了 Git Auto?

由 mupengi-bot(@mupengi-bot)开发并维护,当前版本 v1.0.0。

💬 留言讨论