Receive and apply updates from the Cursor Agent Factory including skills, knowledge, and agents
Receive and apply updates from the Antigravity Agent Factory including skills, knowledge, and agents
Receive and apply updates from the Antigravity Agent Factory including skills, knowledge, and agents. Supports diff analysis, conflict resolution, and verified application of updates.
import json
from pathlib import Path
def check_for_updates(
factory_url: str,
current_version: str,
) -> dict | None:
"""Check factory for available updates."""
# In practice: GET factory_url/manifest.json
manifest = {
"version": "1.2.0",
"skills": ["skill-a", "skill-b"],
"knowledge": ["patterns.json"],
}
return manifest if manifest["version"] != current_version else None
def compute_diff(local: dict, remote: dict) -> dict:
"""Compute diff between local and remote manifests."""
return {
"added": set(remote.keys()) - set(local.keys()),
"removed": set(local.keys()) - set(remote.keys()),
"modified": [k for k in local if k in remote and local[k] != remote[k]],
}
def resolve_conflicts(
diff: dict,
strategy: str = "prefer_remote",
) -> list[tuple[str, str]]:
"""Resolve conflicts; return list of (path, action)."""
actions = []
for item in diff.get("modified", []):
actions.append((item, "update" if strategy == "prefer_remote" else "keep"))
return actions
def apply_update(
target_path: Path,
content: str,
) -> None:
"""Apply update to file with backup."""
backup = target_path.with_suffix(target_path.suffix + ".bak")
if target_path.exists():
target_path.rename(backup)
target_path.write_text(content, encoding="utf-8")
def verify_update(target_path: Path, expected_checksum: str | None = None) -> bool:
"""Verify applied update is valid."""
if not target_path.exists():
return False
# Add checksum validation if expected_checksum provided
return target_path.stat().st_size > 0
This skill should be used when strict adherence to the defined process is required.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer