360 Secure SkillHub
360 安全技能中心

antigravity-cli

提供 Google Antigravity CLI(二进制名 agy)的使用指导:一次性提示与交互式 TUI 会话、会话恢复、工件评审、插件与 MCP 配置、沙箱与细粒度权限、设置文件路径及从 Gemini CLI 迁移,并附带命令示例、风险提示和常用排错建议。

wei840222
wei840222
热度 87.75
最近更新 2026-08-15 18:10:58
分类:开发依赖:代码执行 / 读写文件应用场景:工作流 / 自动化脚本 / 代码生成 / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add antigravity-cli
Metadata
name
antigravity-cli
description
Use this skill when the user wants to run, configure, troubleshoot, or explain Google Antigravity CLI (`agy`), including one-shot prompts, interactive TUI sessions, conversation resume, artifact review, plugin management, slash commands, keybindings, sandbox/permissions, settings files, or migration from Gemini CLI.
metadata
{"openclaw":{"emoji":"🪂","requires":{"bins":["agy"]}}}

Antigravity CLI

Use this skill for Google Antigravity CLI, whose binary is agy. Do not call it antigravity in commands.

Default workflow

  1. Determine whether the user needs non-interactive automation, interactive TUI help, configuration, artifact review, plugin work, or migration.
  2. Prefer agy --print for scriptable one-shot tasks and agy / agy --prompt-interactive for live TUI workflows.
  3. Check the local binary before giving command-specific guidance when possible:
    agy --help
    agy version
    
  4. For risky work, keep sandboxing and permission prompts enabled. Do not suggest --dangerously-skip-permissions unless the user explicitly wants that risk and the workspace is trusted.
  5. When changing settings, prefer the TUI /config, /permissions, /model, /keybindings, or /mcp commands. Edit JSON files directly only when the TUI path is unavailable or the user asks for file-level changes.

References

Load only the relevant reference:

  • references/cli-usage.md: one-shot mode, conversation resume, common flags, subcommands, plugins, and install/update basics.
  • references/overview-workflows.md: CLI vs Antigravity 2.0 positioning, integration model, and best-practice workflow patterns.
  • references/tui.md: interactive TUI, slash commands, keybindings, prompt composition, and interaction tips.
  • references/artifacts.md: artifact review workflow, approvals/rejections, media drawer, and safe review defaults.
  • references/security-permissions.md: sandbox, fine-grained permissions, approval presets, and risky-command guidance.
  • references/config-platform.md: settings paths, plugins, MCP config, skills paths, auth, SSH, Antigravity 2.0 integration, and migration notes.

Gotchas

  • --prompt is an alias for --print; it does not keep the session interactive.
  • --model is supported on CLI for session model selection, and models can also be selected inside the TUI with /model or listed via agy models.
  • agy --continue resumes the most recent conversation; use agy --conversation <id> for a specific session.
  • Plugin management is under agy plugin ...; local Agent Skills live separately in skill paths.
  • Artifact review is interactive; for headless automation, design prompts to ask for patch summaries or command output instead of relying on the review panel.