🤖 Antigravity AI & Rank Radar Automation Guide

How to command Antigravity (AI Coding Assistant) to audit rankings, discover gaps, and optimize your website codebase in a closed loop.

← Back to Rank Radar Dashboard

🔄 The Closed-Loop Workflow (How It Works)

Rank Radar is the sensor & measurement tool (measures local SERP positions, competitors, and low-hanging fruit in Purley/UK).
Antigravity is the engineer & executor (inspects your code, adds JSON-LD schemas, writes meta tags, and creates content).

1
Rank Radar Measures Ground Truth

Scrapes live Google results for your target town/city on mobile & desktop, tracks ranking deltas, and spots keyword opportunities.

2
Antigravity Queries Rank Radar Directly

In chat, you ask Antigravity: "Audit Micro Meadow's rankings using Rank Radar and optimize our codebase." Antigravity executes the CLI bridge to fetch live data.

3
Antigravity Edits the Website Codebase

Antigravity writes Schema.org structured data, rewrites <title> and <h1> tags, adds local service FAQs, and creates landing pages.

4
Verification & Continuous Tracking

Antigravity commands Rank Radar to re-test the queries to verify the optimization and track rank progression.

📋 Ready-to-Use Prompts for Antigravity

Copy and paste any of these prompts into your Antigravity chat window when working on your website:

Option A: Full Campaign Audit & Automatic Code Optimization

Run `node scripts/radar-cli.js project "Micro Meadow"` to inspect our live Google ranking performance and competitor positions. 
Then review our website codebase and implement:
1. Updated <title> and <meta description> tags for any unranked or striking-distance keywords.
2. JSON-LD LocalBusiness and FAQPage schema for our Purley service area.
3. Content sections or landing pages for our unranked keywords (e.g. "microgreens training near me").
4. Provide the exact file edits ready to apply.

Option B: Competitor Reverse-Engineering & Outranking

Run `node scripts/radar-cli.js xray mycrogreens.co.uk --own micro-meadow.com` to see what keywords they rank for that we don't.
Analyze their top ranking phrases and backlink sources, then update our website code with optimized meta tags, a new comparison section, and structured FAQ schema to outrank them.

Option C: Single Keyword Live Check & On-Page Fix

Run `node scripts/radar-cli.js check --domain micro-meadow.com --keyword "microgreens delivery purley" --location "Purley"`.
Check our live rank position and the competitor directly above or below us. Then optimize our landing page's H1, H2s, image alt tags, and opening paragraph to solidify our #1 rank.

⚡ Native CLI Bridge Quick Reference

Antigravity has direct terminal access. It can execute any of these commands on your machine or VPS:

Command Purpose
node scripts/radar-cli.js projects Lists all saved campaigns, tracked keywords, and last check dates.
node scripts/radar-cli.js project "Micro Meadow" Full campaign breakdown: Top 3 champions, quick wins (#4-#20), unranked gaps.
node scripts/radar-cli.js prompt "Micro Meadow" Generates the complete Master SEO prompt tailored with live project data.
node scripts/radar-cli.js check --domain <domain> --keyword <kw> Live geo-targeted rank check on Google (#1–#100) with CTR visibility.
node scripts/radar-cli.js xray <competitor> --own <yoursite> Reverse-engineers competitor rankings, page blueprints, and directory links.

🔘 Web Dashboard 1-Click Prompt Buttons

When you are using the Rank Radar web dashboard, you don't even have to write a prompt: