← 返回 Skills 市场
heintonny

Antigravity Bridge

作者 Hein Tonny Køien · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ 安全检测通过
502
总下载
1
收藏
3
当前安装
9
版本数
在 OpenClaw 中安装
/install antigravity-bridge
功能描述
One-directional knowledge bridge from Google Antigravity IDE to OpenClaw. Syncs only .md documentation files from Antigravity projects into OpenClaw workspac...
使用说明 (SKILL.md)

Antigravity Bridge

One-directional knowledge bridge from Google Antigravity IDE to OpenClaw.

Syncs .md files from your Antigravity/Gemini projects into the OpenClaw workspace, where they are natively embedded and indexed for memory_search. No MEMORY.md dumping, no custom state tracking — just files on disk, indexed automatically.

When to Use

  • User says "sync antigravity", "bridge sync", "pull antigravity docs"
  • You need cross-project awareness of Antigravity-managed context
  • After an Antigravity session, to surface new decisions/rules/tasks to OpenClaw
  • Scheduled (cron) to keep the knowledge fresh automatically

When NOT to Use

  • Primary coding work (use Antigravity for that — it has IDE, LSP, deep code awareness)
  • Writing back to Antigravity projects (this is one-way only: Antigravity → OpenClaw)
  • Querying the synced knowledge (just use memory_search — the files are already indexed)

Architecture

Antigravity IDE                  OpenClaw Workspace
─────────────────                ─────────────────────────────
~/repo/acme-corp/acme-platform/
  .agent/memory/       ──rsync──► antigravity/acme-platform/
  .agent/rules/        ──rsync──►   .agent/memory/
  .agent/skills/       ──rsync──►   .agent/rules/
  .agent/sessions/     ──rsync──►   .agent/skills/
  .agent/tasks.md      ──rsync──►   .agent/sessions/
  .gemini/GEMINI.md    ──rsync──►   .agent/tasks.md
  docs/                ──rsync──►   .gemini/GEMINI.md
  *.md (root)          ──rsync──►   docs/
                                    *.md (root)
~/.gemini/antigravity/
  knowledge/           ──rsync──► antigravity/gemini-knowledge/
─────────────────                ─────────────────────────────
                                         │
                                  OpenClaw native embedder
                                  (memorySearch.extraPaths)
                                         │
                                  memory_search queries ✓

Key design decisions:

  • Files land in antigravity/\x3Cproject-name>/ under the OpenClaw workspace destination
  • OpenClaw's native embedder indexes them automatically via memorySearch.extraPaths
  • sync.sh is idempotent — safe to run repeatedly or on cron
  • Source paths that don't exist are skipped gracefully (no failure)

Setup Guide

Step 1: Prerequisites

# rsync (usually pre-installed on macOS/Linux)
rsync --version

# yq — YAML parser (required)
brew install yq          # macOS
# or: sudo apt install yq   # Ubuntu/Debian
# or: snap install yq       # Ubuntu snap
yq --version

Step 2: Copy the config template

cp ~/.openclaw/workspace/skills/antigravity-bridge/config-template.yaml \
   ~/.openclaw/workspace/antigravity-bridge.yaml

Step 3: Edit the config

Open ~/.openclaw/workspace/antigravity-bridge.yaml and configure your projects:

projects:
  - name: acme-platform
    repo: ~/repo/acme-corp/acme-platform
    paths:
      - .agent/memory
      - .agent/rules
      - .agent/skills
      - .agent/tasks.md
      - .gemini/GEMINI.md
      - docs
    include_root_md: true

knowledge:
  - name: gemini-knowledge
    path: ~/.gemini/antigravity/knowledge

destination: antigravity
  • projects — list of Antigravity-managed repos
  • knowledge — standalone knowledge directories (e.g. Gemini's global knowledge store)
  • destination — subfolder within the OpenClaw workspace (default: antigravity)

Step 4: Configure OpenClaw extraPaths

Tell OpenClaw to index the synced directory. In your OpenClaw config (~/.openclaw/config.yaml or equivalent), add:

memorySearch:
  extraPaths:
    - ~/path/to/openclaw/workspace/antigravity

Replace with the actual workspace path. After saving, restart OpenClaw or reload memory indexing.

Step 5: Test with --dry-run

~/.openclaw/workspace/skills/antigravity-bridge/sync.sh --dry-run --verbose

You'll see what would be synced without touching anything.

Step 6: Run for real

~/.openclaw/workspace/skills/antigravity-bridge/sync.sh --verbose

Step 7: Verify with memory_search

After syncing, query OpenClaw memory to confirm indexing:

memory_search: "acme-platform agent rules"
memory_search: "GEMINI.md"

If results come back from the synced files, the bridge is working.


Config Reference

# ~/.openclaw/workspace/antigravity-bridge.yaml

projects:
  - name: \x3Cstring>          # Identifier — used as subfolder name
    repo: \x3Cpath>            # Root of the Antigravity project (~ expanded)
    paths:                  # List of paths relative to repo root
      - .agent/memory       # Directory → recursively sync *.md
      - .agent/tasks.md     # Single file → synced directly
      - docs                # Directory → recursively sync *.md
    include_root_md: true   # Also sync *.md files at repo root (optional, default: false)

knowledge:
  - name: \x3Cstring>          # Identifier — used as subfolder name
    path: \x3Cpath>            # Source path to rsync *.md from (~ expanded)

destination: antigravity    # Target subfolder in OpenClaw workspace
                            # Full path: \x3Cworkspace>/\x3Cdestination>/

Path types:

  • Directory — rsync runs with --include='*.md' --exclude='*' recursively
  • Single file — rsync copies the file directly (must end in .md)

Missing sources: If a configured path doesn't exist, sync.sh logs a warning and skips it. Other paths continue normally. Exit code remains 0.


CLI Reference

sync.sh [options]

Options:
  --config \x3Cpath>      Config file (default: ~/.openclaw/workspace/antigravity-bridge.yaml)
  --project \x3Cname>     Sync only this project (by name)
  --dry-run            Show what would be synced, without making changes
  --verbose            Show rsync output and detailed progress
  --help               Show this help

Examples:

# Sync everything
sync.sh

# Sync one project only
sync.sh --project acme-platform

# Preview without touching files
sync.sh --dry-run --verbose

# Use a custom config
sync.sh --config ~/my-bridge.yaml

Cron Integration

Add to crontab (crontab -e) for automatic syncing:

# Antigravity Bridge — hourly during business hours (Mon-Fri, 08:00-18:00)
0 8-18 * * 1-5 ~/.openclaw/workspace/skills/antigravity-bridge/sync.sh >> ~/.openclaw/logs/antigravity-bridge.log 2>&1

# Nightly full sync (all days, 02:00)
0 2 * * * ~/.openclaw/workspace/skills/antigravity-bridge/sync.sh --verbose >> ~/.openclaw/logs/antigravity-bridge.log 2>&1

Create the log directory first:

mkdir -p ~/.openclaw/logs

Troubleshooting

yq: command not found Install yq: brew install yq (macOS) or see https://github.com/mikefarah/yq

Config file not found Copy the template: cp config-template.yaml ~/.openclaw/workspace/antigravity-bridge.yaml

rsync: command not found Install rsync: brew install rsync (macOS) or sudo apt install rsync

No results from memory_search

  • Check that memorySearch.extraPaths includes the destination folder
  • Restart OpenClaw after changing extraPaths
  • Verify files landed in the right place: ls ~/.openclaw/workspace/antigravity/

Files not updating

  • Run with --verbose to see rsync output
  • Check source paths exist: ls ~/repo/acme-corp/acme-platform/.agent/memory/

Wrong files synced

  • Only .md files are synced (rsync filter: --include='*.md' --exclude='*')
  • To sync other file types, edit sync.sh patterns

Security & Privacy

  • All data stays local. No external API calls, no cloud sync, no network access.
  • Only .md files are synced. rsync filters (--filter='+ *.md' --filter='- *') enforce markdown-only transfer. No secrets, credentials, API keys, binary state, session tokens, or config files are ever copied.
  • .agent/ and .gemini/ directories are Antigravity's documentation folders containing markdown notes about rules, tasks, memory, and project context. They do not contain credentials or sensitive runtime state — those are stored elsewhere by the IDE.
  • sync.sh only reads from user-configured source paths and writes to a designated OpenClaw workspace subfolder.
  • No credentials or tokens required to run.
  • Safe to run with --dry-run to inspect behavior before committing.
  • Dependencies: rsync (system), yq (YAML parser) — both declared in manifest metadata.
安全使用建议
This skill appears to do exactly what it claims: rsync + yq are used to copy only *.md files from configured project and knowledge paths into an OpenClaw workspace subfolder. Before installing/run: 1) run the provided --dry-run to preview what gets copied; 2) inspect repos/knowledge directories for unexpected symlinks or maliciously named files (a symlink named something.md that points outside the repo could lead to unintended content appearing in your workspace); 3) confirm the destination path and memorySearch.extraPaths configuration so indexing only covers the intended files; and 4) prefer running the sync as a user with limited filesystem access or schedule it manually until you’re confident in the configured sources.
功能分析
Type: OpenClaw Skill Name: antigravity-bridge Version: 2.0.1 The antigravity-bridge skill is a local utility designed to sync Markdown documentation from Google Antigravity IDE projects to the OpenClaw workspace for indexing. The core logic in `sync.sh` uses `rsync` with strict inclusion filters (`*.md`) and exclusion rules to ensure only documentation is transferred, effectively preventing the exfiltration of sensitive files like SSH keys or environment variables. The script operates entirely locally, requires no network access, and includes safety features like a dry-run mode and dependency checks for `yq` and `rsync`.
能力评估
Purpose & Capability
Name/description promise (one‑way sync of .md files into OpenClaw) matches the files present and the behavior implemented in sync.sh. Required binaries (rsync, yq) and the brew install for yq are appropriate for YAML parsing and file sync.
Instruction Scope
SKILL.md and setup.md instructions limit operations to reading repository paths and copying only .md files into a destination subfolder of the OpenClaw workspace; the script supports dry‑run and verbose modes and documents configuration and cron usage. There is no instruction to read or send secrets or to write outside the OpenClaw workspace.
Install Mechanism
Install spec uses Homebrew to install yq and expects system rsync; no remote downloads or arbitrary code fetches are present. The script itself is included in the package (no external installer required).
Credentials
No credentials or secrets are requested. The script respects OPENCLAW_WORKSPACE if set (defaults to ~/.openclaw/workspace) but that environment variable is not documented as a required env var in metadata — minor mismatch. Verify the workspace path before running.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or global agent settings, and writes only into the configured OpenClaw workspace destination. Cron setup is optional and user‑initiated.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install antigravity-bridge
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /antigravity-bridge 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
v2.0.1: Declare rsync/yq as dependencies in manifest. Clarify security model — only .md files are synced via rsync filters, no secrets or binary state. Expanded security documentation.
v2.0.0
v2.0.0: Multi-project support, one-directional sync from Antigravity IDE to OpenClaw, native vector indexing via memory_search
v1.2.2
Clarified bridge role: one-directional sync, Antigravity is primary coding agent
v1.2.1
Intelligent next-task workflow: script gathers context, agent reasons, user decides
v1.2.0
**Refined sync workflow and agent responsibilities for better reliability and clarity.** - The sync command now outputs structured JSON with `diff` and `current` sections for precise change tracking and downstream automation. - Clear instructions: agents (not scripts) must read the sync output and update OpenClaw `MEMORY.md` and daily logs accordingly. - Added detailed mapping of what changes should update which memory files, enforcing MEMORY.md as the canonical knowledge sync point. - State tracking file (`antigravity-sync-state.json`) now under `~/.openclaw/workspace/` for robust, precise change detection. - Documentation reworked for brevity, including new agent-side DOs and DON'Ts to ensure best practices.
v1.1.0
Upgraded pick-task to interactive next-task workflow mirroring Antigravity's /next-task. Agent analyzes git log, active tasks, dependencies, and presents 2-3 ranked recommendations.
v1.0.2
JSON resilience across all scripts (handle malformed metadata.json). Path validation in configure.py. Added shared utils module.
v1.0.1
Fix JSON parsing for metadata.json files with trailing markdown artifacts. Add shared utils module.
v1.0.0
Initial release: bidirectional knowledge bridge between OpenClaw and Google Antigravity IDE
元数据
Slug antigravity-bridge
版本 2.0.1
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 9
常见问题

Antigravity Bridge 是什么?

One-directional knowledge bridge from Google Antigravity IDE to OpenClaw. Syncs only .md documentation files from Antigravity projects into OpenClaw workspac... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 502 次。

如何安装 Antigravity Bridge?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install antigravity-bridge」即可一键安装,无需额外配置。

Antigravity Bridge 是免费的吗?

是的,Antigravity Bridge 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Antigravity Bridge 支持哪些平台?

Antigravity Bridge 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Antigravity Bridge?

由 Hein Tonny Køien(@heintonny)开发并维护,当前版本 v2.0.1。

💬 留言讨论