git-delegation

git-delegation is a skill for Claude Code, Codex from agentscope-ai/AgentTeams. It costs 51 tokens per session (2,279 once invoked), scanned A, original, Apache-2.0.

A procedure for sending Git version-control commands to a separate Manager instead of running them directly. Git is the tool used to track code changes and work with repositories.

In plain words
What is it for?
Use it for any Git operation that needs repository access or authentication, including cloning repositories, fetching changes, committing, pushing, and managing branches.
Why use it?
It handles situations where the current worker cannot access Git credentials needed for operations such as cloning, pulling, branching, or pushing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it for any Git operation that needs repository access or authentication, including cloning repositories, fetching changes, committing, pushing, and managing branches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentscope-ai/agentteams/git-delegation
About the project

AgentTeams is a runtime platform where multiple AI agents collaborate in shared Matrix rooms under the coordination of a manager. It is for human-supervised or enterprise workflows that need visible, auditable cooperation among agents running on different runtimes, with shared files and centralized traffic management.

agentscope-ai/AgentTeams · 5,825 stars · on GitHub · aliyun.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add agentscope-ai/AgentTeams --skill git-delegation
Clone the repo
git clone --depth 1 https://github.com/agentscope-ai/AgentTeams

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-delegation

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentscope-ai/agentteams/git-delegation/github.svg)](https://agentmods.dev/skills/agentscope-ai/agentteams/git-delegation)
Your own site
<a href="https://agentmods.dev/skills/agentscope-ai/agentteams/git-delegation"><img src="https://agentmods.dev/badge/skills/agentscope-ai/agentteams/git-delegation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-delegation

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentscope-ai/agentteams/git-delegation"><img src="https://agentmods.dev/badge/skills/agentscope-ai/agentteams/git-delegation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,279 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
SkillSpector: 1 finding, up to low

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • low Excessive Agency · line 13
    Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.
    Fix: Limit the skill's scope to its documented purpose. Remove instructions that enable the agent to perform actions outside its stated functionality.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.02279
Opus 5.5 $0.00020 $0.00912
Sonnet 5.5 $0.00010 $0.00456
Haiku 4.5 $0.00005 $0.00228

Measured 1mo ago against content hash bcaa191579d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-delegation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

manager/agent/worker-skills/git-delegation/SKILL.md · 319 lines

How it starts

The opening of the file, as written. The whole thing — 319 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 repositories
  • git fetch / git pull - Fetch/pull from remote
  • git push - Push to remote
  • git checkout / git switch - Switch branches
  • git branch - Manage branches
  • git add / git commit - Stage and commit
  • git merge - Merge branches
  • git rebase - Rebase commits (including interactive)
  • git cherry-pick - Cherry-pick commits
  • git reset / git revert - Undo changes
  • git stash - Stash changes
  • git tag - Manage tags
  • git 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:

echo $AGENTTEAMS_MATRIX_DOMAIN
# e.g.: matrix-local.agentteams.io:18080

Then send (substitute the real domain — do NOT write $AGENTTEAMS_MATRIX_DOMAIN literally):

@manager:matrix-local.agentteams.io:18080 task-{task-id} git-request:
workspace: /root/agentteams-fs/shared/tasks/{task-id}/workspace/{repo-name}
operations:
  - git clone https://github.com/org/repo.git
  - git checkout -b feature-auth
  - git add .
  - git commit -m "feat: add authentication"
  - git push origin feature-auth
---CONTEXT---
{What you're trying to accomplish}
---END---

Read the full file on GitHub · 319 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 319 lines · 51 tokens per session scan A bcaa191579d2

Subscribe to this mod's changes

git-delegation is a skill published in the GitHub repository agentscope-ai/AgentTeams (5,825 stars, last pushed yesterday), licensed Apache-2.0. It adds 51 tokens to every session and 2,279 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories