一键导入
migrate
Detect and apply native Antigravity CLI skills and MCP migrations from other coding agents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Detect and apply native Antigravity CLI skills and MCP migrations from other coding agents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
[OMAGY] Run an anti-slop cleanup/refactor/deslop workflow
Run read-only deep repository analysis with ranked synthesis, concrete evidence, and explicit Evidence/Inference/Unknown boundaries.
Full OMX-style autonomous pipeline for Omagy: interview, plan, goal execution, optional team, review, and UltraQA.
Professor-critic research workflow with durable Omagy artifacts for agy.
Stateful validator-gated research loop with artifact-gated completion.
[Omagy] Bounded best-practice research wrapper using official/upstream evidence first
| name | migrate |
| description | Detect and apply native Antigravity CLI skills and MCP migrations from other coding agents. |
| argument-hint | <detect|apply|doctor> [--json] |
Use this skill to migrate only native skills and MCP server configuration from other local coding agents into Antigravity CLI's native user configuration.
This command deliberately does not migrate hooks, plugins, commands, agents, or other host-specific extension systems.
The legacy Antigravity IDE profile is treated as a source only for native skills and MCP:
~/.gemini/antigravity-ide/global_skills/
~/.gemini/antigravity-ide/mcp_config.json
Do not migrate legacy IDE brain/, conversations/, annotations/,
browser_recordings/, code_tracker/, knowledge/, prompting/, or protobuf
settings files.
omagy migrate detect --json
omagy migrate apply --input '{"applyToken":"<token-from-detect>"}' --json
omagy migrate doctor --json
detect is read-only. Run this first. It reports raw source records and the
reconciled canonical items that would be written.apply writes only canonical applyable and mergeable items. It skips
review_required and conflict items, and only runs when given the current
applyToken from detect.not_migratable, not review_required. Examples include skills that
rely on OMX/Codex $name workflows, .omx/ files, delegate(...),
run_in_background, ToolSearch, ask_codex, Claude Code paths, or Cursor
host-specific behavior. Report the reason and require manual adaptation.not_migratable, apply may remove that skill only when its
.omagy-migration.json proves it was migration-managed and the current
SKILL.md content has not been user-edited.doctor verifies the migration surface and reports readiness.--yes, --force, or overwrite unmanaged Antigravity user config./omagy:migrate and bare omagy migrate apply must not write anything.ready: all canonical items can be safely applied.partial: some items need review or conflict, but safe canonical items can
still be applied.blocked: no safe canonical items can be applied.empty: no migratable skills or MCP servers were found.Migration writes to Antigravity CLI's native user configuration:
~/.gemini/antigravity-cli/skills/
~/.gemini/antigravity-cli/mcp_config.json
~/.gemini/config/mcp_config.json
MCP is written to both Antigravity CLI's documented CLI config path and the shared Antigravity config path observed in current agy installations. This prevents a false "migration succeeded" result when agy materializes MCP tools from the shared config path.
For bare /omagy:migrate and /omagy:migrate detect:
Run omagy migrate detect --json.
Print the detect summary before any other migration action:
statussummary.sourceRecordssummary.canonicalItemssummary.applyablesummary.mergeablesummary.review_requiredsummary.not_migratablesummary.conflictsInclude both an overall total and a per-source coding agent breakdown. The
per-source breakdown is based on raw source records and must cover codex,
claude, gemini, antigravity-ide, and cursor when present, with
counts for:
Then report canonical reconciliation:
applyable: one source maps cleanly to one Antigravity target.mergeable: multiple sources are equivalent after host-normalization and
will write one canonical target.review_required: same target/logical MCP but different effective content;
do not apply automatically.conflict: Antigravity already has incompatible unmanaged target config;
do not apply automatically.A concise report shape is:
Migration Detection Summary
Overall:
- Status: partial
- Source Records: 48
- Canonical Items: 46
- Applyable: 40
- Mergeable Duplicates: 4
- Review Required: 1
- Not migratable: 5
- Conflicts: 1
By Source:
- codex: 38 source records, 0 not migratable (32 skills, 6 MCP)
- claude: ...
- gemini: ...
- antigravity-ide: ...
- cursor: ...
Mergeable Duplicates:
- mcp omx-state: codex omx_state + claude omx-state + gemini omx-state
Review Required:
- skill omagy-migration-smoke: same target name with different content
Conflicts:
- mcp existing-server: target MCP server already exists with different effective config
State clearly: "No files have been written."
Do not ask an interactive confirmation question.
If summary.applyable + summary.mergeable > 0, end with this next-step hint
and the write targets:
To apply the safe canonical items, run:
/omagy:migrate apply
Applying will write only applyable and mergeable items to:
- ~/.gemini/antigravity-cli/skills/
- ~/.gemini/antigravity-cli/mcp_config.json
- ~/.gemini/config/mcp_config.json
Review-required and conflicted items will be skipped.
If there are review-required or conflicted items, state that those items are skipped and must be resolved manually.
For /omagy:migrate apply:
Run omagy migrate detect --json again and print the same summary.
If summary.applyable + summary.mergeable is 0, do not apply. Explain why.
If status is ready or partial, run:
omagy migrate apply --input '{"applyToken":"<token-from-detect>"}' --json
Do not invent or reuse stale tokens. Use only the current token returned by the immediately preceding detect command.
Run omagy migrate doctor --json after applying.
Tell the user whether Antigravity CLI needs to be restarted to reload newly migrated skills or MCP configuration.
Do not use agy's interactive Question UI for this command. /omagy:migrate
is detect-only; /omagy:migrate apply is the explicit write action.
If review-required or conflicted items are reported:
applyable and mergeable items may still be migrated by apply.