返回顶部
g

git-auto

Git workspace automation (status/commit/push/log/diff)

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
704
下载量
0
收藏
概述
安装方式
版本历史

git-auto

# 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 ```bash # 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 ```bash # 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 ```bash # 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 ```bash # Last 10 commits, formatted git-auto log # Last N commits git-auto log -n 20 # Filter by author git-auto log --author "name" ``` ### diff ```bash # 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](https://www.conventionalcommits.org/): - `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 |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 git-auto-1776420047 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 git-auto-1776420047 技能

通过命令行安装

skillhub install git-auto-1776420047

下载 Zip 包

⬇ 下载 git-auto v1.0.0

文件大小: 4.22 KB | 发布时间: 2026-4-17 18:30

v1.0.0 最新 2026-4-17 18:30
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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部