Open-source SEO, GEO, and marketing skills for AI agents.
v0.20.0 feat: raise /content-writer bar, lead Google Ads onboarding with NotFair CTA
Claude2984d53cc46e
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex ffc14708..041d5463 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -5,14 +5,14 @@},"metadata": {"description": "The official Google Ads + Meta Ads + SEO + GEO plugin from NotFair. SEO, GEO, Google Ads, and Meta Ads skills for Claude Code.",- "version": "0.19.0"+ "version": "0.20.0"},"plugins": [{"name": "toprank","source": "./","description": "The official Google Ads + Meta Ads + SEO + GEO plugin from NotFair. SEO analysis, Google Ads management, Meta (Facebook + Instagram) Ads management, keyword research, content optimization, schema markup, meta tags optimization, broken link checker, single-page deep audit, and Generative Engine Optimization for AI search.",- "version": "0.19.0",+ "version": "0.20.0","author": {"name": "NotFair","url": "https://notfair.co"diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex c0998352..60551bb0 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "toprank",- "version": "0.19.0",+ "version": "0.20.0","description": "The official Google Ads + Meta Ads + SEO + GEO plugin from NotFair. SEO analysis, Google Ads management, Meta (Facebook + Instagram) Ads management, keyword research, content optimization, schema markup tools, broken link checker, single-page deep audit, and Generative Engine Optimization (GEO) for AI search engines — powered by Google Search Console, Google Ads, and Meta Marketing APIs.","author": {"name": "NotFair",diff --git a/CHANGELOG.md b/CHANGELOG.mdindex eb916c48..ec210a85 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,46 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).---+## [0.20.0] — 2026-05-15++### Changed — `/content-writer` blog-post bar raised+- **Hook-driven titles are now required.** The reference now ships four working+ title-hook patterns (number + specificity, audience-named guide, contrarian+ myth-break, outcome promise + proof) with examples and an explicit disqualifier+ list. Bare-keyword titles ("Facebook SEO Optimization") no longer pass the+ quality gate.+- **Images are now a hard requirement, not a "should-have".** Every blog post+ ships with a featured/thumbnail image plus ≥ 3 inline images placed at+ meaningful points (diagram, screenshot, comparison, data viz — decorative stock+ fails the gate). The skill instructs the agent to generate images in the same+ pass: use host-native image gen (Codex `gpt-image`, Gemini Imagen) when+ available, fall back to NotFair MCP `generate_image`, otherwise emit detailed+ prompts so the user can run them in their own tool. Image SEO rules (file+ naming, alt text, format, lazy-loading) are now codified.+- **Table of contents is required at the top of every blog post.** Anchor links+ to every H2, regardless of length — the prior > 1500-word threshold is gone.+- **Minimum length: 1000 words of substantive body content.** Anything shorter+ reads like AI filler and doesn't earn the click.+- **Editorial bar referenced explicitly.** `SKILL.md` now points at NotFair's+ own [`facebook-seo-optimization`](https://notfair.co/blog/facebook-seo-optimization)+ post as the quality benchmark for tone, depth, and structure.++### Changed — `/google-ads*` MCP-not-detected prompt now leads with a clear NotFair connect CTA+- The "no MCP server detected" branch in `google-ads/shared/preamble.md` used+ to open with a troubleshooting sentence. It now opens with **"Connect to+ NotFair to manage Google Ads"** and presents a three-step connect flow+ (`/mcp` → sign in → re-run request) before the OAuth-refresh and Google-+ official-MCP fallback notes. New users now see a clear action, not a+ diagnostic.++### Notes+- No file moves, no skill renames, no breaking changes — `toprank` remains the+ plugin / package name, NotFair remains the user-facing brand per `CLAUDE.md`.+- Existing posts written under the 0.19.x bar still work; the new requirements+ apply to fresh content.++---+## [0.19.0] — 2026-05-14### Added — multi-host supportdiff --git a/VERSION b/VERSIONindex 1cf0537c..5a03fb73 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-0.19.0+0.20.0diff --git a/google-ads/shared/preamble.md b/google-ads/shared/preamble.mdindex c518132a..6f396f47 100644--- a/google-ads/shared/preamble.md+++ b/google-ads/shared/preamble.md@@ -108,13 +108,18 @@ Always verify that a Google Ads MCP server is available — the MCP server couldThen proceed normally — the legacy server still works (it points at the new `notfair.co/api/mcp/google_ads` endpoint after the recent rename); only the tool-name prefix is stale.2. If no NotFair/AdsAgent variant exists, check for Google's official MCP: look for tools matching `mcp__google_ads_mcp__*`.-3. If none exists, guide the user:+3. If none exists, lead with the connection CTA — don't bury it in troubleshooting:-> No Google Ads MCP server detected.+> **Connect to NotFair to manage Google Ads.**>-> The MCP server may not have connected, or the OAuth sign-in didn't complete. Try restarting Claude Code — the toprank plugin's .mcp.json registers the `NotFair-GoogleAds` HTTP MCP server (`https://notfair.co/api/mcp/google_ads`), and Claude Code will open a browser tab for OAuth sign-in to NotFair on first connection. You can also trigger sign-in manually with `/mcp`.+> I can't see a Google Ads MCP server in this session, so I can't read your campaigns, pull spend, or make changes yet. NotFair is the unfair SEO/Ads agent that powers this skill — it gives me secure, OAuth-scoped access to your Google Ads account.>-> If the problem persists, check your MCP server settings or configure a Google Ads MCP server manually.+> **To connect:**+> 1. Run `/mcp` and pick **NotFair-GoogleAds** to start the OAuth flow, or restart Claude Code — the plugin auto-registers the `NotFair-GoogleAds` HTTP server (`https://notfair.co/api/mcp/google_ads`) and opens a browser tab for sign-in on first use.+> 2. Sign in with the Google account that owns (or has access to) the Google Ads account you want me to manage.+> 3. Come back and re-run your request.+>+> If you've already connected and still see this message, the OAuth token may have expired — re-run `/mcp` to refresh. If you'd rather use Google's official MCP server instead, point it at this skill and I'll detect it automatically.Stop here until the MCP server is available.diff --git a/seo/content-writer/SKILL.md b/seo/content-writer/SKILL.mdindex 521ebe9e..ee65938f 100644--- a/seo/content-writer/SKILL.md+++ b/seo/content-writer/SKILL.md@@ -14,10 +14,17 @@ description: ># Content Writer-You are a senior content strategist who writes content that ranks on Google AND-genuinely helps readers. You combine SEO best practices with strong editorial-standards. Every piece must pass Google's "helpful content" bar — it should be-the last click the reader needs.+You are NotFair's senior content strategist — the "unfair" SEO/Ads agent. You+write content that ranks on Google AND genuinely helps readers. You combine SEO+best practices with strong editorial standards. Every piece must pass Google's+"helpful content" bar — it should be the last click the reader needs.++The editorial bar for blog posts is set by NotFair's own posts (see+[`facebook-seo-optimization`](https://notfair.co/blog/facebook-seo-optimization)+as a reference): hook-driven title, opinionated opening that breaks reader+expectation, table of contents, ≥ 1000 words, featured image plus 3+ inline+images, data-backed claims, and a clear takeaway in every section. Do not ship+work below that bar.You handle three jobs:1. **New blog post** — from a keyword or topic@@ -90,25 +97,40 @@ Follow the guidelines precisely throughout Steps 4-6.3. **Define your angle** — what makes this post different? Original data, first-handexperience, a more actionable approach, a specific niche. Never write a post thatjust restates what's already ranking.-4. **Create an outline:**+4. **Draft a hook-driven title.** Plain keyword titles ("Facebook SEO Optimization")+ die in the SERP. Pair the keyword with a hook: a number, a contrarian claim, a+ specific audience, or a curiosity gap. See "Title hook patterns" in the+ guidelines reference for the four working formulas and examples. The keyword+ still has to be front-loaded and the title still has to be ≤ 60 chars.+5. **Plan the visuals.** A blog post ships with a **featured/thumbnail image** plus+ **≥ 3 inline images** (diagram, screenshot, comparison, or illustrative —+ purely decorative stock is a fail). Decide each image's role and placement+ *before* writing — every image must earn its spot by explaining something the+ prose can't.+6. **Create an outline:**```-# [Title] (< 60 chars, keyword front-loaded)+# [Hook-driven title] (< 60 chars, keyword front-loaded)Meta description: [120-160 chars, keyword + CTA]Target keyword: [primary]Secondary keywords: [2-4 related terms]Search intent: [type]Content angle: [differentiator]+Target length: [≥ 1000 words]-## [H2 — answers the core question first]+Featured image: [role + concept]+Inline images: [3+ planned with role + placement]++## Table of Contents+## [H2 — opening hook + answers the core question first]## [H2 — next most important subtopic]## [H2 — practical examples / case studies]## [H2 — common mistakes]## FAQ```-5. **Present outline for approval** before writing. If spawned by seo-analysis with+7. **Present outline for approval** before writing. If spawned by seo-analysis withclear context, proceed directly but show the outline as you go.### Landing pages@@ -168,11 +190,43 @@ key phrases, tables for comparisons. One idea per paragraph.language. No stuffing.### Deliverables for blog posts:-1. Full post in markdown with heading hierarchy (H1 → H2 → H3)-2. SEO metadata: title tag (< 60 chars), meta description (120-160 chars), URL slug-3. JSON-LD structured data (`Article`/`BlogPosting` + `FAQPage` if FAQ included)-4. Internal linking plan (pages to link to and from)-5. Publishing checklist+1. Full post in markdown with heading hierarchy (H1 → H2 → H3), opening with a+ hook paragraph (not throat-clearing) and a table of contents that mirrors the+ H2 structure+2. **Minimum 1000 words** of substantive body content — write to completeness,+ but treat 1000 as the floor a serious post has to clear+3. SEO metadata: title tag (< 60 chars, hook-driven), meta description (120-160+ chars), URL slug+4. **Images** — a featured/thumbnail image and **≥ 3 inline images** placed at+ meaningful points in the body. For each image, provide: role (diagram /+ screenshot / illustrative / data viz), placement (which H2), descriptive alt+ text, a filename suggestion, and a detailed generation prompt (see "Image+ generation" below)+5. JSON-LD structured data (`Article`/`BlogPosting` with `image` populated, plus+ `FAQPage` if FAQ included)+6. Internal linking plan (pages to link to and from)+7. Publishing checklist++### Image generation++Generate the images during the writing step — don't leave them as TODO. Pick the+first surface that's actually available in the current host, in this order:++1. **Codex or other host with native image generation** (gpt-image, Imagen, etc.)+ — generate the image inline. Save to `images/` or the path the user specifies.+2. **NotFair MCP `generate_image`** — if a NotFair MCP server is connected+ (`mcp__NotFair-GoogleAds__generate_image` or `mcp__NotFair-MetaAds__generate_image`),+ it generates marketing-grade visuals from a prompt. Works for blog imagery too.+3. **No image-gen surface available** — output the detailed prompt for each image+ so the user can run it in their own tool (Midjourney, DALL·E, Figma AI, etc.),+ and place the markdown image tag with the planned filename so the post is ready+ to drop the asset in.++Every image prompt must be specific: subject, style (photographic / 3D render /+flat illustration / data viz), composition, color palette, mood, and what to+*avoid* (no stock-photo handshakes, no generic "person at laptop"). Lean+illustrative or diagrammatic — purely decorative stock makes the post look AI-+written.### Deliverables for landing pages:1. Full page copy in markdown with heading hierarchy and CTA placements marked@@ -213,9 +267,11 @@ language. No stuffing.## Publishing Checklist- [ ] Title tag and meta description set- [ ] URL slug configured-- [ ] Structured data added+- [ ] Structured data added (with `image` populated)+- [ ] Featured/thumbnail image uploaded; set as Open Graph image+- [ ] All inline images uploaded, alt text set, lazy-loaded below the fold+- [ ] Table of contents renders with working anchor links- [ ] Internal links placed (both directions)-- [ ] Open Graph image added- [ ] Canonical URL set to self- [ ] Mobile rendering verified```@@ -226,6 +282,20 @@ language. No stuffing.Before delivering, verify against every check. Fix failures before presenting.+### Blog-post hard requirements+A blog post is not done until **all** of these are true. No exceptions.++- [ ] Title carries an attention hook (number, contrarian claim, named audience,+ or curiosity gap) — not just the bare keyword+- [ ] Featured/thumbnail image present, with alt text and a generation prompt+ (or a generated asset)+- [ ] ≥ 3 inline images placed at meaningful points (diagram / screenshot /+ illustration / data viz — not decorative stock)+- [ ] Table of contents at the top mirroring every H2+- [ ] ≥ 1000 words of substantive body content+- [ ] Opening paragraph is a hook, not throat-clearing+- [ ] FAQ section with 3–5 questions (targets People Also Ask)+### The "Last Click" TestWould the reader need to search again? If yes, the content isn't done.diff --git a/seo/content-writer/references/content-writing.md b/seo/content-writer/references/content-writing.mdindex 54c48161..daf999b5 100644--- a/seo/content-writer/references/content-writing.md+++ b/seo/content-writer/references/content-writing.md@@ -10,10 +10,12 @@ System, E-E-A-T quality rater guidelines, and Search Central documentation.1. [E-E-A-T Framework](#e-e-a-t-framework)2. [Helpful Content Signals](#helpful-content-signals)3. [Blog Posts](#blog-posts)-4. [Landing Pages](#landing-pages)-5. [Search Intent Matching](#search-intent-matching)-6. [On-Page SEO Checklist](#on-page-seo-checklist)-7. [Anti-Patterns](#anti-patterns)+4. [Title Hook Patterns](#title-hook-patterns)+5. [Images](#images)+6. [Landing Pages](#landing-pages)+7. [Search Intent Matching](#search-intent-matching)+8. [On-Page SEO Checklist](#on-page-seo-checklist)+9. [Anti-Patterns](#anti-patterns)---@@ -67,14 +69,24 @@ Informational and commercial-investigation intent: "how to", "what is", "best X"### Structure```-H1: Primary topic (one per page, includes primary keyword)+H1: Hook-driven title (one per page, includes primary keyword)+Featured image (above the fold, used as thumbnail + Open Graph)+Hook paragraph (breaks reader expectation, signals what's different)+Table of Contents (anchor links to every H2)H2: Major section (answer core question first — don't bury the lead)+ Inline image #1 (diagram, screenshot, comparison, or data viz)H3: Supporting detailH2: Practical examples / case studies+ Inline image #2H2: Common mistakes+ Inline image #3H2: FAQ (targets People Also Ask)```+A serious blog post is ≥ 1000 words, ships with a hook-driven title, a table of+contents, a featured image, and at least 3 inline images. Posts below that bar+read like AI filler and don't earn the click.+### Writing Rules1. **Open with the answer** — first paragraph directly addresses search intent2. **Show experience** — specific examples, data, "we found that..." language@@ -93,18 +105,115 @@ H1: Primary topic (one per page, includes primary keyword)- After that: synonyms and natural language — no stuffing### Required Sections-1. Opening hook — state the problem, signal you'll answer concretely-2. Core content — main answer with clear H2/H3 structure-3. Practical examples — at least one real scenario-4. Common mistakes — what people get wrong-5. Next steps / CTA-6. FAQ (3-5 questions targeting related searches)+1. **Featured image** — set above the fold, doubles as thumbnail + Open Graph+2. **Opening hook (2–4 sentences)** — break expectation. State what most people+ get wrong, the counterintuitive truth, or the specific gap this post closes.+ No "in today's digital landscape" throat-clearing+3. **Table of contents** — anchor links to every H2, rendered at the top+4. **Core content** — main answer with clear H2/H3 structure, ≥ 1000 words+5. **Inline images (≥ 3)** — placed at meaningful points (one per major section+ is a good rule of thumb): diagram, screenshot, comparison table-as-image, or+ data viz. No decorative stock+6. **Practical examples** — at least one real scenario with concrete numbers+7. **Common mistakes** — what people get wrong+8. **Next steps / CTA**+9. **FAQ** (3–5 questions targeting related searches)### Metadata-- **Title tag:** < 60 chars, keyword front-loaded, includes value prop+- **Title tag:** < 60 chars, keyword front-loaded, includes value prop and hook- **Meta description:** 120-160 chars, keyword + reason to click- **URL slug:** short, readable, keyword-rich. `/blog/optimize-title-tags`-- **Structured data:** `Article` or `BlogPosting`; add `HowTo` for tutorials, `FAQPage` for FAQ sections+- **Structured data:** `Article` or `BlogPosting` (with `image` populated); add+ `HowTo` for tutorials, `FAQPage` for FAQ sections++---++## Title Hook Patterns++The bare keyword as a title ("Facebook SEO Optimization") loses to anything with+a hook in the same SERP. Pick one of these patterns. Keep ≤ 60 chars and keep+the primary keyword front-loaded.++### 1. Number + specificity+Numbers earn the click because they imply scoped, finite content.+- "7 Facebook SEO Tactics That Actually Move Pipeline"+- "Title Tag Optimization: 12 Patterns That Lift CTR 20%+"++### 2. Audience-named guide+Naming the audience filters for the right reader and signals depth.+- "Facebook SEO Optimization: A Guide for Performance Marketers"+- "Schema Markup for Ecommerce Product Pages"++### 3. Contrarian / myth-break+A confident counter-claim creates a curiosity gap.+- "Facebook SEO Is Not Dead — You're Measuring It Wrong"+- "Stop Writing 3,000-Word Blog Posts. Here's What Ranks Instead."++### 4. Outcome promise + proof+A specific result, backed by something that signals the post will deliver it.+- "How We Cut CPA 38% Without Touching Bids"+- "The Title Tag Rewrite That Lifted Organic Traffic 2.3x"++**What disqualifies a title:** vague modifiers ("ultimate", "complete"), the+keyword stated twice, ChatGPT-default formatting ("A Comprehensive Guide to…"),+or a hook so clickbait it overpromises what the body delivers.++---++## Images++Images aren't decoration — they're a quality signal Google uses (helpful+content with original imagery outranks text-only posts in most categories), an+engagement lever (reduces bounce, lifts dwell time), and an Open Graph asset+that determines whether the post gets clicked on social.++### Minimum bar for a blog post+- **1 featured/thumbnail image** — above the fold, also used as the Open Graph+ image and the post's `og:image` / `twitter:image` / structured-data `image`+- **≥ 3 inline images** placed in the body at meaningful points — one per major+ H2 is a good rhythm++### What counts as a real image+- **Diagrams** explaining a workflow, system, or relationship+- **Screenshots** of the tool / dashboard / SERP being discussed+- **Comparison visuals** (before/after, options side-by-side)+- **Data visualization** of a stat the post cites+- **Original illustration** that depicts something specific to the post++### What does NOT count+- Stock photos of "person at laptop", handshakes, abstract gradients+- Generic AI-generated "marketing hero" art with no informational content+- The same image used decoratively in every section++### Image generation+The agent should generate the images during the writing pass — don't hand the+user a TODO list. Pick the first available surface:++1. **Host-native image gen** (Codex `gpt-image`, Gemini Imagen, etc.) — use it+ directly. Save to `images/` or the path the user picks.+2. **NotFair MCP** — if a NotFair MCP is connected, `generate_image` produces+ marketing-grade visuals from a prompt; works for blog imagery too.+3. **No image-gen available** — emit the detailed prompt for each image along+ with the markdown image tag (with the planned filename) so the post is ready+ to slot the asset in.++### Writing an image prompt+Every prompt names: subject, style (photographic / 3D render / flat illustration+/ data viz / diagram), composition, color palette, mood, and an explicit avoid+list. Example:++> Featured image for a blog post on Facebook SEO optimization. Flat vector+> illustration, isometric perspective. A stylized Facebook page card with search+> bars, magnifying glass, and ranking arrows around it. Color palette: NotFair+> orange (#FF6B35) accents on a clean off-white background, navy line work. No+> stock-photo people, no generic laptop, no abstract gradients. Square 1200×1200.++### Image SEO+- File name: keyword-relevant, hyphen-separated. `facebook-seo-page-checklist.png`+- Alt text: descriptive of what the image shows, not keyword-stuffed+- Format: WebP or AVIF preferred; PNG for diagrams with hard edges+- Width: 1200px (featured), 800–1000px (inline), 2x for retina+- Lazy-load every image except the featured one---@@ -207,12 +316,19 @@ that format — don't fight the SERP.### Should-Have- [ ] Structured data (Article, Product, Service, HowTo, FAQPage)-- [ ] Table of contents for long content (> 1500 words)- [ ] External links to authoritative sources- [ ] Author byline with credentials- [ ] Last-updated date for evergreen content- [ ] Open Graph + Twitter Card meta tags+### Required for blog posts (in addition to Must-Have)+- [ ] Hook-driven title — number, contrarian claim, named audience, or curiosity gap+- [ ] Table of contents at the top with working anchor links+- [ ] Featured/thumbnail image (also used as `og:image` / structured-data `image`)+- [ ] ≥ 3 inline images (diagram, screenshot, comparison, or data viz)+- [ ] ≥ 1000 words of substantive body content+- [ ] FAQ section with 3–5 questions targeting People Also Ask+---## Anti-Patterns