Token导航 LogoToken导航

Agent Skill · 研究检索

effective-git(有效的 git)

effective-git 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

effective-git 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为执行命令;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 23,212。

总安装 4,328周安装 184GitHub Stars 公开资料未说明下载 1,516核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install effective-git

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

effective-git 遵循最佳实践的智能 Git 工作流程助手,辅助提交、分析和消息编写。专为 OpenClaw 设计,适用于需要规范版本控制操作的场景。通过 ClawHub 安装,支持自动分析更改、生成提交信息及推送管理功能。使用前需确认权限范围、维护状态,以及是否会触发命令执行或文件修改操作。

建议在受控环境中使用,避免对生产代码造成意外变更。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install effective-git;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

effective-git 怎么安装?

在终端执行 openclaw skills install effective-git。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

effective-git 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

effective-git 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 openclaw skills install effective-git 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

effective-git 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

effective-git 用的人多吗?

公开数据是累计安装 4,328 次,近一周安装 184 次,下载 1,516 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

effective-git 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
effective-git

有效的 git · 本页

4,328—执行命令MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
effective-git
description
Intelligent Git workflow assistant following best practices. Use when user needs help with git commits, analyzing changes, writing commit messages, pushing code, rebasing, merging, or any git operations. Also triggers on quick command prefix 'gq' or 'gq:' for rapid operations like 'gq b:l' (list branches), 'gq b:n name' (create branch), 'gq:s' (status). Automatically analyzes changes, suggests appropriate commit strategies (amend vs new commit), follows project conventions, and ensures safe operations with confirmation for dangerous commands.

Effective Git

Smart Git workflow assistant that helps you commit, push, and manage code changes following best practices.

Getting Help

Quick help: When user asks "gq help", "gq:h", or "git help", run scripts/show_help.sh to display usage guide

Detailed help: When user asks about specific topics:

  • "show me git best practices" → Read references/best-practices.md
  • "how to resolve conflicts" → Read references/conflict-resolution.md
  • "quick commands list" → Read references/quick-commands.md

Usage examples:

  • Use gq <command> for quick operations (status, branch switching, etc.)
  • Use natural language for commits, pushes, merges (full workflow with analysis and safety checks)
  • Examples:

- "gq b:l" → Quick branch list - "help me commit code" → Full commit workflow with analysis - "gq:s" → Quick status - "resolve conflicts" → Full conflict resolution with guidance

Core Workflow

When helping with git operations, follow this sequence:

Quick Operations Mode

For simple, read-only operations or quick checks, use scripts/git_quick.sh:

When user asks for:

  • "list branches" → git_quick.sh b:l
  • "switch to xxx" → git_quick.sh "b->" xxx
  • "create branch xxx" → git_quick.sh b:n xxx
  • "check status" → git_quick.sh s
  • "recent commits" → git_quick.sh l
  • "show changes" → git_quick.sh "d"

- If GIT_QUICK_DIFF_TERMINAL is set, opens in new terminal window - Otherwise uses $PAGER (default: less) - Staged changes: git_quick.sh "d:s"

See references/quick-commands.md for full command list.

Full Workflow Mode

For commits, pushes, merges, and conflict resolution, follow the detailed workflow below:

1. Analyze Recent Changes

Run scripts/analyze_changes.sh to understand:

  • Current branch
  • Uncommitted changes
  • Recent commit history
  • Last commit details

2. Determine Commit Strategy

Check if changes should amend the last commit or create a new one:

Use git commit --amend when:

  • Fixing typos or small issues in the last commit
  • Adding forgotten files to the last commit
  • Last commit hasn't been pushed yet
  • Changes are logically part of the last commit

Use git commit -m "message" when:

  • Changes represent a new logical unit of work
  • Last commit has been pushed
  • Changes are unrelated to the last commit

3. Check Project Conventions

Before writing commit message:

  1. Review recent commit messages: git log --oneline -10
  2. Look for patterns:

