Install
openclaw skills install git-workflows-advancedAdvanced Git operations as tools: interactive rebase with autosquash, worktree management, reflog recovery, subtree/submodule handling, cherry-pick across fo...
openclaw skills install git-workflows-advancedAdvanced Git operations wrapped as tools for OpenClaw agents. These are the operations you do rarely but need to be correct.
Standard git skill covers add/commit/push/status. This skill covers everything else:
All based on battle-tested patterns from ClawHub's git-workflows and pr-commit-workflow.
Start an interactive rebase. Returns the todo list and guidance.
{
"base": "HEAD~5",
"autosquash": true
}
Response includes:
todo_list — the generated todo with current commit hashes and messagesinstructions — how to edit, save, continue, abortCreate a new worktree for a branch, allowing simultaneous work on multiple branches without cloning.
{
"branch": "feature/new-ui",
"path": "/path/to/worktrees/new-ui"
}
Creates directory, checks out branch. Returns new worktree path.
List reflog entries or restore a lost commit.
List:
{ "action": "list" }
Restore:
{
"action": "restore",
"commit_hash": "abc123",
"target_branch": "main"
}
Creates a new branch at that commit or updates existing.
Add another repository as a subtree under a prefix.
{
"repo_url": "https://github.com/user/lib.git",
"prefix": "vendor/lib",
"branch": "main"
}
Runs git subtree add --prefix.
Create a PR on GitHub. Requires human-written title and body (no generation). Uses gh CLI.
{
"title": "Add input validation to user model",
"body": "This fixes the issue where users could submit empty forms. The validation checks for null and empty strings.\n\nTesting: Added unit tests for edge cases.",
"head": "feature/input-validation",
"base": "main",
"draft": false
}
Returns PR URL and number.
Generate a markdown changelog between two tags or from last tag to HEAD.
{
"from_tag": "v1.2.0",
"to_tag": "v1.3.0",
"output_format": "markdown"
}
Outputs grouped commits by type (feat, fix, breaking) if conventional commits used.
gh) for PR creationgh auth loginAll tools are invoked via the registry:
tool("git-workflows-pro", "git_rebase_interactive", {"base": "HEAD~10", "autosquash": true})
tool("git-workflows-pro", "git_worktree_add", {"branch": "feature/foo", "path": "./worktrees/foo"})
tool("git-workflows-pro", "git_pr_create", {"title": "...", "body": "...", "head": "my-branch"})
git_bisect_start, git_bisect_rungit_cherry_pick_across_fork for cross-repo pickgit_merge_conflict_resolution strategiesCommercial. $49 one-time. Includes lifetime updates.
Patterns from ClawHub's git-workflows, pr-commit-workflow, and agent-harness-architect.