AI & Agentslow risk
metagit-workspace-sync
Sync workspace repositories safely using metagit with scoped fetch, pull, or clone actions. Use when repository content must be refreshed for implementation.
metagit-ai/metagit-cli·.agents/skills/metagit-workspace-sync/SKILL.md
85/ 100品質分
匯入這個 Skill
選擇你的 coding agent,複製專案級或個人級安裝指令。
匯入目前專案.agents/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-workspace-sync -a codex -y匯入個人環境~/.agents/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-workspace-sync -a codex -g -y匯入目前專案.claude/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-workspace-sync -a claude-code -y匯入個人環境~/.claude/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-workspace-sync -a claude-code -g -y匯入目前專案.agents/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-workspace-sync -a github-copilot -y匯入個人環境~/.copilot/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-workspace-sync -a github-copilot -g -y匯入目前專案.agents/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-workspace-sync -a cursor -y匯入個人環境~/.cursor/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-workspace-sync -a cursor -g -y匯入目前專案.agents/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-workspace-sync -a gemini-cli -y匯入個人環境~/.gemini/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/.agents/skills/metagit-workspace-sync -a gemini-cli -g -yNative Gemini CLI
gemini skills install https://github.com/metagit-ai/metagit-cli.git --scope workspace --path .agents/skills/metagit-workspace-sync⚠ 安裝指令使用開源 skills CLI。執行前請檢查來源、腳本與權限。
Skill 指令
在 GitHub 查看原始檔案 ↗# Syncing Workspace Repositories Use this skill when repository state must be updated. ## Workflow 1. Confirm active workspace and target project. 2. Start with read-only status and fetch where possible. 3. Use pull/clone only when required for the current objective. 4. Summarize which repositories changed and what remains stale. ## Commands - `metagit project sync --project <name>` - MCP `metagit_workspace_sync` for batch fetch/pull/clone (`repos`, `only_if`, `dry_run`, `max_parallel`) - MCP `metagit_repo_sync` for a single repository (requires `allow_mutation` for pull/clone) - `./skills/metagit-control-center/scripts/control-cycle.sh [root_path] ["query"] [preset]` ## Output Contract Return: - repositories synced - sync mode used (fetch/pull/clone) - failures and retry guidance ## Safety - Limit sync to repos defined in `.metagit.yml`. - Avoid broad synchronization if only a subset is needed.