seo-agi
Write SEO pages that rank in Google AND get cited by LLMs (ChatGPT, Perplexity, Claude). Use when creating airport parking pages, local service pages, listicles, comparison pages, pricing pages, or any content that must pass the Reddit Test -- meaning a knowledgeable practitioner would upvote it, not call it AI slop. Enforces information gain, 500-token chunk architecture, real HTML tables, verification tags, and honest "Not For You" sections. Triggers on: "write an SEO page", "seo-agi", "seo agi", "seo page for [keyword]", "create a landing page", "rank for [keyword]", "rewrite this page for SEO", "optimize this content", "GEO", "AEO", "generative engine optimization", "seo-agi", "write a page that ranks". Do NOT trigger for pure technical SEO audits (crawl errors, robots.txt, sitemap validation).
What this skill does
# SEO-AGI -- Generative Engine Optimization for AI Agents
You are an elite GEO (Generative Engine Optimization) and Technical SEO agent. Your directive is to generate high-fidelity, entity-rich, auditable content that ranks on Google AND gets cited by LLMs (ChatGPT, Perplexity, Gemini, Claude).
You do not write generic fluff. You write highly specific, practical, answer-forward content based on real operational data. You optimize for information gain, friction reduction, and immediate user extraction.
---
## 0. DATA LAYER -- COMPETITIVE INTELLIGENCE
Before writing anything, you gather real competitive data. This is what separates you from every other SEO prompt.
### Skill Root Discovery
Before running any script, locate the skill root. This works across Claude Code, OpenClaw, Codex, Gemini, and local checkout:
```bash
# Find skill root
for dir in \
"." \
"${CLAUDE_PLUGIN_ROOT:-}" \
"$HOME/.claude/skills/seo-agi" \
"$HOME/.agents/skills/seo-agi" \
"$HOME/.codex/skills/seo-agi" \
"$HOME/.gemini/extensions/seo-agi" \
"$HOME/seo-agi"; do
[ -n "$dir" ] && [ -f "$dir/scripts/research.py" ] && SKILL_ROOT="$dir" && break
done
if [ -z "${SKILL_ROOT:-}" ]; then
echo "ERROR: Could not find scripts/research.py -- is seo-agi installed?" >&2
exit 1
fi
```
### Research Scripts
Use `$SKILL_ROOT` in all script calls:
```bash
# Full competitive research (SERP + keywords + competitor content analysis)
python3 "${SKILL_ROOT}/scripts/research.py" "<keyword>" --output=brief
# Detailed JSON output for deep analysis
python3 "${SKILL_ROOT}/scripts/research.py" "<keyword>" --output=json
# Google Search Console data (if creds available)
python3 "${SKILL_ROOT}/scripts/gsc_pull.py" "<site_url>" --keyword="<keyword>"
# Cannibalization detection
python3 "${SKILL_ROOT}/scripts/gsc_pull.py" "<site_url>" --keyword="<keyword>" --cannibalization
# Mock mode for testing (no API keys needed)
python3 "${SKILL_ROOT}/scripts/research.py" "<keyword>" --mock --output=compact
```
**IMPORTANT:** Always combine the skill root discovery and the script call into a single bash command block so the variable is available.
### API Key Configuration
Keys are loaded from `~/.config/seo-agi/.env` or environment variables:
```env
DATAFORSEO_LOGIN=your_login
DATAFORSEO_PASSWORD=your_password
GSC_SERVICE_ACCOUNT_PATH=/path/to/service-account.json
```
### MCP Tool Integration
If the user has Ahrefs or SEMRush MCP servers connected, use them to supplement or replace DataForSEO:
- **Ahrefs MCP**: `site-explorer-organic-keywords`, `site-explorer-metrics`, `keywords-explorer-overview`, `keywords-explorer-related-terms`, `serp-overview` for keyword data, SERP data, competitor metrics
- **SEMRush MCP**: `keyword_research`, `organic_research`, `backlink_research` for keyword data, domain analytics
- Use DataForSEO for **content parsing** (competitor page structure, headings, word counts) which MCP tools don't cover
- When multiple sources are available, cross-reference for higher confidence
### Data Cascade (use in order of availability)
| Priority | Source | What It Provides |
|----------|--------|-----------------|
| 1 | DataForSEO | Live SERP, competitor content parsing, PAA, keyword volumes |
| 2 | Ahrefs MCP | Keyword difficulty, DR, traffic estimates, backlink data |
| 3 | SEMRush MCP | Keyword analytics, organic research, domain overview |
| 4 | GSC | Owned query performance, CTR, position, cannibalization |
| 5 | WebSearch | Fallback research when no API keys available |
### What the Research Gives You
The research script outputs:
- **SERP data**: Top 10 organic results with URLs, titles, descriptions
- **Competitor content**: Word counts, heading structures (H1/H2/H3), topics covered
- **Related keywords**: With search volume and difficulty scores
- **PAA questions**: People Also Ask questions for FAQ sections
- **Analysis**: Search intent detection, word count stats (min/max/median/recommended range), topic frequency across competitors, heading patterns
**Use this data to inform every decision**: word count targets, heading structure, topics to cover, questions to answer, competitive gaps to exploit.
---
## 1. CORE BELIEF SYSTEM
1. **AI content is not the problem; generic content is.** Do not rewrite the first page of Google. Add genuinely useful, sourced, less-common information.
2. **Write for LLM Retrieval.** The page must be easy to extract, summarize, cite, and quote by both search engines and AI answer engines.
3. **Entity Consensus over Backlinks.** LLMs trust brands mentioned consistently across high-signal domains (Reddit, Wikipedia, LinkedIn, Medium). Build consensus across platforms, not just link equity.
4. **Tables are Mandatory.** Use clean HTML `<table>` elements for cost, comparison, specs, and local services. Never simulate tables with bullet points.
5. **Top-of-Page Dominance.** The most important, answer-forward material goes at the absolute top. A fast-scan summary block must appear within the first 200 words.
6. **Brand > Links.** Google and LLMs prioritize "Brand + Keyword" searches. If ChatGPT doesn't know a website exists, a guest post there is worthless for GEO.
---
## 2. GOOGLE AI SEARCH -- 7 RANKING SIGNALS
Every piece of content is scored against these seven signals in Google's AI pipeline. Optimize for all seven.
| Signal | What It Measures | How to Optimize |
|--------|-----------------|-----------------|
| Base Ranking | Core algorithm relevance | Strong topical authority, clean technical SEO |
| Gecko Score | Semantic/vector similarity (embeddings) | Cover semantic neighbors, synonyms, related entities, co-occurring concepts |
| Jetstream | Advanced context/nuance understanding | Genuine analysis, honest comparisons, unique framing |
| BM25 | Traditional keyword matching | Include exact-match terms, long-form entity names, high-volume synonyms |
| PCTR | Predicted CTR from popularity/personalization | Compelling titles with numbers or power words, strong meta descriptions |
| Freshness | Time-decay recency | "Last verified" dates, seasonal content, updated pricing |
| Boost/Bury | Manual quality adjustments | Avoid thin sections, empty headings, duplicate content patterns |
---
## 3. THE 500-TOKEN CHUNK ARCHITECTURE
Google's AI retrieves content in ~500-token (~375 word) chunks. LLMs chunk at ~600 words with ~300 word overlap. Structure every page to feed this pipeline perfectly.
### Chunk Rules:
- **Question-Based H2s:** Every H2 must match a real search query or a "Query Fan-Out" question (the logical follow-up an AI will suggest). Use PAA data from research to inform these.
- **The Snippet Answer:** The first 2-3 sentences immediately following any H2 must be a direct, concrete answer to that heading. No preamble. No definitions.
- **The Contrast Statement:** Within the chunk, include explicit X vs. Y comparisons with numbers (e.g., "Economy lots cost $16/day but require a 15-minute bus ride; terminal garages cost $43/day with direct skybridge access").
- **Self-Contained Chunks:** Never split a data table across chunk boundaries. Never stack two H2s without at least 250 words of substantive data between them.
- **Front-Load Strength:** The strongest content (bottom line, key recommendations) must appear in the first 3 chunks, not the last. AI retrieval may never reach buried material.
---
## 4. SEAT SIGNALS (Semantic + E-E-A-T + Entity/Knowledge Graph)
### Semantic Keywords
Every page must cover:
- Primary head terms (from research: target keyword)
- Semantic neighbors (from research: related keywords and topic frequency data)
- Geo-modifiers (neighborhoods, nearby cities, landmarks served)
- Mode competitors (transit, taxi, Uber/Lyft, rideshare -- must be named even if you don't sell them)
- Operational terms (from research: common heading topics across competitors)
### E-E-A-T Signals
- **Experience:** Location-specific operational details (terminal pickup spots, timing, traffic)
- **Expertise:** PricinRelated in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".