1---
2name: super-seo
3description: This skill should be used when the user wants to run the Super SEO skill, or asks to "run my SEO", "audit my site's SEO", "improve my rankings", "build my keyword map", "find link targets", "check my AI visibility / AEO / GEO", "why does ChatGPT not mention us", "write SEO pages for keyword gaps", "draft pages for keywords my competitors rank for", "run a keyword gap and write the pages", "fill my content gaps", "what does search console say", "why did my clicks drop", "check my indexing", or invokes a mode directly ("seo measure", "seo audit", "seo write", "seo fix", "seo links", "seo ai", "seo report"). A full SEO operating system, not a page generator. Runs on the superagnt MCP: Google Search Console as ground truth, plus SERP + keyword + backlink + on-page + AI-visibility data, web scrape, and the workspace database, with an optional weekly hosted run.
4version: 0.1.0
5---
6
7# Super SEO
8
9Run the user's whole SEO practice the way a good consultant would, with
10one difference: every action is ranked against every other action on one
11scale, and the run works top-down. Search Console is the ground truth;
12third-party data fills what it cannot see. Drafts, fixes and plans are
13the deliverable. Publishing, sending and spending stay with the user,
14always.
15
16## Command modes
17
18A bare invocation ("run my SEO") is the full cycle: measure, score every
19candidate action, execute the top items. A mode forces one lane and
20skips the rest, which is what the user wants when they already know what
21is wrong.
22
23| Mode | The user says | What runs |
24|---|---|---|
25| (bare) | "run my SEO", "what should I do this week" | Step 2, then the ranked cycle in Step 4 |
26| `measure` | "what does search console say", "why did my clicks drop" | Step 2 only: the panel, the decomposition, a snapshot row |
27| `audit` | "audit my site", "check my indexing" | Step 1 technical + on-page pass, no drafting |
28| `write` | "write pages for my gaps", "fill my content gaps" | The drafting lane only, capped at 5 |
29| `fix` | "what do I fix on this page" | Re-audit the named pages, concrete fix list |
30| `links` | "find link targets", "who links to my competitors" | Link lane only, capped at 3 pitches |
31| `ai` | "why does ChatGPT not mention us", "check my AEO" | AI-visibility lane only |
32| `report` | "where are we at", "write the weekly" | Read the tables, write the review, spend nothing new |
33
34Every mode writes a `seo_runs` row. A mode filters the candidate list;
35it never skips the numbers.
36
37## The research library
38
39This skill ships with a bundled research corpus in `references/`,
40distilled from hundreds of practitioner sources (X threads, YouTube
41transcripts, Reddit, industry studies; researched 2026-09). Before
42working a lane, read the matching note; cite its findings when
43explaining a recommendation, and prefer it over generic SEO folklore.
44
45- `references/00-agent-seo-playbook.md` — the operating manual; read it on first run.
46- `references/technical-seo.md` — crawlability, indexing, rendering, schema, migrations.
47- `references/on-page-and-eeat.md` — titles, entities, E-E-A-T, snippet formatting.
48- `references/keyword-research-and-serp.md` — intent, clustering, difficulty reality, prioritization.
49- `references/content-strategy-topical-authority.md` — topical maps, programmatic SEO, refresh economics, SaaS plays.
50- `references/link-building-white-hat.md` — digital PR, linkable assets, outreach mechanics, market costs.
51- `references/link-building-grey-hat.md` — the paid-link and PBN market documented with risk labels. Briefing material only; see The grey zone below.
52- `references/ai-search-aeo-geo.md` — AI Overviews, LLM citations, brand-mention currency, measurement.
53- `references/local-seo.md` — GBP, reviews, citations, local packs.
54- `references/seo-with-ai-agents.md` — what agent automation does well and where it burns people.
55- `references/measurement-algo-updates.md` — GSC, testing, update recovery, the API leak takeaways. Read it before any measurement work.
56- `references/new-domain-zero-to-one.md` — a domain with no history: real timelines, what to publish first, the cold-start link problem, kill criteria.
57- `references/international-and-non-google.md` — hreflang, URL structure, localisation at scale, and the engines that are not Google (Bing matters: it grounds ChatGPT).
58
59Installed as a raw single SKILL.md without `references/` (non-plugin
60harness)? Say so once, then proceed: the steps below stand alone.
61
62## Step 0 — tools
63
64`agnt_tools_list_enabled`; if `data:seo`, `data:web` or `database`
65families are missing, `agnt_tools_enable({ "families": ["data:seo",
66"data:web", "database"] })`. A `requires_upgrade` result carries a
67`confirm_url` — give it to the user and wait, then re-run. (Connecting
68through the super-seo skill endpoint pre-enables these.)
69
70Then check Search Console. It is a your-credential OAuth connection, not
71a data family: look for tools prefixed `connection_google_search_console_*`
72in the same listing. If they are present, call
73`connection_google_search_console_list_sites` and have the user pick the
74property, storing the exact `siteUrl` string (a URL-prefix property is
75the full URL with trailing slash; a domain property is prefixed
76`sc-domain:`).
77
78If they are absent, say once that Search Console is not connected, that
79connecting it from the dashboard connections page is what unlocks the
80real numbers, and that you are continuing on third-party estimates until
81they do. Degraded is a labelled state, never a blocker: every panel,
82board and report produced without GSC marks the affected figures
83"third-party estimate".
84
85## Tool names on grouped servers
86
87This skill writes flat (per-operation) tool names. New superagnt servers list
88grouped tools instead: one tool per resource with an `action` argument. Flat
89names still resolve there but are not listed, so call the grouped form:
90
91- `data_seo_google_search` / `data_seo_google_ai_mode_search` / `data_seo_search_intent` → `data_seo_serp`, action `google` / `ai_mode` / `intent`
92- `data_seo_keyword_ideas` / `data_seo_keyword_overview` / `data_seo_ranked_keywords` / `data_seo_keyword_gap` → `data_seo_keywords`, action `ideas` / `overview` / `ranked` / `gap`
93- `data_seo_domain_overview` / `data_seo_competitors` / `data_seo_ai_visibility` / `data_seo_page_audit` → `data_seo_domains`, action `overview` / `competitors` / `ai_visibility` / `page_audit`
94- `data_seo_backlinks_summary` / `data_seo_referring_domains` / `data_seo_backlink_gap` → `data_seo_backlinks`, action `summary` / `referring_domains` / `gap`
95- `data_web_scrape` keeps its name on both surfaces
96- `agnt_db_apply_migration` → `agnt_db_sql`, action `apply_migration`
97- `agnt_agents_create` / `agnt_agents_deploy` → `agnt_agents_write`, action `create` / `deploy`
98- `agnt_schedules_create` → `agnt_schedules_write`, action `create`
99- `agnt_tools_enable` → `agnt_tools_write`, action `enable`
100
101On a grouped server every data source is already on, so skip the `data:*`
102part of Step 0 (enable any other family with `agnt_tools_write`, action
103`enable`). Grouped data calls return a compact markdown view: pass
104`response_format: "json"` for every view field, or `"raw"` for the full
105payload, when a step needs a field the table leaves out.
106
107## Step 1 — the baseline (first run only)
108
109Ask for the user's domain, 2-3 competitor domains, and what they sell
110(one line: the buyer and the problem). Verify each domain with
111`data_seo_domain_overview`; propose extra competitors with
112`data_seo_competitors` if they only know one. Then baseline:
113
114- `data_seo_page_audit` on the homepage and 3-5 money pages.
115- `data_seo_backlinks_summary` + `data_seo_referring_domains` for the
116 user and each competitor.
117- `data_seo_ai_visibility` for the user's brand and their category
118 terms — the AI-answer baseline most founders have never seen.
119- `data_web_scrape` the homepage + 2 representative pages for voice
120 notes (tone, structure, internal links) and the URL pattern.
121
122Store everything (`agnt_db_apply_migration` then inserts):
123
124- `seo_targets(id, domain, is_self boolean, active boolean default
125 true, profile jsonb, created_at timestamptz)` — `profile` on the
126 self row carries voice notes, url pattern, money pages, internal
127 link targets, and the GSC `siteUrl` once known.
128- `seo_keywords(keyword text primary key, cluster text, volume int,
129 difficulty int, intent text, priority int, status text default
130 'gap', competitor_url text, draft_md text, title text,
131 meta_description text, updated_at timestamptz)` — one row per page
132 the user could own. `status` moves gap → queued → drafted →
133 published/skipped. This is the drafting lane's state too: a draft is
134 a `seo_keywords` row with `draft_md` filled, not a separate table.
135- `seo_link_targets(domain text primary key, why text, authority int,
136 contact text, pitch_md text, status text default 'new', updated_at
137 timestamptz)` — `status` moves new → pitch_drafted → won/dead.
138- `seo_gsc_rows(day date, query text, page text, country text, device
139 text, clicks int, impressions int, ctr numeric, position numeric,
140 primary key (day, query, page, country, device))` — the GSC pull,
141 kept row-level. Never store only the aggregate.
142- `seo_snapshots(id, taken_at timestamptz, source text, metrics
143 jsonb)` — one row per cycle per source (`gsc`, `third_party`).
144- `seo_runs(id, ran_at timestamptz, mode text, board jsonb, done
145 jsonb, notes text)` — what was ranked, what was executed, what was
146 deferred and why.
147
148Two cases change the plan first. A new domain with no ranking history:
149read `references/new-domain-zero-to-one.md` and set expectations from
150it, because the honest answer may be that SEO cannot pay yet. A user
151selling across borders: `references/international-and-non-google.md`
152covers the URL-structure call and Bing, which grounds ChatGPT.
153
154## Step 2 — the measurement panel
155
156Run this at the top of every cycle, before anything is proposed. It is
157what makes the ranked board honest.
158
1591. Pull the rows. `connection_google_search_console_query_analytics`
160 for the last 28 days and the prior 28, dimensions `["query","page"]`
161 plus a `["page","date"]` pass, `dataState: "all"` so the freshest
162 days are included. Page with `rowLimit` / `startRow`. Upsert into
163 `seo_gsc_rows`.
1642. Decay. Pages whose clicks fell against the prior period while
165 impressions held. Each is a refresh candidate carrying its click
166 delta.
1673. Striking distance. Query+page pairs at position 5-15 with real
168 impressions. Each is a fix candidate carrying its impressions and the
169 click gap to the position above.
1704. The three-way decomposition on every material drop. Impressions
171 flat and clicks down means CTR moved, usually a SERP feature above
172 you. Impressions down and position flat means demand moved.
173 Impressions down and position down means you lost ranking, and that
174 is the only branch worth alerting on
175 (`references/measurement-algo-updates.md`).
1765. Indexing. `connection_google_search_console_inspect_url` on the
177 money pages and anything published since the last run; a page not
178 indexed outranks every content idea in the board below. Add
179 `connection_google_search_console_list_sitemaps` when coverage looks
180 wrong; `..._submit_sitemap` only if the user asks.
1816. Blend the third-party panels for what GSC cannot see:
182 `data_seo_ranked_keywords`, `data_seo_backlinks_summary`,
183 `data_seo_ai_visibility` (competitors, the link graph, whether AI
184 answers cite the brand).
185
186Insert a `seo_snapshots` row per source. Report per query and per page,
187never sitewide: a macro average position of 19.6 can decompose to 1.0 on
188one query and 38.5 on another, so the aggregate is not a number.
189
190## Step 3 — the keyword map
191
192Maintained, not rebuilt. `data_seo_ranked_keywords` for the user,
193`data_seo_keyword_gap` per competitor, `data_seo_keyword_ideas` seeded
194from what they sell. Enrich keepers with `data_seo_keyword_overview` +
195`data_seo_search_intent` in batches. Cluster by topic, then priority:
196bottom-of-funnel intent first, winnable difficulty for this domain's
197strength, real buyer language over volume vanity (the reasoning lives in
198`references/keyword-research-and-serp.md` and
199`references/content-strategy-topical-authority.md`). Skip branded terms
200on either side. Upsert into `seo_keywords`.
201
202Where GSC is connected, a query the site already gets impressions for
203beats an estimated-volume keyword it has never been seen for. Join the
204map to `seo_gsc_rows` before you rank it.
205
206## Step 4 — the ranked cycle
207
208Each cycle, build ONE candidate list across every lane, score it on one
209scale, show it, then work top-down. This replaces the fixed-order loop:
210a drafting idea and a technical fix compete on the same board.
211
212Candidates. Draft page X (from `seo_keywords` at `gap`/`queued`),
213refresh decaying page Y (Step 2.2), fix striking-distance page Z (Step
2142.3), technical or indexing fix (Step 2.5 and `data_seo_page_audit`),
215pitch link target W (`data_seo_backlink_gap` +
216`data_seo_referring_domains`), AEO fix (`data_seo_ai_visibility`,
217`data_seo_google_ai_mode_search`).
218
219Score. `impact × confidence ÷ effort`, each 1-5, every score
220carrying the tool number that justifies it. Impact is the traffic or
221citation at stake (GSC clicks and impressions where connected,
222`data_seo_*` estimates where not). Confidence is how sure the mechanism
223is: an indexing failure is a 5, an AEO tactic from a contested study is
224a 2. Effort is what the USER has to do, not what the agent does.
225Ranking logic: `references/00-agent-seo-playbook.md`. Technical blockers
226usually win on confidence alone, and that is correct.
227
228Present the board before executing: rank, action, lane, score, and
229the number behind it. The user can reorder it.
230
231Execute top-down, inside the caps. Up to 5 page drafts and up to 3
232link pitches per cycle. Everything else is unlimited, because fixes are
233cheap and drafts are not.
234
235- *Drafting.* Scrape the page to beat (`data_web_scrape`), work out what
236 it answers and what it misses, then draft the full page in the user's
237 voice from `seo_targets.profile`: title, H2/H3 structure, complete
238 body, meta description, internal links to their real pages. Beat it on
239 completeness, never echo its sentences. Save `draft_md`, `title`,
240 `meta_description`, mark `drafted`, present each draft with its
241 numbers. Quality bar and information-gain rules:
242 `references/on-page-and-eeat.md`.
243- *Fixes.* Re-run `data_seo_page_audit` on pages the user changed; list
244 concrete edits with the page and the line, never "improve content".
245- *Links.* Qualify targets (relevance beats raw authority; the honest
246 proxy for a link's value is whether the linking page itself ranks),
247 then write `pitch_md`, a real personalized draft per target. If
248 enrichment tools are enabled (`agnt_tools_search` for "email finder"),
249 attach contacts; otherwise leave `contact` to the user. Outreach
250 mechanics and realistic reply rates:
251 `references/link-building-white-hat.md`. The user sends; this skill
252 never does.
253- *AEO.* Track citation share against `seo_snapshots`; tactics for
254 earning citations: `references/ai-search-aeo-geo.md`.
255
256Close the run. Insert a `seo_runs` row with the board, what was
257executed, and what was deferred. Then report: what moved (from Step 2),
258what shipped, what is queued, and what needs the user (publish
259approvals, pitches to send, fixes to deploy).
260
261## Step 5 — offer the weekly run (a task agent)
262
263Once one full cycle has produced work the user actually rates, offer to
264make it weekly by building a task agent — the full recipe is the base
265`task-agents` skill. Short form: `agnt_agents_create` with a system
266prompt carrying Steps 2-4 verbatim (tables, scoring scale, caps), add
267ONLY the tools those steps use including the Search Console connection
268tools, `agnt_agents_deploy`, then `agnt_schedules_create` — cadence
269confirmed with the user first; every firing is a billed run. The
270`lifecycle` and `schedules` families are on every plan, and plans cap agents
271and schedules; `requires_upgrade` → `confirm_url` → wait. If the user prefers
272local-only, skip this and tell them to re-run the skill whenever.
273
274## The grey zone
275
276`references/link-building-grey-hat.md` documents the paid-link, niche
277edit, PBN and expired-domain market with real prices and risk labels,
278because a corpus that pretends the market does not exist cannot advise
279on it. Use it to BRIEF the user honestly when they ask (what it costs,
280what it claims to yield, how it goes wrong, labeled risk), and to
281recognize grey signals in their existing backlink profile. This skill
282never buys placements, never orchestrates a purchase, and recommends the
283white-hat route by default; if the user chooses a paid route, that
284decision and every transaction are theirs, off-platform.
285
286## Rules
287
288- Never fabricate a metric — every volume, difficulty, authority,
289 position or visibility number reported comes from a tool result or a
290 table row.
291- Never fabricate a Search Console number, and never present a
292 third-party estimate as a GSC one. When GSC is not connected, the
293 panel says so on every affected figure.
294- When third-party data and GSC disagree, GSC wins. It is the user's own
295 log; everything else is somebody's model of it. Label GSC query data
296 as a sample, not a census: the API returns top rows, and low-volume
297 queries are withheld.
298- Never quote a sitewide average position or a sitewide CTR. Both are
299 only meaningful filtered to one query and one page.
300- Every action on the board carries the number that justifies it. An
301 unscored action does not get executed.
302- Drafts never copy competitor sentences; the page to beat sets the bar,
303 the draft is original work in the user's voice.
304- This skill drafts, fixes and plans; it never publishes to the user's
305 site, never sends outreach, and never spends money. Publish, send,
306 spend, disavow, delete and redirect are user actions.
307- Cite the research library when recommending; say when a practice is
308 contested rather than presenting folklore as fact.
309
310<!-- skill_id: super-seo · source: https://github.com/superagnt/plugins -->