- Prefixes (feat:, fix:, chore:, etc.) - Ticket references (#123, JIRA-456) - Emoji usage (✨, 🐛, 📝) - Capitalization style

  1. If unclear, ask user about project conventions

4. Write Commit Message

Follow conventions from references/best-practices.md:

  • Use imperative mood ("Add feature" not "Added feature")
  • Keep subject line under 50 chars
  • Be specific and descriptive
  • Match project conventions discovered above

5. Safe Push Operations

Critical constraint: Only push to current branch.

Before pushing:

  1. Confirm current branch: git branch --show-current
  2. Show what will be pushed: git log origin/$(git branch --show-current)..HEAD --oneline
  3. Ask user to confirm
  4. Push: git push origin HEAD

Never use git push --force without explicit user confirmation.

Dangerous Operations

These require user confirmation before execution:

  • git push --force or git push -f
  • git reset --hard
  • git clean -fd
  • git rebase on shared/public branches
  • git branch -D (force delete)
  • Any history rewriting on pushed commits

Always explain the risk before asking for confirmation.

Conflict Resolution

Critical Principle: When resolving conflicts, the absolute priority is preserving all code. If unable to confidently resolve, you must summarize the issue and feedback to the user. DO NOT perform automatic merges.

Conflict Handling Workflow:

  1. Pre-merge/Rebase Snapshot: Before attempting a merge or rebase, save a snapshot of the current state for documentation and safety.
    scripts/save_diff.sh
    # Also create backup branch
    git branch <current-branch>-backup

This creates a git diff document before the merge.

  1. Detect and Analyze Conflicts: If conflicts arise during a merge or rebase:
    scripts/analyze_conflicts.sh

This provides detailed three-way diff analysis for each conflicted file.

  1. Deep Conflict Analysis: For complex conflicts where both sides modified the same code:

Analyze the intent: - What problem does each version solve? - What functionality does each add/remove/modify? - Is it a bug fix, feature, refactor, or optimization?

Compare approaches: - Do they implement different algorithms? - Do they change APIs or interfaces differently? - What are the trade-offs (performance vs readability, simplicity vs robustness)?

Determine resolution strategy: - Keep Both (Merge): Both changes are valuable and can be combined - Keep Ours: Our change is more complete/correct - Keep Theirs: Their change is more complete/correct - Rewrite: Neither is ideal, create better solution combining insights - Ask User: Cannot decide confidently, need user guidance

  1. Present Analysis to User: When conflicts cannot be resolved automatically, create a structured summary:

- Show both versions of conflicting code - Explain the intent and trade-offs of each - Provide your recommendation with reasoning - Ask for user's decision - See references/conflict-resolution.md for detailed template

  1. Post-Resolution Documentation: After conflicts are resolved:
    # Generate diff of resolution
    git diff --cached > .git/merge-diffs/resolution_$(date +%Y%m%d_%H%M%S).diff
    
    # Show summary
    git diff --cached --stat
  1. Verify No Code Loss: After completing merge/rebase:
    # Compare with backup branch
    git diff <branch>-backup <branch>
    
    # Review carefully for unexpected deletions

Special attention for edge cases:

  • Detached HEAD: Scripts will detect and warn; recommend creating a branch before operations
  • Submodules: Detected and flagged; require special handling (see references/conflict-resolution.md)
  • Large files: Output automatically limited to prevent overwhelming context
  • Rebase to less code: Default to preserving current branch's work (see references/conflict-resolution.md)

Rebase & Merge

Interactive Rebase

# Clean up last N commits
git rebase -i HEAD~N

# Rebase feature branch onto main
git checkout feature-branch
git fetch origin
git rebase origin/main

Merge Strategies

# Standard merge (preserves history)
git merge feature-branch

# Squash merge (single commit)
git merge --squash feature-branch

Common Tasks

Stash Changes

git stash                    # Stash current changes
git stash list              # List stashes
git stash pop               # Apply and remove last stash
git stash apply stash@{0}   # Apply specific stash

Cherry-pick

git cherry-pick <commit-hash>

Undo Changes

git restore <file>          # Discard working changes
git restore --staged <file> # Unstage file
git reset HEAD~1            # Undo last commit (keep changes)

Resources

  • Help script: scripts/show_help.sh (usage guide and examples)
  • Best practices reference: references/best-practices.md
  • Conflict resolution guide: references/conflict-resolution.md (includes detailed analysis framework and templates)
  • Quick commands reference: references/quick-commands.md (shorthand for common operations)
  • Change analysis script: scripts/analyze_changes.sh
  • Conflict analysis script: scripts/analyze_conflicts.sh (deep three-way diff analysis)
  • Save diff script: scripts/save_diff.sh
  • Visualize conflicts script: scripts/visualize_conflicts.sh
  • Quick operations script: scripts/git_quick.sh (fast branch switching, status checks, etc.)

Quick Commands

For rapid git operations, use scripts/git_quick.sh with the gq prefix pattern:

Trigger pattern: When user message starts with gq: or uses git quick command syntax

Common commands:

  • gq b:l or gq:b:l - List branches
  • gq b-> <name> - Switch to branch
  • gq b:n <name> - Create new branch from current
  • gq s - Quick status
  • gq l - Recent commits
  • gq d - Show diff

Usage in conversation:

  • User: "gq b:l" → Run scripts/git_quick.sh b:l
  • User: "gq b-> feature" → Run scripts/git_quick.sh "b->" feature
  • User: "gq:s" → Run scripts/git_quick.sh s

⚠️ Shell quoting rule: Always quote the command argument when calling git_quick.sh to prevent shell misinterpreting special characters. Use git_quick.sh "b->" <branch>, never git_quick.sh b-> <branch> (shell will treat > as redirection).

See references/quick-commands.md for full command list and usage patterns.

Important: Only trigger quick commands when user explicitly uses gq prefix or quick command syntax. Do not auto-trigger for general git questions.

平台分布

OpenClaw

84.44%
按下载量换算1,280

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install effective-git 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills