Source profileQuality 87/100Review permissions

agentscope-ai/AgentTeams/manager/agent/worker-skills/git-delegation/SKILL.md

git-delegation

Use it for operations tasks; the detail page covers purpose, installation, and practical steps.

Source repository stars
5,317
Declared platforms
0
Static risk flags
3
Last source update
2026-08-06
Source checked
2026-08-06

Decision brief

What it does—and where it fits

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.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/agentscope-ai/AgentTeams --skill "manager/agent/worker-skills/git-delegation"
    Safe inspection promptEditorial

    Inspect the Agent Skill "git-delegation" from https://github.com/agentscope-ai/AgentTeams/blob/062f1c8d7edd54ceaa2141862dd98a75c36c6980/manager/agent/worker-skills/git-delegation/SKILL.md at commit 062f1c8d7edd54ceaa2141862dd98a75c36c6980. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Step-by-Step Workflow

      Before making changes, check if the task directory is being processed:

      Before making changes, check if the task directory is being processed:
    2. 02

      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 remote
    3. 03

      When to Use This Skill vs github-operations

      Review the “When to Use This Skill vs github-operations” section in the pinned source before continuing.

      Review and apply the “When to Use This Skill vs github-operations” source section.
    4. 04

      Message Format

      Send a git-request: message to the Manager.

      Send a git-request: message to the Manager.First, get your actual Matrix domain: bash echo $AGENTTEAMSMATRIXDOMAIN
    5. 05

      e.g.: matrix-local.agentteams.io:18080

      @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 authent…

      git clone https://github.com/org/repo.gitgit checkout -b feature-authgit add .

    Permission review

    Static risk signals and limitations

    Network access

    medium · line 11

    The documentation includes network, browsing, or remote request actions.

    `git fetch` / `git pull` - Fetch/pull from remote

    Network access

    medium · line 63

    The documentation includes network, browsing, or remote request actions.

    git clone https://github.com/org/repo.git

    Runs scripts

    medium · line 117

    The documentation asks the agent to run terminal commands or scripts.

    Git operations completed successfully.

    Runs scripts

    medium · line 126

    The documentation asks the agent to run terminal commands or scripts.

    Git operation failed: {error message}

    Writes files

    medium · line 262

    The documentation asks the agent to create, modify, or delete local files.

    Complete workflow: clone, branch, create file, commit, push

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score87/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars5,317SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    agentscope-ai/AgentTeams
    Skill path
    manager/agent/worker-skills/git-delegation/SKILL.md
    Commit
    062f1c8d7edd54ceaa2141862dd98a75c36c6980
    License
    Apache-2.0
    Collected
    2026-08-06
    Default branch
    main
    View the original SKILL.md

    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

    TaskUse git-delegationUse 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---
    

    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:

    # Sync from MinIO
    mc mirror "${AGENTTEAMS_STORAGE_PREFIX}/shared/tasks/{task-id}/" \
      "/root/agentteams-fs/shared/tasks/{task-id}/"
    
    # Check for processing marker
    if [ -f "/root/agentteams-fs/shared/tasks/{task-id}/.processing" ]; then
        echo "Task directory is being processed. Wait for manager to complete."
    fi
    

    2. Prepare Your Request

    Write out the git commands you want executed:

    @manager:DOMAIN task-20260225 git-request:
    workspace: /root/agentteams-fs/shared/tasks/task-20260225/workspace
    operations:
      - git clone https://github.com/agentscope-ai/AgentTeams.git
      - cd agentteams && git checkout -b feature-xyz
    ---CONTEXT---
    Starting work on feature XYZ
    ---END---
    

    3. Wait for Response

    Successgit-result:

    @alice:DOMAIN task-20260225 git-result:
    Git operations completed successfully.
    Cloned to: /root/agentteams-fs/shared/tasks/task-20260225/workspace/agentteams
    Created branch: feature-xyz
    Run `agentteams-sync` to sync.
    

    Failuregit-failed:

    @alice:DOMAIN task-20260225 git-failed:
    Git operation failed: {error message}
    {Suggestion for how to fix}
    

    4. Sync and Continue

    After receiving git-result::

    # Sync from MinIO
    agentteams-sync
    
    # Now you can work locally
    cd /root/agentteams-fs/shared/tasks/task-20260225/workspace/agentteams
    
    # Read files, modify files, etc.
    cat src/main.py
    # ... make changes ...
    
    # When ready to commit, sync to MinIO first
    mc mirror "/root/agentteams-fs/shared/tasks/task-20260225/" \
      "${AGENTTEAMS_STORAGE_PREFIX}/shared/tasks/task-20260225/" --overwrite
    

    5. Commit and Push

    After making local changes:

    @manager:DOMAIN task-20260225 git-request:
    workspace: /root/agentteams-fs/shared/tasks/task-20260225/workspace/agentteams
    operations:
      - git add .
      - git commit -m "feat: implement feature XYZ"
      - git push origin feature-xyz
    ---CONTEXT---
    Completed implementation of feature XYZ
    ---END---
    

    Local vs Delegated Operations

    You can run any git command that doesn't need authentication locally:

    # These work locally (no auth needed):
    git status
    git log
    git diff
    git branch
    git diff --staged
    
    # These require delegation (need auth):
    git clone https://github.com/...
    git push
    git fetch
    git pull
    

    Advanced Operations

    Interactive Rebase

    @manager:DOMAIN task-20260225 git-request:
    workspace: /root/agentteams-fs/shared/tasks/task-20260225/workspace/agentteams
    operations:
      - git rebase -i HEAD~3
    ---CONTEXT---
    Squashing the last 3 commits into one
    ---END---
    

    Cherry-pick

    @manager:DOMAIN task-20260225 git-request:
    workspace: /root/agentteams-fs/shared/tasks/task-20260225/workspace/agentteams
    operations:
      - git cherry-pick abc123def
    ---CONTEXT---
    Cherry-picking fix from main branch
    ---END---
    

    Merge with Strategy

    @manager:DOMAIN task-20260225 git-request:
    workspace: /root/agentteams-fs/shared/tasks/task-20260225/workspace/agentteams
    operations:
      - git merge feature-xyz --no-ff -m "Merge feature XYZ"
    ---CONTEXT---
    Merging feature branch with merge commit
    ---END---
    

    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):

    # Request 1: just clone
    git-request: clone repo...
    # Wait... then Request 2: create branch
    git-request: checkout branch...
    # Wait... then Request 3: add files and push
    git-request: add, commit, push...
    

    Good (one complete request):

    git-request:
    workspace: /root/agentteams-fs/shared/tasks/{task-id}/workspace
    operations:
      - git clone /path/to/repo.git
      - cd repo && git config user.name "alice"
      - cd repo && git config user.email "[email protected]"
      - cd repo && git checkout -b feature/my-branch
      - mkdir -p repo/docs
      - 'cat > repo/docs/file.md << "EOF"
    file content here
    EOF'
      - cd repo && git add docs/file.md
      - cd repo && git commit -m "feat: add file"
      - cd repo && git push origin feature/my-branch
    ---CONTEXT---
    Complete workflow: clone, branch, create file, commit, push
    ---END---
    

    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:

    /root/agentteams-fs/shared/tasks/{task-id}/workspace/{repo-name}
    
    • 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 /tmp or 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:

    operations:
      - git clone https://github.com/org/repo.git
      - cd repo && git checkout -b feature/xyz
      - mkdir -p repo/src
      - 'cat > repo/src/main.py << "EOF"
    print("hello")
    EOF'
      - cd repo && git add .
      - cd repo && git commit -m "feat: add main"
      - cd repo && git push origin feature/xyz
    

    Tips

    1. One request, all commands: Include clone, branch, file creation, commit, and push in a single request
    2. Provide context: Help the Manager understand what you're trying to accomplish
    3. Handle errors: If git-failed: is returned, read the error and send ONE corrected request
    4. Sync before and after: Always sync to/from MinIO when exchanging workspace with Manager
    5. Use github-operations for PRs: After pushing, use the MCP tools to create/manage PRs

    Alternatives

    Compare before choosing

    Computed 10023,881

    alirezarezvani/claude-skills

    app-store-optimization

    App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

    Computed 10014,540

    prowler-cloud/prowler

    postgresql-indexing

    PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance

    Computed 10014,306

    wanshuiyin/Auto-claude-code-research-in-sleep

    citation-audit

    Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.

    Computed 1004,969

    dotnet/skills

    migrate-vstest-to-mtp

    Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing