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·src/metagit/data/skills/metagit-workspace-sync/SKILL.md
85/ 100品質分

匯入這個 Skill

選擇你的 coding agent,複製專案級或個人級安裝指令。

固定至平台收錄的 commit
匯入目前專案.agents/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/src/metagit/data/skills/metagit-workspace-sync -a codex -y
匯入個人環境~/.agents/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/src/metagit/data/skills/metagit-workspace-sync -a codex -g -y
手動放置目錄.agents/skills/metagit-workspace-syncOfficial docs ↗
匯入目前專案.claude/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/src/metagit/data/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/src/metagit/data/skills/metagit-workspace-sync -a claude-code -g -y
手動放置目錄.claude/skills/metagit-workspace-syncOfficial docs ↗
匯入目前專案.agents/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/src/metagit/data/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/src/metagit/data/skills/metagit-workspace-sync -a github-copilot -g -y
手動放置目錄.agents/skills/metagit-workspace-syncOfficial docs ↗
匯入目前專案.agents/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/src/metagit/data/skills/metagit-workspace-sync -a cursor -y
匯入個人環境~/.cursor/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/src/metagit/data/skills/metagit-workspace-sync -a cursor -g -y
手動放置目錄.agents/skills/metagit-workspace-syncOfficial docs ↗
匯入目前專案.agents/skills/metagit-workspace-sync
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/src/metagit/data/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/src/metagit/data/skills/metagit-workspace-sync -a gemini-cli -g -y
Native Gemini CLIgemini skills install https://github.com/metagit-ai/metagit-cli.git --scope workspace --path src/metagit/data/skills/metagit-workspace-sync
手動放置目錄.agents/skills/metagit-workspace-syncOfficial docs ↗
⚠ 安裝指令使用開源 skills CLI。執行前請檢查來源、腳本與權限。
# 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.