一键导入
sync-gemini-cli
Sync gmn with upstream Gemini CLI changes and release. Use when checking for upstream updates, syncing versions, or preparing a new release.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Sync gmn with upstream Gemini CLI changes and release. Use when checking for upstream updates, syncing versions, or preparing a new release.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | sync-gemini-cli |
| description | Sync gmn with upstream Gemini CLI changes and release. Use when checking for upstream updates, syncing versions, or preparing a new release. |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Edit, Write, Grep, Glob |
Synchronize gmn (https://github.com/tomohiro-owada/gmn) with the upstream official Gemini CLI (https://github.com/google-gemini/gemini-cli).
/Users/towada/projects/gemini-mini/gmnCompare the current gmn version with the latest official Gemini CLI version:
cd /Users/towada/projects/gemini-mini/gmn
CURRENT_VERSION=$(git describe --tags --abbrev=0 | sed 's/v//')
echo "Current gmn version: $CURRENT_VERSION"
Fetch the latest official Gemini CLI version:
UPSTREAM_VERSION=$(curl -s https://api.github.com/repos/google-gemini/gemini-cli/releases/latest | grep '"tag_name"' | sed -E 's/.*"v([^"]+)".*/\1/')
echo "Upstream Gemini CLI version: $UPSTREAM_VERSION"
If versions match, report "Already up to date with v$CURRENT_VERSION" and exit.
If versions differ:
cd /Users/towada/projects/gemini-mini
# Clone if not exists, otherwise pull
if [ ! -d "gemini-cli-latest" ]; then
git clone https://github.com/google-gemini/gemini-cli.git gemini-cli-latest
else
cd gemini-cli-latest && git pull && cd ..
fi
cd gemini-cli-latest
git log --oneline --no-merges v${CURRENT_VERSION}..v${UPSTREAM_VERSION}
Focus on commits related to:
packages/core/src/code_assist/)Exclude:
For each relevant change:
packages/core/src/code_assist/ → internal/api/ or internal/config/packages/core/src/auth/ → internal/auth/cd /Users/towada/projects/gemini-mini/gmn
go build -o gmn .
./gmn "test"
Ensure:
Create a detailed commit message:
git add .
git commit -m "Sync with official Gemini CLI v${UPSTREAM_VERSION}
Changes from v${CURRENT_VERSION}..v${UPSTREAM_VERSION}:
- [List key changes applied]
- [Reference upstream PR/commit numbers]
Upstream: https://github.com/google-gemini/gemini-cli/releases/tag/v${UPSTREAM_VERSION}
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>"
git tag -a v${UPSTREAM_VERSION} -m "Sync with official Gemini CLI v${UPSTREAM_VERSION}"
git push origin main
git push origin v${UPSTREAM_VERSION}
Check that GitHub Actions release workflow succeeds:
gh run list --limit 3
Wait for completion and verify release was created.
If GoReleaser's automatic Homebrew update fails, manually update:
cd /Users/towada/projects/gemini-mini/homebrew-tap
# Update Formula/gmn.rb with new version and checksums
git add Formula/gmn.rb
git commit -m "Update gmn to v${UPSTREAM_VERSION}"
git push origin main
Provide a summary:
If no changes needed, simply report versions are in sync.