auto-index

Google Indexing API tool. Use when user wants to submit URLs for Google indexing. Supports two modes: "auto-index" (fetch sitemap, diff against cache, submit new URLs) and "index-now" (submit specific URLs immediately). Requires a Google Cloud service account JSON key with Indexing API enabled and Search Console ownership.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "auto-index" with this command: npx skills add asenwang/auto-index

Auto-Index — Google Indexing API

Submit URLs to Google for fast indexing via the Google Indexing API.

Prerequisites

  1. Google Cloud Project with the Indexing API enabled
  2. Service Account with a downloaded JSON key file
  3. Google Search Console — add the service account email as an Owner of the property

Environment

VariableRequiredDescription
GOOGLE_INDEX_SA_KEYYes (or --sa-key)Absolute path to service account JSON key file

How to Invoke

Run using uv run with the script's absolute path. The script directory is relative to the skill root.

auto-index — Sitemap diff

Fetches a sitemap, compares against a local cache, and submits only new URLs.

uv run scripts/google_index.py auto-index --sitemap "https://example.com/sitemap.xml"

Force re-index all URLs (ignore cache):

uv run scripts/google_index.py auto-index --sitemap "https://example.com/sitemap.xml" --force

index-now — Submit URL(s) immediately

uv run scripts/google_index.py index-now --url "https://example.com/new-page"

Multiple URLs:

uv run scripts/google_index.py index-now -u "https://example.com/page1" -u "https://example.com/page2"

Notify URL deletion:

uv run scripts/google_index.py index-now --url "https://example.com/old-page" --delete

CLI Reference

auto-index

FlagDescription
--sitemap, -s(required) Sitemap URL to fetch
--sa-key, -kPath to service account JSON key (overrides env)
--force, -fRe-index all URLs, ignoring cache

index-now

FlagDescription
--url, -u(required) URL to submit — repeatable for multiple URLs
--sa-key, -kPath to service account JSON key (overrides env)
--delete, -dNotify deletion instead of update

Output Format

Both commands output structured JSON:

{
  "meta": {
    "action": "auto-index",
    "sitemap": "https://example.com/sitemap.xml",
    "timestamp": "2026-03-02T02:50:00+00:00",
    "total_in_sitemap": 42,
    "new_urls": 5,
    "submitted": 5,
    "success": 5,
    "failed": 0
  },
  "results": [
    {
      "url": "https://example.com/new-page",
      "status": 200,
      "notifyTime": "2026-03-02T02:50:01.123Z"
    }
  ]
}

Cache

Sitemap URL cache is stored at ~/.cache/auto-index/sitemap-cache.json. This allows auto-index to only submit URLs that are new since the last run.

Delete the cache file to reset:

rm ~/.cache/auto-index/sitemap-cache.json

Quota

Google Indexing API allows 200 requests/day. The script auto-caps at this limit and logs a warning if exceeded.

Common Failures

ErrorFix
No service account key providedSet GOOGLE_INDEX_SA_KEY env or pass --sa-key
Service account key file not foundCheck the file path
403 / Permission deniedEnsure the SA email is an Owner in Search Console
429 / Quota exceededWait 24h or request quota increase in Cloud Console
No URLs found in sitemapCheck the sitemap URL is valid and accessible

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

SEO Content Optimizer

Optimize articles and web pages with keyword strategy, title/meta tags, content structure, and on-page SEO to improve organic search rankings.

Registry SourceRecently Updated
1370Profile unavailable
Coding

Wordpress AEO Autoblogger

Autonomous AEO and SEO content generation and optimization engine for scaling business operations. Use when Codex needs to run end-to-end programmatic SEO wo...

Registry SourceRecently Updated
770Profile unavailable
Security

Brand Butler: Local Authority Engine

Brand Butler: Local Authority Engine — the white-glove SEO and AEO system for local service businesses. Use this skill immediately when the user asks about S...

Registry SourceRecently Updated
1281Profile unavailable
Coding

Pangolinfo AI SERP: AI Mode Output + AI Overviews

Search Google programmatically and extract structured SERP data, Google AI Overviews (SGE), citations, screenshots, and AI Mode follow-up results. Use when y...

Registry SourceRecently Updated
3125Profile unavailable