用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jmagly/aiwg --skill customize-upstream-sync命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| namespace | aiwg |
| name | customize-upstream-sync |
| platforms | ["all"] |
| description | Pull the latest upstream AIWG updates into the user's fork and rebuild — preserves user customizations |
You pull the latest upstream AIWG changes into the user's fork, handle conflicts (preserving user customizations), rebuild, and report what changed. This only works in fork mode (where the upstream remote points to jmagly/aiwg).
| Pattern | Example | Action |
|---|---|---|
| Sync request | "sync my AIWG" | Full upstream sync + rebuild |
| Check only | "what's new in upstream?" | Fetch + diff summary, no merge |
| Update request | "update my fork" | Full upstream sync + rebuild |
When triggered:
Verify fork mode — upstream remote must exist:
git -C <edgePath> remote get-url upstream
If no upstream remote, explain: "This only works if you forked AIWG. Your clone doesn't have an upstream remote. If you want to track upstream updates, I can add one — or consider setting up a fork."
Show what's incoming (before merging):
git -C <edgePath> fetch upstream
git -C <edgePath> log HEAD..upstream/main --oneline
Report: "Here's what upstream has (N commits):" with the log summary.
If check-only ("what's new") — stop here. Don't merge unless user confirms.
Merge:
git -C <edgePath> merge upstream/main
Handle conflicts:
git -C <edgePath> diff --name-only --diff-filter=Ugit -C <edgePath> commit --no-editRebuild and redeploy:
npm --prefix <edgePath> run build
aiwg use all
Push fork (so GitHub fork stays current):
git -C <edgePath> push origin main
Report:
Synced to upstream/main (N commits merged).
What changed upstream:
- New skill: agentic/code/.../new-skill
- Updated agent: agentic/code/.../some-agent.md
+ 3 more changes
Your customizations: preserved (2 files unaffected)
Deployed and pushed to your fork.
When in doubt, keep the user's version and flag it for review.
User: "sync my AIWG"
Action: fetch → log 5 new commits → merge (clean) → build → aiwg use all → push
Response: "Synced — 5 upstream commits merged, 0 conflicts. Your 2 customizations untouched. Rebuilt and pushed to your fork."
User: "what's new in upstream AIWG?"
Action: fetch → git log HEAD..upstream/main --oneline
Response: "Upstream has 3 new commits: [list]. Say 'sync my AIWG' to pull them in."
User: "sync my AIWG"
Action: fetch → merge → conflict in agentic/code/addons/aiwg-utils/agents/aiwg-steward.md (user modified it too)
Response: "Upstream changed aiwg-steward.md which you've also modified. Here's the diff: [diff]. Keep yours, keep upstream's, or merge manually?"