Openclawx git-helper
Assists with git operations, such as checking branch status, creating commits, stashing changes, resolving conflicts, or analyzing git history.
install
source · Clone the upstream repo
git clone https://github.com/next-open-ai/openclawx
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/next-open-ai/openclawx "$T" && mkdir -p ~/.claude/skills && cp -r "$T/presets/workspaces/code-assistant/skills/git-helper" ~/.claude/skills/next-open-ai-openclawx-git-helper && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/next-open-ai/openclawx "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/presets/workspaces/code-assistant/skills/git-helper" ~/.openclaw/skills/next-open-ai-openclawx-git-helper && rm -rf "$T"
manifest:
presets/workspaces/code-assistant/skills/git-helper/SKILL.mdsource content
Git Helper Skill
Use this skill to help users manage their Git repositories.
Common Operations
- Status & Changes:
to see current state.git status
orgit diff
to see exact line changes.git diff --cached
- Committing:
to stage.git add <files>- Write clear and descriptive commit messages following conventional commits standard.
- Branching:
to create a new branch.git checkout -b <branch>
to list all branches.git branch -a
- History:
for a compact history view.git log --oneline --graph --decorate -n 10
- Conflict Resolution:
- Use
to identify conflicting files.git status - Ask the user how they wish to resolve the conflict before editing the files.
- Use
Safeguards
NEVER run
git push, git reset --hard, or git clean -fd without EXPLICIT user confirmation via the notify_user tool.