huangjinlian615-star/hiclaw-test/git-delegation-management
Claude Code and agent skill by huangjinlian615-star/hiclaw-test
- community
Checking that the SKILL.md file is still in the repository.
Execute git operations on behalf of Workers who don't have git credentials. Use when a Worker sends a git-request: message to clone, push, pull, commit, rebase, or perform any git operation.
Install
npx vskill@latest install huangjinlian615-star/hiclaw-test/git-delegation-managementSKILL.md
The same SKILL.md was published earlier as agentscope-ai/hiclaw/git-delegation-management.
Git Delegation Management
This skill enables the Manager to execute any git operation on behalf of Workers. Workers cannot access git credentials, so they delegate all git operations to the Manager.
Prerequisites
The Manager has access to:
- Host's
.gitconfigvia/host-share/.gitconfig(symlinked to/root/.gitconfig) - Git credentials (SSH keys, credential helpers) configured on the host
This allows git operations to use the correct author name, email, and authentication.
Handling git-request: Messages
When a Worker sends a message containing a properly formatted git-request: block (with workspace: and operations: fields), execute the requested operations.
Extract:
task-id: Task identifierworkspace: Path to work in (for clone: parent directory; for other ops: repo directory)operations: List of git commands to execute (literally what to run)context: (Optional) What the Worker is trying to accomplish
Execution Flow
1. Sync and Check Processing Marker
2. Execute Git Commands
Navigate to the workspace and execute the git commands:
You know how to use git. Execute the commands the Worker requests. If something goes wrong (merge conflict, authentication failure, etc.), handle it appropriately.
3. Cleanup and Respond
On success — send to Worker:
On failure — send to Worker:
What Operations Can Be Delegated
Any git operation, including but not limited to:
| Category | Commands | |
|---|---|---|
| Repository | git clone, git init | |
| Branches | git branch, git checkout, git switch | |
| Remote | git remote, git fetch, git pull, git push | |
| Commits | git add, git commit, git reset, git revert | |
| History | git log, git show, git diff | |
| Rebase | git rebase, git rebase -i | |
| Cherry-pick | git cherry-pick | |
| Merge | git merge | |
| Stash | git stash | |
| Tags | git tag | |
| Submodules | git submodule | |
| Config | git config (local to repo) |
If git can do it, the Worker can delegate it.
Error Handling
When git operations fail:
- Read the error message and understand what went wrong
- Try to fix it if it's a simple issue (e.g., set upstream, configure user locally)
- Report to Worker if it requires their action (e.g., merge conflicts, rebasing decisions)
- Escalate to admin if it's a credential or permission issue
Common issues:
- Merge conflicts → Ask Worker to resolve locally
- Authentication failure → Check
/host-share/.gitconfigand credential helper - Branch divergence → Worker may need to pull/rebase first
Integration with Task Coordination
Always use the .processing marker to prevent conflicts when both Worker and Manager might modify the workspace.
Gotchas
- Wait for the actual `git-request:` block — if a Worker says "Let me prepare the git-request" or "I'll delegate git operations", that is a preview, not a request. Do NOT execute any git operations until you receive a message with the structured
workspace:+operations:fields. - Execute git-request immediately when received — when a message contains
git-request:withworkspace:andoperations:fields, you MUST execute the git commands yourself and reply withgit-result:. Workers cannot run git operations — that's why they delegated to you. Never "wait for the Worker to complete" after receiving a git-request; the Worker is waiting for YOUR git-result. - Duplicate git-request after you already executed — if you already completed the git operations for a task and the Worker sends a
git-request:for the same operations, reply withgit-result:confirming the operations were already completed. Do not re-execute or re-verify the repo state. - Ignore superseded requests — if a Worker sends multiple
git-request:messages for the same task before you respond, only execute the LAST one (it is the most complete). Earlier requests were likely incomplete or had wrong paths. - Never delete or overwrite the remote repo — the remote URL (bare repo or GitHub) is shared across phases and Workers. Never
rm -rfa remote path, nevergit init --bareover an existing repo. - git-result is not task completion — after sending
git-result:, the Worker still needs to verify the outcome and report completion (e.g., PHASE_DONE). Do NOT treat a successful git-result as the Worker's task completion signal. Wait for the Worker's explicit completion report before advancing to the next phase.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmanager/agent/skills/git-delegation-management/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/huangjinlian615-star/hiclaw-test/git-delegation-management)