Team collaboration - remote, fetch, pull, push, clone, and team workflows
Performs Git remote operations (clone, fetch, pull, push) and manages repository synchronization. Used when you need to sync with remote repositories, share changes, or check team collaboration status.
/plugin marketplace add pluginagentmarketplace/custom-plugin-git-github/plugin install custom-plugin-git-github@pluginagentmarketplace-git-githubThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/collab_config.yamlreferences/COLLAB_GUIDE.mdscripts/collab_helper.pyProduction-Grade Development Skill | Version 2.0.0
Working with remote repositories and teams.
input:
type: object
properties:
operation:
type: string
enum: [clone, fetch, pull, push, remote, sync-fork]
default: remote
remote_url:
type: string
format: uri
options:
type: object
properties:
force:
type: boolean
default: false
force_with_lease:
type: boolean
default: false
output:
type: object
required: [result, success]
properties:
result:
type: string
success:
type: boolean
remote_status:
type: object
properties:
ahead: integer
behind: integer
retry_config:
max_attempts: 4
backoff_type: exponential
initial_delay_ms: 2000
max_delay_ms: 16000
retryable:
- network_timeout
- connection_refused
non_retryable:
- authentication_failed
- non_fast_forward
fallback:
- trigger: push_rejected_non_ff
action: suggest_pull_rebase
- trigger: authentication_failed
action: guide_credential_setup
# List remotes
git remote -v
# Add remote
git remote add origin https://github.com/user/repo.git
git remote add upstream https://github.com/original/repo.git
# Change remote URL
git remote set-url origin https://github.com/user/new-repo.git
┌─────────────────────────────────────────────────────────────┐
│ FETCH: Remote ──► origin/main (safe, no merge) │
│ PULL: Remote ──► origin/main ──► main (fetch + merge) │
└─────────────────────────────────────────────────────────────┘
| Method | Risk | Use Case |
|---|---|---|
git push | LOW | Normal push |
git push --force-with-lease | MEDIUM | After rebase |
git push --force | CRITICAL | Never on shared |
git clone https://github.com/YOU/repo.git
git remote add upstream https://github.com/ORIGINAL/repo.git
git checkout -b feature-x
# ... work and commit ...
git push -u origin feature-x
# Create PR on GitHub
git fetch upstream
git checkout main
git merge upstream/main
git push origin main
□ 1. Remote configured? → git remote -v
□ 2. Authenticated? → git fetch (test)
□ 3. Branch tracking? → git branch -vv
| Error | Cause | Solution |
|---|---|---|
| "rejected non-fast-forward" | Remote ahead | Pull first |
| "authentication failed" | Bad credentials | Re-authenticate |
logging:
events:
- push_completed
- push_rejected
- authentication_error
metrics:
- push_success_rate
- conflict_rate
"Great software is built by teams, and Git makes collaboration possible."
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.