用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-git-github --skill collaboration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Advanced Git - interactive rebase, cherry-pick, bisect, reflog, and power user operations
Daily Git workflow - add, commit, push, pull cycle for everyday development
Git branching strategies - create, switch, merge, rebase, and workflows
基于 SOC 职业分类
正在显示 SKILL.md
| name | collaboration |
| description | Team collaboration - remote, fetch, pull, push, clone, and team workflows |
| sasmp_version | 1.3.0 |
| bonded_agent | git-expert |
| bond_type | PRIMARY_BOND |
| category | development |
| version | 2.0.0 |
| triggers | ["git remote","git push","git pull","team git"] |
Production-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."