lbp97541135/goai-infra-repomesh/git-delegation
Claude Code and agent skill by lbp97541135/goai-infra-repomesh
- community
Checking that the SKILL.md file is still in the repository.
将所有 git 操作委托给 Manager 执行。Worker 无法直接访问 git credentials,因此任何需要认证的 git 操作(clone、push、fetch 等)都需要通过此机制委托给 Manager。
Install
npx vskill@latest install lbp97541135/goai-infra-repomesh/git-delegationSKILL.md
The same SKILL.md was published earlier as agentscope-ai/hiclaw/git-delegation.
Git Delegation
This skill allows you to delegate any git operation to the Manager. Since Workers don't have access to git credentials, all git commands that require authentication must be delegated.
What Can Be Delegated
Any git command, including but not limited to:
git clone- Clone repositoriesgit fetch/git pull- Fetch/pull from remotegit push- Push to remotegit checkout/git switch- Switch branchesgit branch- Manage branchesgit add/git commit- Stage and commitgit merge- Merge branchesgit rebase- Rebase commits (including interactive)git cherry-pick- Cherry-pick commitsgit reset/git revert- Undo changesgit stash- Stash changesgit tag- Manage tagsgit submodule- Manage submodules- And any other git command...
If git can do it, you can delegate it.
When to Use This Skill vs github-operations
| Task | Use git-delegation | Use github-operations | |
|---|---|---|---|
| Clone repository | ✅ | ||
| Pull/fetch changes | ✅ | ||
| Read/write files | ✅ | ||
| Create/switch branches | ✅ | ||
| Commit/push code | ✅ | ||
| Rebase/cherry-pick | ✅ | ||
| Manage tags | ✅ | ||
| Create PR | ✅ | ||
| Review/merge PR | ✅ | ||
| Comment on PR | ✅ | ||
| Create/update Issue | ✅ |
Message Format
Send a git-request: message to the Manager.
First, get your actual Matrix domain:
Then send (substitute the real domain — do NOT write $AGENTTEAMS_MATRIX_DOMAIN literally):
Fields:
workspace: Directory to work in (parent dir for clone, repo dir for other ops)operations: List of git commands to execute (literally what to run)context: (Optional) What you're trying to accomplish - helps Manager understand intent
Step-by-Step Workflow
1. Check for Processing Marker
Before making changes, check if the task directory is being processed:
2. Prepare Your Request
Write out the git commands you want executed:
3. Wait for Response
Success — git-result:
Failure — git-failed:
4. Sync and Continue
After receiving git-result::
5. Commit and Push
After making local changes:
Local vs Delegated Operations
You can run any git command that doesn't need authentication locally:
Advanced Operations
Interactive Rebase
Cherry-pick
Merge with Strategy
Critical Rules
Plan First, Send Once
Before sending a `git-request:`, plan ALL operations in your head first. Think through the entire workflow — clone, branch, file creation, commit, push — and include everything in a SINGLE request. Do NOT send partial requests and iterate.
Bad (multiple requests, trial-and-error):
Good (one complete request):
Wait Silently After Sending
After sending a git-request:, the Manager needs time to execute the operations. Do NOT:
- Send follow-up messages asking "is it done?"
- Send duplicate or revised
git-request:messages - Try alternative approaches while waiting
- Spawn subagents to work around the wait
Simply wait for the git-result: or git-failed: response. The Manager will reply when done.
Workspace Path Convention
Always use this path pattern:
- For
git clone: set workspace to the parent directory (without repo name) - For all other operations: set workspace to the repo directory (with repo name)
- Never use
/tmpor other arbitrary paths — the Manager syncs via MinIO and needs the workspace under the shared tasks directory
Include Non-Git Commands When Needed
The operations list can include shell commands like mkdir -p, cat > file, cd dir && prefixes. This lets you do everything in one round-trip:
Tips
- One request, all commands: Include clone, branch, file creation, commit, and push in a single request
- Provide context: Help the Manager understand what you're trying to accomplish
- Handle errors: If
git-failed:is returned, read the error and send ONE corrected request - Sync before and after: Always sync to/from MinIO when exchanging workspace with Manager
- Use github-operations for PRs: After pushing, use the MCP tools to create/manage PRs
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcomponents/agentteams/manager/agent/worker-skills/git-delegation/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/lbp97541135/goai-infra-repomesh/git-delegation)