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,复制项目级或个人级安装命令。

固定到平台收录的 commit
导入当前项目.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
手动放置目录.agents/skills/metagit-workspace-syncOfficial docs ↗
导入当前项目.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
手动放置目录.claude/skills/metagit-workspace-syncOfficial docs ↗
导入当前项目.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-syncOfficial docs ↗
导入当前项目.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-syncOfficial docs ↗
导入当前项目.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 -y
Native Gemini CLIgemini skills install https://github.com/metagit-ai/metagit-cli.git --scope workspace --path .agents/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.