/ai-geo-by-ivan:infinite-run-ai-seofrom ai-geo-by-ivan
Run a self-pacing, never-stopping AI-SEO improvement loop over a website: each tick pulls the next unworked target query from a persisted backlog, makes one validated on-page improvement, deploys only when meaningful, then re-arms the next wake. Periodically discovers NEW target queries and appends them to the backlog so the loop keeps finding fresh surface area to win instead of stalling. Use when the user asks to "run AI SEO continuously", "keep improving the site forever", "infinite AI SEO loop", "non-stop audit improve deploy", "find more queries and improve terus-terusan", or wants a resumable, backlog-driven AI-SEO loop rather than a fixed-interval spammer. Pairs with marketing-skills:ai-seo (strategy), the geo-audit skill (audit), and the loop skill (scheduling primitive).
Ships in ai-geo-by-ivan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A persistent, backlog-driven loop that keeps improving a site's AI-search performance forever. Each tick does one sensible unit of work, then re-arms. It does NOT deploy every tick. It does NOT fire on a 6s cadence.
A fixed 6s loop floods notifications and pushes empty commits to Vercel. A
real AI-SEO cycle (audit → improve → build → deploy → propagate) takes
minutes. This skill makes the loop resumable (state on disk) and
self-expanding (it finds new queries), so "run forever" is safe.
All loop state lives in the site repo so it is inspectable, commitable, and survives stop/restart.
<site-repo>/.ai-seo/
├── backlog.jsonl # one query per line, the loop's memory
├── runs.log # append-only tick log (ts, action, outcome)
└── config.json # cadence, deploy gate, discovery interval
One JSON object per line. Status: pending → working → done | skip.
{"q":"apakah ada kelas AI untuk anak di Indonesia","page":"/","status":"done","commit":"3a7c7a9","ts":"2026-07-01"}
{"q":"kursus AI anak SD online","page":null,"status":"pending","found":"2026-07-01","source":"discovery"}
{"q":"biaya les AI untuk anak","page":null,"status":"skip","reason":"pricing claim — off-site only","ts":"2026-07-01"}
Normalize q for dedupe (lowercase, trim, collapse spaces). Never keep two
lines with the same normalized query.
{
"cadenceSeconds": 900,
"minDeployGapSeconds": 600,
"discoveryEveryTicks": 10,
"maxEmptyDiscoveryStops": 3,
"honestyGuardrails": true
}
On each wake (sentinel AGENT_LOOP_TICK_aiseo or dynamic heartbeat):
.ai-seo/backlog.jsonl and .ai-seo/config.json.status=pending. If none:
ticksSinceDiscovery >= discoveryEveryTicks, run Discovery (below)
and re-pick. If discovery returned nothing, increment
consecutiveEmptyDiscovery; if it reaches maxEmptyDiscoveryStops, pause
the loop and tell the user on-site surface is saturated (off-site levers
remain: indexing, Google Business Profile, backlinks).FAQPage, Course/Service, speakable)?id anchor for the answer?CLAUDE.md honesty guardrails — no fabricated testimonials, no
invented prices, no unbacked superlatives. Never claim a client that
doesn't exist.pnpm build / npm run build). If red, fix or revert; do not
deploy a broken build.now - lastDeployTs >= minDeployGapSeconds (anti Vercel/git spam),done (with commit hash + ts) or
skip (with reason), append a line to runs.log, update
ticksSinceDiscovery and lastDeployTs.cadenceSeconds). Do NOT use a fixed 6s loop.Find new candidate queries to append to the backlog. Sources, in priority:
firecrawl_search with diverse framings of the topic — synonyms,
audience segments, intent variants. Run several distinct framings, not one.status=done query that the site now answers
well, derive its long-tail variants ("X online", "X di ", "X untuk
", "biaya X", "berapa lama X").For each candidate: normalize, dedupe vs every existing backlog line (any
status), and append as pending with source: "discovery" and found date.
Skip candidates that would require off-site proof to answer truthfully
(pricing, testimonials, rankings) — mark them skip with a reason instead of
leaving them as bait.
Use the loop skill in dynamic mode. The fallback heartbeat is
cadenceSeconds (default 900s / 15m). That is the cadence that actually fits
a build+deploy+propagate cycle. Never run this on a fixed sub-minute interval.
/loop /ai-seo infinite-run on <site-repo>
On first start:
.ai-seo/ and seed backlog.jsonl with the user's primary target
query (status pending or done if already won) plus 3–5 obvious
variants.config.json with defaults (or values the user gave).consecutiveEmptyDiscovery >= maxEmptyDiscoveryStops: stop
arming and tell the user on-site levers are saturated; list the remaining
off-site actions they must do themselves.skip with the reason.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub aureliusivan/ai-geo-by-ivan --plugin ai-geo-by-ivan48 skills in this plugin
/ab-testingWhen the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program," or "experiment playbook." Use this whenever someone is comparing two approaches and wants to measure which performs better, or when they want to build a systematic experimentation practice. For tracking implementation, see analytics. For page-level conversion optimization, see cro./ad-creativeWhen the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see ads. For landing page copy, see copywriting.