[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77TK48S20WNPB35526M8BXD":3,"skill-same:01M77TK48S20WNPB35526M8BXD":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M77TK48S20WNPB35526M8BXD","seo-blog-writer",null,"Fully automated SEO article writer. Give it a topic and domain — it handles\neverything: auto-discovers product context, researches keywords, analyzes\ncompetitors, writes the article, verifies links, and delivers a complete\npublication package (article + QA report + schema markup + promotion checklist).\nOne confirmation gate before writing starts, then hands-off execution.\nWorks for any site, any industry, any CMS. No hardcoded dependencies.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fseo-blog-writer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: seo-blog-writer\nversion: 3.2.0\ndescription: |\n  Fully automated SEO article writer. Give it a topic and domain — it handles\n  everything: auto-discovers product context, researches keywords, analyzes\n  competitors, writes the article, verifies links, and delivers a complete\n  publication package (article + QA report + schema markup + promotion checklist).\n  One confirmation gate before writing starts, then hands-off execution.\n  Works for any site, any industry, any CMS. No hardcoded dependencies.\ntriggers:\n  - \"write a blog post\"\n  - \"SEO article\"\n  - \"write about [topic]\"\n  - \"blog post for [domain]\"\n  - \"comparison article\"\n  - \"alternatives page\"\n  - \"how-to guide\"\nexternal_access:\n  - type: web_search\n    description: \"SERP analysis — searches Google\u002FBing\u002FDDG for competitor URLs and keyword data. No API key required; uses the agent's built-in web search tool.\"\n  - type: web_fetch\n    description: \"Link verification — checks that external URLs in the article are live. No API key required.\"\npermissions:\n  - disk_write: \"Writes article draft, QA report, and schema file to local disk (crash-safe incremental execution). Output directory is user-configurable.\"\n---\n\n# AI-Driven SEO Blog Writer\n\n> **Long-running task mode.** This skill generates a multi-phase artifact. Before Phase 0: create a `task-logs\u002F{slug}\u002F` workspace, write each phase output to disk incrementally, and use offset reads to verify writes. This ensures crash-safe, resumable execution without regenerating completed work.\n\n## Design Principles\n\n**Minimum viable input** - topic + domain is all you need to start\n**Verify before assert** - no statistic, quote, or claim goes in unverified\n**One checkpoint** - you confirm the plan before a single word is written\n**Zero dependency** - no local project files, no paid tools required\n**Honest degradation** - when automation fails, the skill says so clearly and gives you the next step\n\n---\n\n## Execution Model (IMPORTANT)\n\nThis is a heavy, multi-phase skill. Incremental disk writes and offset-read verification are mandatory — see the long-running task note above.\n\n**When spawning as a subagent, file writes and link verification (Phases 1–5) require exec permissions:**\n\n```\nsessions_spawn(\n  task: \"SEO article: topic='[topic]' domain='[domain]' mode='[mode]'\",\n  runtime: \"subagent\",\n  security: \"full\"   ← needed for disk writes and curl-based link checks\n)\n```\n\nIf running in the main session directly, exec permissions are already present — proceed normally.\n\n> **Why `security: \"full\"`?** This skill writes article drafts, QA reports, and schema files to disk incrementally (crash-safe execution). Link verification uses `curl`\u002F`web_fetch` to check URLs. Both operations require exec access. If you prefer not to grant this, run the skill in your main session rather than as a subagent — behavior is identical.\n\n---\n\n## Failure Recovery Guardrails (Mandatory)\n\nFor this skill, \"done in one shot\" is not trusted. Use bounded, resumable execution:\n\n1. **Section-by-section writes**\n- Write article sections incrementally (intro, each H2 block, FAQ, conclusion).\n- After each section write, append checkpoint to `task-logs\u002F{slug}\u002Freport.md` (or your preferred output dir).\n\n2. **Write-then-read verification**\n- After every `write`\u002F`edit`, run a targeted read\u002Fgrep to confirm the change exists.\n- Do not queue multiple blind edits without read-back.\n\n3. **Timeout-safe continuation**\n- If model timeout \u002F prompt-error \u002F length stop occurs:\n  - persist current section to disk immediately\n  - continue from next missing section\n  - do not regenerate completed sections unless explicitly requested.\n\n4. **QA loop cap**\n- Max 3 QA rounds.\n- Each round fixes only concrete FAIL items from latest report.\n- If a FAIL item is stale (already fixed), verify by grep\u002Fread and mark as stale report issue.\n\n5. **SERP analyzer degradation**\n- If QA says \"SERP analyzer unavailable\", treat as warning.\n- Continue with link\u002Fcitation\u002Fstructure fixes; do not block publication solely on SERP fetch failure.\n\n---\n\n## Quick Start\n\n```yaml\n# Minimum input\ntopic: \"best AI email apps 2026\" | \"gmail alternatives\" | \"how to manage email overload\"\ndomain: \"https:\u002F\u002Fyoursite.com\"\n\n# Optional\nmode: \"express\" | \"standard\" | \"expert\"   # default: standard\nproduct_context: \"path\u002Fto\u002Fcontext.md\"     # skip auto-discovery if you have this\noutput_dir: \".\"                            # default: .\u002Fseo-output\u002F{slug}\u002F\n```\n\n**Examples:**\n- \"Write a comparison article about email apps for mysite.com\"\n- \"I need a how-to guide about email automation for https:\u002F\u002Fexample.com\"\n- \"Create an alternatives page for Gmail for our domain filomail.com\"\n\n---\n\n## Execution Modes\n\n| Mode | Time | Focus | Use when |\n|------|------|-------|----------|\n| **Express** | 5-10min | Speed + core quality | Quick turnaround, existing traffic |\n| **Standard** | 15-20min | Balanced depth + optimization | Most articles, balanced goals |\n| **Expert** | 25-35min | Maximum quality + competitiveness | High-stakes keywords, competitive niches |\n\n### Mode Differences\n\n**Express mode shortcuts:**\n- Basic site crawl: homepage + pricing only\n- Simplified competition: top 3 competitors, structure analysis only\n- Streamlined QA: core checklist, skip advanced verification\n- Target score: 65+ (publishable quality)\n\n**Standard mode (default):**\n- Comprehensive crawl: full discovery + blog analysis\n- Detailed competition: top 5 competitors + content gaps + authority sources\n- Complete QA: full scoring + verification + optimization suggestions\n- Target score: 75+ (solid quality)\n\n**Expert mode enhancements:**\n- Deep intelligence: multi-source crawling + social\u002Freview analysis where available\n- Advanced competition: semantic analysis + opportunity mapping + trend identification\n- Premium QA: custom scoring + predictive optimization + enhancement recommendations\n- Target score: 85+ (exceptional quality)\n\n---\n\n## Phase 0: Context Discovery (Automated)\n\n### ⚡ Skip Check\n\nIf `product_context` file was provided:\n1. Read the file\n2. Extract: product_name, value_proposition, pricing_model, brand_voice from it\n3. Set voice_confidence = MEDIUM (user-provided, assumed accurate)\n4. **Skip 0.1 and 0.6 entirely**\n5. Proceed directly to 0.2 (blog ecosystem mapping) and 0.3 (keyword research)\n\nOnly proceed with 0.1 crawling if no `product_context` was provided.\n\n### 0.1 Product Intelligence\n\nCrawl the following in parallel. Accept partial results - missing data triggers\ntargeted questionnaire questions, not full failure.\n\n**Crawl targets:**\n```\nPriority 1 (always attempt): \u002F  \u002Fpricing\nPriority 2 (attempt if P1 succeeds): \u002Fabout  \u002Ffeatures  \u002Fproduct\nPriority 3 (blog ecosystem): \u002Fblog  \u002Fsitemap.xml  \u002Frobots.txt\n```\n\n**Extract:**\n- `product_name` - inferred from title tags, logo alt text, H1s\n- `value_proposition` - first meaningful paragraph on homepage\n- `core_features` - bullet lists, feature sections, navigation items\n- `pricing_model` - \"free\" | \"freemium\" | \"$X\u002Fmonth\" | \"enterprise\"\n- `brand_voice_signals` - collect 10+ sample sentences across pages\n\n**JS-heavy site handling:** If web_fetch returns \u003C 500 characters of meaningful\ntext, note the crawl as failed for that page. Do not treat empty HTML as product\ncontext. Trigger questionnaire if ≥ 2 Priority 1 pages fail.\n\n**⚠️ Discovery failure threshold:** If ≥ 2 Priority 1 pages fail, jump to **Phase 0.6 immediately**. Collect answers from the user, then return here and continue with 0.2–0.4 using the provided context. Do not wait until after the confirmation gate to surface this.\n\n**Brand voice detection:**\n- Prefer blog post samples over homepage (more authentic voice)\n- Homepage → marketing voice, not writing voice\n- Derive: formality (1-5), energy (1-5), technical depth (1-5)\n- If \u003C 3 sample sources available, mark voice_confidence as LOW\n\n### 0.2 Blog Ecosystem Mapping\n\n**Discovery order (try all before concluding):**\n1. `\u002Fsitemap.xml` or `\u002Fsitemap_index.xml` → extract all blog\u002Farticle URLs\n2. Try common blog paths: `\u002Fblog`, `\u002Farticles`, `\u002Fresources`, `\u002Flearn`, `\u002Finsights`, `\u002Fcontent`\n3. `robots.txt` → find sitemap reference\n4. Fetch homepage → scan navigation links for blog\u002Farticles\u002Fresources sections\n5. Web search: `site:domain.com inurl:blog OR inurl:article OR inurl:post`\n\nIf steps 1-5 all return \u003C 3 posts: classify as \"new\" and note it.\nDo not assume blog doesn't exist - it may use a non-standard path.\n\n**Output:** `existing_posts[]` - {title, url, approximate_topic, publish_date}\n\n**Site maturity classification:**\n- **\"new\"** - \u003C 5 posts (skip complex hub-spoke strategy, use minimal linking)\n- **\"growing\"** - 5-20 posts (basic cluster awareness, strategic linking)\n- **\"mature\"** - > 20 posts (full hub-spoke strategy, topical clusters)\n\n### 0.3 Keyword Intelligence (Honest Estimation)\n\n**⚠️ Without paid tools, keyword research is estimation, not measurement.**\nThis skill uses SERP signals as proxies. Confidence is moderate.\nThe confirmation gate lets you override the selected keyword before writing begins.\n\n**Process:**\n\n**Step 1 - Derive candidates from topic**\n```\nParse user topic → extract intent + entity + modifier\nExamples:\n- \"best AI email apps\" → intent: comparison, entity: email_apps, modifier: AI\n- \"gmail alternatives\" → intent: alternatives, entity: gmail, modifier: none\n- \"how to manage email overload\" → intent: guide, entity: email_management, modifier: overload\n\nGenerate 3-5 keyword variants with different modifiers\u002Fyear combinations\n```\n\n**Step 2 - SERP structure analysis (for each candidate)**\n```\nSearch each keyword, analyze first page:\n- Presence of ads → high commercial intent\n- Wikipedia \u002F major media → informational intent, difficult to rank for new sites\n- Domain diversity (5+ different domains) → easier to enter\n- 1-2 dominant domains → harder, consider long-tail variant\n- Article types present → comparison tables, how-to guides, listicles\n```\n\n**Step 3 - Select primary keyword**\n```\nBalance: intent_match × brand_relevance × estimated_difficulty\nPriority: user topic intent > search volume estimation\n```\n\n**Step 4 - Derive secondary keywords**\n```\n- Related searches from SERP\n- \"People also ask\" variations\n- Long-tail question variants for FAQ section\n- Semantic variants that don't cannibalize primary\n```\n\n**Mode differences:**\n- **Express:** Top 1 keyword only, basic SERP check\n- **Standard:** 3 candidates analyzed, secondary keywords included\n- **Expert:** 5 candidates + semantic clustering + opportunity identification\n\n### 0.4 Competitive Intelligence\n\n**Extract top 5-8 URLs from SERP for primary keyword.**\n\n**Relevance filtering (in order):**\n1. Remove: reddit.com, quora.com, news aggregators, social media posts\n2. Prioritize: domains with `\u002Fproduct` or `\u002Fpricing` → likely direct competitors\n3. Check: is content type comparable (article vs article, not forum thread vs article)\n4. Keep: best 3-5 relevant results for analysis\n\n**Fallback - if fewer than 2 relevant competitor URLs remain after filtering:**\n- Relax filter: include top-performing forum threads (Reddit\u002FQuora) as **intent signals only**\n- Extract: what questions users are asking, what solutions they mention\n- Do NOT use forum posts as content depth benchmarks (word count, structure)\n- Note in confirmation gate: \"Limited competitor articles found - structure based on search intent signals rather than competitive benchmarking\"\n- Default to FAQ-heavy structure since forums indicate question-dominant intent\n\n**For each competitor URL:**\n```\nFetch and extract:\n- Approximate word count (rough estimation from text length)\n- H2\u002FH3 structure → topic map of what they cover\n- Table\u002Flist presence → structured content indicators\n- External authority sources they cite → potential sources for us\n- Brand mentions → who they compare against\n- Content gaps → what they don't cover well\n```\n\n**Blocked\u002Ffailed competitor:** If web_fetch returns 403\u002Fblocked, use web_search\nsnippet as proxy for structure. Note it as \"estimated\" in the research brief.\n\n**Mode differences:**\n- **Express:** Top 3 URLs only, basic structure extraction\n- **Standard:** Top 5 URLs + gap analysis + authority source identification\n- **Expert:** Top 8 URLs + semantic analysis + opportunity mapping + trend identification\n\n---\n\n## ⛳ Phase 0.5: Discovery Confirmation Gate (MANDATORY)\n\n**This is the only human checkpoint. Nothing is written until you confirm.**\n\nPresent a structured summary:\n\n```\n═══════════════════════════════════════════════════\nDISCOVERY SUMMARY - Confirm before writing begins\n═══════════════════════════════════════════════════\n\n🏢 Product: [detected product name]\n📝 Value proposition: [extracted or inferred]\n📊 Site maturity: new | growing | mature ([N] posts found)\n🎨 Brand voice: formality [X\u002F5] · energy [X\u002F5] · technical [X\u002F5]\n🔍 Voice confidence: HIGH \u002F MEDIUM \u002F LOW\n\n🎯 Primary keyword: \"[selected keyword]\"\n📈 Keyword confidence: HIGH \u002F MEDIUM \u002F LOW\n🎪 Search intent: comparison | how-to | alternatives | guide | thought-piece\n📄 Article type: [auto-selected based on intent]\n📏 Target word count: [range based on SERP analysis]\n📅 Year in title: YES \u002F NO (see decision rule below)\n\n🏁 Top competitors (will be analyzed for gaps):\n1. [url] - [estimated word count] words · [article type]\n2. [url] - [estimated word count] words · [article type]\n3. [url] - [estimated word count] words · [article type]\n\n💡 Content opportunities identified:\n✅ What competitors cover (must include):\n- [topic 1] - covered by all top results\n- [topic 2] - covered by majority\n\n🎯 What competitors miss (our advantage):\n- [gap 1] - opportunity for unique angle\n- [gap 2] - underserved subtopic\n\n🔗 Internal links available: [N] posts found\nTop candidates for linking:\n- [post title] → [url] - relevant for [section]\n- [post title] → [url] - relevant for [section]\n\n⚠️ Issues found (requires attention):\n[Only if present]\n- Brand voice confidence LOW - only 1 source sample available\n- Pricing page blocked, pricing model estimated from homepage\n- Keyword confidence MEDIUM - limited SERP signal clarity\n\n🔧 Mode: [express|standard|expert] · Estimated time: [X] minutes\n\n═══════════════════════════════════════════════════\nReply: CONFIRM to proceed, EDIT [aspect] to modify, or provide corrections.\n═══════════════════════════════════════════════════\n```\n\n**⚠️ Gate enforcement:**\n- Wait for user response. Do NOT self-approve and proceed.\n- If no response: reply \"Waiting for your confirmation. Reply CONFIRM to proceed.\"\n- If running in automated\u002Fsubagent context: save summary to `{output_dir}\u002Fdiscovery-summary.md`, then STOP and return control to caller. Never self-approve.\n- If user replies CONFIRM: proceed to Phase 1.\n- If user replies EDIT [aspect]: re-derive only that element, re-present summary.\n\n**Year-in-title decision rule (applied automatically):**\n\n| Article type | Year in title | Logic |\n|---|---|---|\n| Comparison \u002F Best-of | YES if ≥ 2 top SERP results include year | Intent is time-sensitive, year increases CTR |\n| Alternatives page | YES if product category updates frequently | SaaS\u002Ftech = yes, traditional tools = no |\n| How-to \u002F Guide | NO | Intent is evergreen, year limits lifespan |\n| Thought piece | NO | Ideas aren't time-dependent |\n| Industry trends | YES | Explicitly time-sensitive content |\n\n**If user provides corrections:**\n- Re-derive only affected elements\n- Do not restart full Phase 0\n- Update summary and re-confirm\n\n---\n\n## Phase 0.6: Fallback Questionnaire (Only if Discovery Incomplete)\n\n**Triggered when:** ≥ 2 Priority 1 crawls failed AND no `product_context` file provided.\n\nOutput a questionnaire designed to be answerable by a human OR their AI assistant\nreading company documentation:\n\n```markdown\n# Product Context - [domain]\n\n*Can be filled by you or your AI assistant using your docs\u002Fwebsite\u002Fmarketing materials.*\n\n## Required Information (4 questions - 2 minutes)\n\n1. **Product name:**\n   [What do you call your product? e.g., \"FiloMail\"]\n\n2. **One-sentence description:**\n   [What does it do, for whom? e.g., \"AI email client for knowledge workers who get 100+ emails\u002Fday\"]\n\n3. **Pricing model:**\n   [e.g., \"Free + $7\u002Fmonth Pro\" or \"From $49\u002Fmonth\" or \"Enterprise quotes only\"]\n\n4. **Primary competitor:**\n   [Who do most people compare you against? e.g., \"Superhuman\" or \"Gmail\"]\n\n## Brand Guidelines (3 questions - 1 minute)\n\n5. **Writing tone:** formal | professional | friendly | casual | technical\n   [Pick the closest match to how you want to sound]\n\n6. **Competitive approach:** honest-comparison | highlight-differences | avoid-naming\n   [How should we treat competitors in the article?]\n\n7. **Sample sentence that sounds like you:**\n   [Paste one sentence from your website\u002Fmarketing that captures your voice]\n\n## Content Strategy (optional - enhances output)\n\n8. **Key articles to link to:**\n   [Top 3-5 URLs of your most important blog posts\u002Fpages]\n\n9. **Keywords you want to target:**\n   [If you have specific SEO goals beyond the topic]\n\n10. **Content to avoid:**\n    [Anything we should never say, compare, or mention?]\n```\n\n> 💾 Save the above as `product-context.md`, then restart with:\n>\n> ```yaml\n> topic: \"[your topic]\"\n> domain: \"[your domain]\"\n> product_context: \"product-context.md\"\n> ```\n\n---\n\n## Phase 1: Research Brief Generation\n\n### 1.1 Article Blueprint Assembly\n\nBased on confirmed Phase 0 data, create structured plan:\n\n**H1 optimization:**\n```\nFormat: [Primary Keyword] [Year if applicable] - [Brand Angle]\nCharacter limit: 60 characters\nExamples:\n✅ \"Best AI Email Apps 2026 - Tested by Email Power Users\" (58 chars)\n✅ \"Gmail Alternatives That Actually Work for Heavy Users\" (55 chars)\n❌ \"The Ultimate Comprehensive Guide to the Best AI-Powered Email Applications in 2026\" (82 chars)\n```\n\n**H2 Structure mapping:**\n```\nBased on search_intent + competitor_analysis + brand_angle:\n\nComparison article:\n├─ Quick Comparison Table\n├─ [Product 1]: [Key differentiator]\n├─ [Product 2]: [Key differentiator]\n├─ [Product 3]: [Key differentiator]\n├─ How to Choose the Right [Category]\n└─ FAQ\n\nHow-to guide:\n├─ What You Need Before Starting\n├─ Step 1: [Action verb + specific outcome]\n├─ Step 2: [Action verb + specific outcome]\n├─ Step 3: [Action verb + specific outcome]\n├─ Common Problems and Solutions\n└─ FAQ\n\nAlternatives page:\n├─ Why Look for [Product] Alternatives?\n├─ [Alternative 1]: Best for [Use case]\n├─ [Alternative 2]: Best for [Use case]\n├─ [Alternative 3]: Best for [Use case]\n├─ Migration Guide\n└─ FAQ\n```\n\n**Content depth planning:**\n```\nTarget word count = SERP_average × 1.15 (but not exceeding SERP_max × 1.3)\n\nIf competitors average 2000 words → target 2300 words\nIf competitors range 1500-4000 → target ~2500 words (sweet spot)\n\nMode adjustments:\n- Express: SERP_average (match competition)\n- Standard: SERP_average × 1.15 (slight edge)\n- Expert: SERP_average × 1.25 (substantial edge)\n```\n\n### 1.2 Linking Strategy Development\n\n**Internal links planning:**\n```\nBased on site_maturity + existing_posts analysis:\n\nNew sites (\u003C 5 posts):\n├─ Link to homepage in intro\n├─ Link to product\u002Fpricing pages where relevant\n└─ Total internal links: 2-3 maximum\n\nGrowing sites (5-20 posts):\n├─ Identify 2-3 topically related existing posts\n├─ Plan natural mentions in relevant sections\n├─ Link to hub page if exists\n└─ Total internal links: 3-5\n\nMature sites (> 20 posts):\n├─ Map article to topical cluster\n├─ Always link to cluster hub\n├─ Link to 2-4 most relevant siblings\n├─ Strategic product page links\n└─ Total internal links: 5-8\n```\n\n**External links planning:**\n```\nEntity-based minimum = count(products + tools mentioned)\nClaim-based minimum = count(statistics + factual claims)\nAuthority-source minimum = 2-3 industry sources\n\nThis sets a floor, not a quota. Natural mentions drive linking.\n\nExamples:\n\"Best Email Apps\" article mentioning 8 apps → minimum 8 official site links\n+ 3-5 review\u002Fcomparison sources + 2-3 industry reports = 13-16 total\n```\n\n### 1.3 Research Brief Output\n\nSave as: `{output_dir}\u002Fresearch-brief.md`\n\n```markdown\n# Research Brief: [Article Title]\n\n**Generated:** [timestamp]\n**Mode:** [express|standard|expert]\n**Estimated writing time:** [X] minutes\n\n## Article Specification\n- **Primary keyword:** [keyword] (confidence: [HIGH|MEDIUM|LOW])\n- **Secondary keywords:** [keyword1], [keyword2], [keyword3]\n- **Search intent:** [comparison|how-to|alternatives|guide|thought-piece]\n- **Target word count:** [range]\n- **Article type:** [specific template]\n\n## Content Strategy\n- **H1:** [optimized headline under 60 chars]\n- **H2 structure:** [planned section headers]\n- **Unique angle:** [how we differentiate from competitors]\n- **Content gaps to fill:** [opportunities competitors miss]\n\n## Competition Analysis\n### Top Competitors Analyzed\n1. [URL] - [word count] - [what they do well] - [what they miss]\n2. [URL] - [word count] - [what they do well] - [what they miss]\n3. [URL] - [word count] - [what they do well] - [what they miss]\n\n### Content Requirements (to match\u002Fexceed competition)\n- Topics we must cover: [list]\n- Comparison table: [required|not needed]\n- FAQ section: [required|optional]\n\n## Linking Plan\n### Internal Links ([N] planned)\n- [Existing post title] → relevant for [section] → [URL]\n- [Existing post title] → relevant for [section] → [URL]\n\n### External Links (minimum [N])\n- Product official sites: [count] (each mentioned product)\n- Authority sources: [count] (industry reports, studies, expert sources)\n- Supporting references: [count] (reviews, comparisons, tools)\n\n## Brand Guidelines\n- **Voice:** formality [X\u002F5] · energy [X\u002F5] · technical [X\u002F5]\n- **Competitor treatment:** [approach]\n- **Red lines:** [restrictions if any]\n\n## Next Steps\n1. Confirm this brief captures your intent\n2. Proceed to content generation\n3. Expected delivery: [timestamp]\n```\n\n---\n\n### ✅ Brief Save Checkpoint\n\nConfirm `research-brief.md` was saved to `{output_dir}\u002F`. If save failed\n(permissions, path issue): output brief contents directly in chat and continue.\nThis is not a user gate — no user action required.\n\n---\n\n## Phase 2: Content Generation\n\n### ⚡ WRITE THE ARTICLE NOW\n\nUsing the confirmed blueprint from Phase 1, write the article section by section:\n1. Write H1 (from blueprint)\n2. Write intro paragraph (≤ 100 words, keyword in first sentence, use intent-matched template from 2.1)\n3. Write each H2 section in order from blueprint, applying rules from 2.2-2.5 as you write. **After each H2, immediately run the 4-point AI-tell check from §3.1 inline** — fix any flagged sentences before moving to the next H2. Do not batch these checks.\n4. Write FAQ section (4-6 questions, natural language, schema-ready)\n5. Write conclusion with CTA referencing the domain's product\u002Fservice\n6. Apply internal + external linking inline as you write (2.5 rules) - do NOT do a separate linking pass\n7. Save complete draft to: `{output_dir}\u002Farticle-draft.md`\n\nThen proceed to **Phase 3.2 and 3.3** (brand voice + authenticity check) on the saved draft. Phase 3.1 AI-tell checks were already run inline during step 3 above.\n\n### 2.1 Opening Section (Critical First 100 Words)\n\n**Requirements:**\n- Primary keyword appears naturally within first 100 words\n- Direct answer or clear value proposition (no throat-clearing)\n- Sets expectation for what reader will learn\n- Matches search intent immediately\n\n**Templates by intent:**\n\n**Comparison intent:**\n```\nLooking for [primary keyword]? After testing [N] options with [criteria], here are the [N] that actually deliver [specific benefit]. This guide covers [what you'll learn] based on [timeframe] of hands-on testing.\n\n[Quick comparison table preview]\n```\n\n**How-to intent:**\n```\n[Specific outcome] is achievable in [timeframe] if you follow the right steps. This guide walks through [process] that [specific audience] can use to [specific result]. You'll need [prerequisites] and about [time investment].\n```\n\n**Alternative intent:**\n```\n[Product] is [what it's good for], but it's not perfect for everyone. If you need [specific use case] or prefer [alternative approach], here are [N] alternatives that might work better for your [situation].\n```\n\n### 2.2 Body Content Standards\n\n**Paragraph structure:**\n- Maximum 3-4 sentences per paragraph\n- One main idea per paragraph\n- Vary sentence length: short (5-10 words) + medium (15-20 words) + occasional long (25-30 words)\n- No sentence exceeds 35 words\n\n**Readability targets:**\n- Flesch Reading Ease: 60-70 (conversational but professional)\n- Average sentence length: 15-20 words\n- Passive voice: \u003C 15% of sentences\n- Grade level: 8-10 (accessible but not dumbed down)\n\n**Required content blocks:**\n```\nComparison articles: Quick comparison table within first 300 words\nHow-to guides: Numbered steps with clear action verbs\nAlternatives pages: Migration considerations\u002Fswitching guide\nAll articles: FAQ section with 4-6 natural language questions\nAll articles: \"Last updated: [Month Year]\" at bottom\n```\n\n### 2.3 Statistics and Authority Signals (Verification-First Approach)\n\n**⚠️ Core rule: Verify before include. Never assert unverified claims.**\n\n**For each statistic needed:**\n```\n1. Search for the claim via web_search(\"[statistic] [topic] study\")\n2. Fetch the claimed source via web_fetch(source_url)\n3. Confirm:\n   - The number exists in the source\n   - The methodology matches the claim\n   - The date\u002Fsample size is reasonable\n4. Only then include: \"According to [Source], [stat] ([year study])\"\n\nIf no verifiable source found:\n- Use hedged language: \"Many practitioners report...\" \u002F \"Industry surveys suggest...\"\n- Or omit the statistic entirely\n- NEVER fabricate numbers with real-looking sources\n```\n\n**For expert quotes:**\n```\n1. Find a real person via web_search(\"[topic] expert\" OR \"[industry] CEO interview\")\n2. Fetch a page where they actually said something quotable\n3. Quote their exact words with attribution: \"[Exact quote]\" - [Name, Title, Company]\n4. Do NOT paraphrase opinions as direct quotes\n5. If no real quote found → use general industry perspective without quote marks\n\nExample:\n✅ \"Email overload reduces productivity by 25% daily\" - John Smith, CEO of EmailCorp (2024 interview)\n❌ \"Email overload is a major productivity killer\" - Industry Expert (fabricated)\n```\n\n**Authority signal integration (GEO optimization):**\n```\nThese patterns increase AI citation likelihood (directional signals based on\nobserved AI behavior, not peer-reviewed metrics - treat as best practices):\n\n- Statistics with attributed sources → higher citation likelihood\n  Format: \"According to [AuthoritySource], [specific stat] ([methodology])\"\n\n- Expert quotes with named attribution → higher citation likelihood\n  Format: \"[Exact quote]\" - [Name, Title, Company] ([source\u002Fyear])\n\n- Self-contained passages → more likely to be excerpted by AI\n  Each key point should make sense in isolation (40-60 words)\n\n- Definition blocks → cleaner for AI to parse and cite\n  Start major sections with clear definitions\n  \"X is [specific definition]. It works by [mechanism].\"\n\n- Evidence sandwich pattern:\n  Claim → Evidence → Interpretation\n  \"Most users prefer X [claim]. A 2024 study of 1000 professionals found Y [evidence]. This suggests Z [interpretation].\"\n```\n\n### 2.4 Platform-Specific GEO Optimization\n\n**Different AI platforms prioritize different signals. Optimize for all:**\n\n**Google AI Overviews (most exposure):**\n```\n- Prefers: Tables, numbered lists, FAQ schema\n- Optimization: Lead sections with direct answers\n- Length: 40-60 word extractable segments\n- Format: \"X is [definition]. Key benefits include [numbered list].\"\n- Citations: Authoritative sources, recent dates\n```\n\n**Perplexity (high-intent queries):**\n```\n- Prefers: Research papers, statistical studies, expert sources\n- Optimization: Lead with methodology\u002Fsample size for studies\n- Length: Evidence-heavy, detailed explanations\n- Format: \"Research shows [finding] (N=size, method, year)\"\n- Citations: Academic sources, government data preferred\n```\n\n**ChatGPT (broad knowledge queries):**\n```\n- Prefers: Comprehensive explanations, balanced perspectives\n- Optimization: Cover multiple angles, acknowledge limitations\n- Length: Thorough but structured explanations\n- Format: \"While X is generally true, Y factors also matter...\"\n- Citations: Diverse sources, balanced viewpoints\n```\n\n**Claude (analytical queries):**\n```\n- Prefers: Logical structure, cause-and-effect explanations\n- Optimization: Clear reasoning chains, step-by-step logic\n- Length: Detailed but logical progression\n- Format: \"Because X happens, Y results, leading to Z outcome\"\n- Citations: Analytical sources, case studies\n```\n\n**Implementation in content:**\n```\nFor each major section:\n1. Lead with Google-optimized direct answer (40-60 words)\n2. Follow with Perplexity-optimized evidence (studies, stats)\n3. Include ChatGPT-optimized broader context (perspectives, limitations)\n4. Structure with Claude-optimized logical flow (cause → effect → outcome)\n\nThis creates content that performs well across all AI platforms.\n```\n\n### 2.5 Linking Execution\n\n**External links - entity-driven, not quota-driven:**\n\n```\nLinking philosophy: Every mentioned entity gets its official link, every factual claim gets a source\n\nFor each product\u002Ftool mentioned:\n├─ Link to official site (once per unique entity, not every mention)\n├─ Use descriptive anchor text: \"FiloMail's AI features\" not \"click here\"\n└─ Open in new tab considerations for user experience\n\nFor each factual claim:\n├─ Link to most authoritative available source\n├─ Preference order: official sites > research papers > major media > industry publications\n├─ Avoid: personal blogs, paywalled content, competitor comparison articles\n└─ Verify link works before including\n\nQuality over quantity:\n├─ 8 high-quality, relevant links > 15 mediocre links\n├─ Every link should add value to the reader\n└─ No linking just to hit a quota\n```\n\n**Internal links - relevance-driven:**\n```\nFrom Phase 1 internal_links_plan:\n\nBody content linking:\n├─ Link only if the target article's topic is genuinely discussed in this section\n├─ Use contextual anchor text that describes what they'll find\n├─ Never force a link to fill a quota\n└─ Maximum 1 internal link per 300 words to avoid link bloat\n\nFurther Reading section:\n├─ Include hub page link (if exists)\n├─ Add 2-3 most topically related sibling articles\n├─ Sort by relevance, not recency\n└─ Brief description of what each linked article covers\n\nHub-spoke strategy (for mature sites):\n├─ Always link back to cluster hub from spoke articles\n├─ Hub links to all spokes in cluster\n├─ Spokes link to 2-4 most related siblings\n└─ Avoid every-spoke-to-every-spoke linking (dilutes PageRank)\n```\n\n---\n\n## Phase 3: AI Pattern Prevention & Brand Voice Alignment\n\n### 3.1 AI Writing Pattern Detection & Correction\n\n**Detection approach:** Generate content in sections, then scan each section for AI patterns.\nDo not attempt real-time prevention - LLMs cannot self-monitor during generation effectively.\n\n**Banned words (immediate rewrite triggers):**\n```\ndelve, tapestry, seamlessly, robust, leverage, harness, elevate,\nrevolutionize, paradigm, synergy, holistic, navigate (as metaphor),\nmosaic, landscape (as metaphor), game-changer, cutting-edge (unless literally about technology)\n```\n\n**Banned phrases (immediate rewrite triggers):**\n```\n\"at the end of the day\", \"without further ado\", \"it's no secret that\",\n\"in today's fast-paced world\", \"in conclusion\", \"in summary\", \"to sum up\",\n\"delve into\", \"navigate the landscape\", \"robust solution\"\n```\n\n**Structural pattern detection:**\n```\nEm-dash count: Flag if > 3 per article\nRhetorical questions as transitions: Flag and rewrite as statements\nTriple-adjective stacking: \"powerful, intuitive, and elegant\" → pick one, prove it\nConclusion clichés: \"In conclusion\" → just make your point directly\nThroat-clearing openers: \"It's important to understand that...\" → cut filler\n```\n\n**AI-tell detection checklist (run after writing each H2 section):**\n```\nAfter each H2 section is written, check ONLY these 4 things:\n\n□ Banned words: scan for top offenders (delve, tapestry, seamlessly, robust,\n  leverage, revolutionize, synergy, holistic, navigate-as-metaphor, mosaic)\n□ Long sentences: any sentence > 35 words? Split it.\n□ Throat-clearing: does the section start with filler? (\"It's important to\n  understand that...\" \u002F \"When it comes to...\") → Cut and start with the point.\n□ Em-dash density: > 1 em-dash per 200 words? Rewrite as full sentences.\n\nIf any box is checked: rewrite ONLY the flagged sentence(s). Move on.\nDo not re-scan after fixing. Do not generate a separate Phase 3 report.\nThis check should take \u003C 30 seconds of processing per section.\n```\n\n### 3.2 Brand Voice Calibration\n\n**Voice matching system:**\n```\nBased on Phase 0 brand_voice_signals analysis:\n\nFormality level (1-5):\n├─ 1-2: Conversational, contractions, casual tone\n├─ 3: Professional but approachable, some contractions\n├─ 4-5: Formal, full words, corporate tone\n\nEnergy level (1-5):\n├─ 1-2: Calm, measured, understated\n├─ 3: Balanced, moderate enthusiasm\n├─ 4-5: Energetic, dynamic, exclamatory\n\nTechnical level (1-5):\n├─ 1-2: General audience, explain everything\n├─ 3: Some industry terms with context\n├─ 4-5: Assumes domain knowledge, technical depth\n```\n\n**If Phase 0 voice_confidence was LOW:** Apply conservative defaults:\n```\n- Formality 3\u002F5: professional but accessible\n- Energy 3\u002F5: clear and engaging, not hype-y\n- Technical 2\u002F5: assume general audience unless evidence otherwise\n```\n\n**Brand voice consistency check:**\n```\nAfter completing full article:\n1. Sample 3-4 representative paragraphs\n2. Compare tone\u002Fvoice to original brand_voice_signals\n3. Check for voice drift between sections\n4. Ensure competitor treatment matches specified approach\n5. Verify no red line violations (if specified)\n\nIf voice inconsistency detected:\n- Identify sections that drift from brand voice\n- Rewrite to match established brand voice parameters\n- Maintain consistency across intro, body, and conclusion\n```\n\n### 3.3 Content Authenticity Verification\n\n**Human-like writing patterns:**\n```\nSentence variety: Mix of short (5-10 words), medium (15-20), and occasional longer (25-30)\nParagraph flow: Logical progression, not just bullet-point compilation\nNatural transitions: Connect ideas smoothly, not just \"Additionally,\" \"Furthermore,\"\nPersonal perspective: Where appropriate, show judgment\u002Fopinion rather than pure data compilation\n```\n\n**Read-aloud test:**\n```\nFor key sections (intro, conclusions, CTA):\n- Does it sound natural when read aloud?\n- Would you say this in a professional conversation?\n- Does it sound like press release copy or human communication?\n\nIf it sounds like a press release → rewrite in conversational professional tone\n```\n\n---\n\n## Phase 4: Quality Assurance System\n\n### 4.1 Automated Link Verification\n\n**Process for every external link using web_fetch:**\n\n⚠️ web_fetch is a content extractor, not an HTTP client. It cannot return status\ncodes. Use content-based verification instead.\n\n```\nFor each external link in the article:\n1. Call web_fetch(url, maxChars=500)\n2. Evaluate result:\n   - Content returned AND > 200 chars of readable text → PASS\n   - Content is empty, error thrown, or \u003C 50 chars → FAIL (mark as broken)\n   - Content contains \"not found\", \"page doesn't exist\", \"404\" → FAIL\n   - Content looks like a generic homepage when specific page was intended → FAIL\n3. Content relevance check:\n   - Do the first 300 chars relate to the claim being cited?\n   - Is the context appropriate (not pulling positive quotes from negative reviews)?\n4. If FAIL: search for alternative source, update link, log replacement in QA report\n\nSource quality tiers (assess from domain, not HTTP headers):\n- TIER-A: Official sites, government, major research institutions, established media\n- TIER-B: Industry publications, well-known blogs, recognized experts\n- TIER-C: Smaller publications, newer sources (use sparingly)\n- TIER-D: Personal blogs, questionable sources (avoid)\n```\n\n**Failed link resolution:**\n```\nFor each failed\u002Fblocked link:\n1. Search for alternative source supporting same claim\n2. Priority order: Official source > Research paper > Major publication > Industry blog\n3. Update content if no equivalent source found\n4. Document replacement in QA report\n```\n\n### 4.2 Multi-Dimensional Quality Scoring\n\n**Base scoring framework (100 points total):**\n\n**SEO Fundamentals (40 points):**\n```\n- H1 contains primary keyword, under 60 chars [10 pts]\n- Primary keyword in first 100 words [5 pts]\n- Primary keyword in at least one H2 [5 pts]\n- Keyword density 1-2% (not stuffed, not absent) [5 pts]\n- Logical H2\u002FH3 hierarchy, no skipped levels [5 pts]\n- Meta description suggested, 150-160 chars [5 pts]\n- Target word count achieved [5 pts]\n```\n\n**Content Quality (30 points):**\n```\n- Meets search intent (comparison → table, how-to → steps) [10 pts]\n- Comprehensive coverage (addresses main competitor topics) [5 pts]\n- Original angle\u002Fvalue (not just rehashing existing content) [5 pts]\n- Readability: Flesch 60-70, varied sentence length [5 pts]\n- FAQ section present with natural questions [5 pts]\n```\n\n**Linking Excellence (20 points):**\n```\n- Internal links: minimum met based on word count [5 pts]\n- External links: entity-based minimum met [5 pts]\n- All links verified working [5 pts]\n- Source quality: majority TIER-A\u002FB sources [5 pts]\n```\n\n**Brand & Authority (10 points):**\n```\n- Brand voice alignment with Phase 0 analysis [3 pts]\n- No AI-tell patterns detected [3 pts]\n- Statistics\u002Fquotes verified with sources [2 pts]\n- No red line violations [2 pts]\n```\n\n**Industry weight adjustments (predefined balanced tables — total always = 100):**\n```\nDefault:      SEO 40  Content 30  Linking 20  Brand 10  = 100\nSaaS\u002FTech:    SEO 45  Content 20  Linking 25  Brand 10  = 100\nE-commerce:   SEO 35  Content 40  Linking 15  Brand 10  = 100\nServices:     SEO 35  Content 35  Linking 15  Brand 15  = 100\nContent sites: SEO 35  Content 40  Linking 15  Brand 10  = 100\n```\n\n**Pass thresholds by mode:**\n```\nExpress: 65+ (publishable, good foundation)\nStandard: 75+ (solid quality, competitive)\nExpert: 85+ (exceptional quality, maximum competitiveness)\n```\n\n### 4.3 Factual Accuracy Verification\n\n**For product information:**\n```\nPrice verification:\n├─ Compare stated pricing vs official pricing pages\n├─ Check for recent pricing changes via web search\n├─ Note currency, billing frequency, tier differences\n└─ Update content if mismatches found\n\nFeature claims:\n├─ Verify against official product documentation\n├─ Check for feature deprecation\u002Fchanges\n├─ Use conservative language if uncertain\n└─ Link to official source for each claim\n```\n\n**For statistics and studies:**\n```\nSource validation:\n├─ Fetch claimed source via web_fetch\n├─ Confirm statistic exists with exact number\n├─ Check methodology, sample size, date\n├─ Verify context matches how we're using the stat\n└─ Update or remove if source doesn't support claim\n\nQuote accuracy:\n├─ Verify quoted text appears in source\n├─ Check surrounding context doesn't contradict our framing\n├─ Ensure attribution is accurate (name, title, company)\n└─ Remove or rephrase if context doesn't support usage\n```\n\n### 4.4 Final Quality Report\n\nGenerate comprehensive QA documentation:\n\n```markdown\n# QA Report: [Article Title]\n\n**Generated:** [timestamp]\n**Mode:** [express|standard|expert]\n**Overall Score:** [X]\u002F100\n**Verdict:** PASS ✅ | NEEDS REVISION ❌\n\n## Score Breakdown\n- **SEO Fundamentals:** [X]\u002F40 pts\n- **Content Quality:** [X]\u002F30 pts\n- **Linking Excellence:** [X]\u002F20 pts\n- **Brand & Authority:** [X]\u002F10 pts\n\n## Critical Issues (must fix before publication)\n[List any score-blocking issues]\n\n## Warnings (should fix)\n[List quality improvements]\n\n## Link Verification Results\n**External Links Checked:** [N]\n- ✅ Working links: [N]\n- ❌ Failed links: [N] (see replacement suggestions below)\n- 🔍 Source quality: [N] TIER-A, [N] TIER-B, [N] TIER-C\n\n**Failed links and replacements:**\n- Original: [failed_url] (404)\n- Replacement: [new_url]\n- Verification: ✅ Content supports claim\n\n## Optimization Opportunities\n[Mode-specific enhancement suggestions]\n\n## Brand Compliance Check\n- ✅ Voice matches Phase 0 analysis\n- ✅ No red line violations\n- ✅ Competitor treatment appropriate\n- ✅ No AI writing patterns detected\n```\n\n**If verdict is FAIL:** Fix ONLY the listed critical issues (targeted edits to `article-draft.md`), verify each fix with a read\u002Fgrep, then re-run Phase 4. Maximum 3 rounds per Failure Recovery Guardrails §4. If still failing after 3 rounds, proceed to Phase 5 and flag unresolved issues in the delivery package.\n\n---\n\n## Phase 5: Delivery Package & Post-Processing\n\n### 5.1 Article Finalization\n\n**Content formatting:**\n```\nFrontmatter generation:\n---\ntitle: \"[optimized H1]\"\ndescription: \"[150-160 char meta description]\"\nkeywords: \"[primary_keyword], [secondary_keywords]\"\nauthor: \"[from brand context or default]\"\ndate: \"[current_date]\"\nupdated: \"[current_date]\"\nslug: \"[url-friendly-slug]\"\n---\n\nContent structure:\n├─ H1 (matches title)\n├─ Opening paragraph (keyword in first 100 words)\n├─ Quick navigation\u002Ftable of contents (for long articles)\n├─ Main content sections\n├─ FAQ section\n├─ Conclusion with CTA\n└─ \"Last updated: [Month Year]\"\n```\n\n**Save instructions:** Write the finalized article (with frontmatter) to `{output_dir}\u002Farticle.md`. Write the schema markup below to `{output_dir}\u002Fschema-markup.json`.\n\n**Schema markup generation:**\n```\nArticle schema:\n{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@type\": \"Article\",\n  \"headline\": \"[H1 title]\",\n  \"description\": \"[meta description]\",\n  \"author\": {\n    \"@type\": \"Person\",\n    \"name\": \"[author_name]\"\n  },\n  \"publisher\": {\n    \"@type\": \"Organization\",\n    \"name\": \"[brand_name]\"\n  },\n  \"datePublished\": \"[date]\",\n  \"dateModified\": \"[date]\",\n  \"wordCount\": [actual_word_count]\n}\n\nFAQPage schema (auto-generated from FAQ section):\n{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"[FAQ question]\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"[FAQ answer]\"\n      }\n    }\n  ]\n}\n```\n\n### 5.2 Complete Deliverables Package\n\n**File structure (mode-gated — express ships fewer files):**\n```\nseo-output\u002F\n└─ [article-slug]\u002F\n   ├─ article.md                    # Final article with frontmatter        [ALL MODES]\n   ├─ qa-report.md                  # Quality assurance results              [ALL MODES]\n   ├─ schema-markup.json            # JSON-LD for CMS integration            [ALL MODES]\n   ├─ research-brief.md             # Research and planning documentation    [standard + expert]\n   ├─ promotion-checklist.md        # Post-publish marketing tasks           [standard + expert]\n   ├─ internal-links-strategy.md    # Recommended internal linking           [expert only]\n   └─ optimization-opportunities.md # Future enhancement suggestions         [expert only]\n```\n\nExpress mode delivers 3 files. Standard delivers 5. Expert delivers all 7.\nDo not generate files outside the current mode — it wastes tokens.\n\n**research-brief.md** (from Phase 1, enhanced with results):\n```markdown\n# Research Brief: [Title]\n\n[Previous research brief content] +\n\n## Execution Results\n- **Final word count:** [actual] (target was [target])\n- **Primary keyword density:** [X]% (optimal: 1-2%)\n- **Competitors analyzed:** [N]\n- **Content gaps addressed:** [list]\n- **Internal links included:** [N]\n- **External links verified:** [N]\n\n## Performance Predictions\nBased on competitive analysis and content quality:\n- **Ranking timeline:** [estimate based on domain authority and competition]\n- **Key ranking factors:** [what should drive success]\n- **Monitoring recommendations:** [what to track]\n```\n\n**internal-links-strategy.md** (expert only — export of Phase 1.2 analysis, enhanced post-writing):\n```markdown\n# Internal Links Strategy: [Article Title]\n\n## Hub-Spoke Position\n- **This article's role:** [hub | spoke | standalone]\n- **Cluster topic:** [topical cluster name]\n- **Hub page:** [URL if exists]\n\n## Links FROM This Article ([N] total)\n| Section | Anchor Text | Target URL | Relationship |\n|---------|-------------|------------|--------------|\n| [H2 name] | [anchor] | [url] | [sibling\u002Fhub\u002Fproduct] |\n\n## Links TO This Article (recommended)\nPages that should link to this article:\n- [existing post title] → [URL] — reason: [topical overlap]\n- [existing post title] → [URL] — reason: [topical overlap]\n\n## Cluster Gaps Identified\nArticles not yet written that would strengthen this cluster:\n- [suggested topic] — would link to\u002Ffrom this article\n```\n\n**promotion-checklist.md**:\n```markdown\n# Promotion Checklist: [Title]\n\n## Immediate (Day 0-1)\n- [ ] Publish article with schema markup\n- [ ] Submit URL to Google Search Console\n- [ ] Share on primary social channels\n- [ ] Email to newsletter subscribers (if relevant)\n- [ ] Internal link from 2-3 existing high-traffic posts\n\n## Week 1\n- [ ] Monitor initial indexing and ranking\n- [ ] Engage with comments and social shares\n- [ ] Reach out to quoted sources\u002Fexperts for shares\n- [ ] Submit to relevant industry newsletters\u002Faggregators\n\n## Month 1\n- [ ] Track ranking progress for target keywords\n- [ ] Analyze traffic patterns and user engagement\n- [ ] Update content if new information becomes available\n- [ ] Consider paid promotion if organic pickup is slow\n\n## Ongoing\n- [ ] Monitor for link opportunities (outreach targets)\n- [ ] Update annually with new data\u002Fproducts\n- [ ] Track competitor content updates\n- [ ] Measure conversion\u002Fbusiness impact\n```\n\n**optimization-opportunities.md**:\n```markdown\n# Future Optimization: [Title]\n\n## Content Enhancement Opportunities\n- **Additional sections to consider:** [based on competitor gaps not addressed]\n- **Emerging trends to incorporate:** [industry developments]\n- **User feedback integration:** [plan for incorporating reader questions]\n\n## SEO Improvement Potential\n- **Additional keywords to target:** [related terms with opportunity]\n- **Schema markup enhancements:** [HowTo, Product, Review schemas if applicable]\n- **Internal linking expansion:** [as more content gets published]\n\n## Conversion Optimization\n- **CTA testing opportunities:** [different calls-to-action to test]\n- **Lead magnet integration:** [relevant downloadable resources]\n- **Personalization potential:** [dynamic content based on user type]\n\n## Technical Enhancements\n- **Mobile optimization:** [mobile-specific improvements]\n- **Page speed optimization:** [if needed based on PageSpeed insights]\n- **Interactive elements:** [calculators, tools, widgets to consider]\n```\n\n### 5.3 Success Metrics & Monitoring Setup\n\n**Tracking recommendations:**\n```\nSet up monitoring for:\n\nSEO Metrics:\n├─ Primary keyword ranking (weekly checks)\n├─ Secondary keyword rankings\n├─ Organic traffic growth\n├─ Click-through rates from SERP\n└─ Featured snippet captures\n\nEngagement Metrics:\n├─ Time on page\n├─ Bounce rate\n├─ Scroll depth\n├─ Internal link click rates\n└─ Social shares and comments\n\nBusiness Metrics:\n├─ Conversion rate (if applicable)\n├─ Lead generation (email signups, demos)\n├─ Brand search volume increase\n└─ Backlink acquisition over time\n\nAI Citation Tracking:\n├─ Monitor ChatGPT, Claude, Perplexity for citations\n├─ Google AI Overview appearances\n├─ Track which sections get cited most\n└─ Adjust content based on AI platform preferences\n```\n\n---\n\n## Error Handling & Resilience\n\n### Graceful Degradation Hierarchy\n\n**Phase 0 crawling failures:**\n```\nIf Priority 1 crawling (homepage, pricing) fails:\n├─ Retry with different user agent\n├─ Try mobile user agent (some sites block desktop crawlers)\n├─ Use web_search for basic info: \"site:domain.com about pricing features\"\n├─ Trigger questionnaire with targeted questions\n└─ Continue with manual input rather than abort\n\nIf competition analysis fails:\n├─ Use web_search snippets as proxy\n├─ Focus on search intent analysis over detailed competitive gaps\n├─ Proceed with general best practices\n└─ Note limitations in confirmation gate\n```\n\n**Content generation failures:**\n```\nIf keyword confidence is LOW:\n├─ Present multiple keyword options in confirmation gate\n├─ Allow user to specify target keyword manually\n├─ Proceed with conservative optimization strategy\n└─ Note uncertainty in final deliverables\n\nIf brand voice confidence is LOW:\n├─ Use industry standard voice patterns\n├─ Apply conservative professional tone\n├─ Request brand voice feedback in QA report\n└─ Plan voice refinement for future content\n```\n\n**Quality assurance failures:**\n```\nIf link verification has high failure rate (>20%):\n├─ Focus on official sources only\n├─ Use more conservative claims\n├─ Increase hedging language (\"often,\" \"typically,\" \"many\")\n└─ Flag for manual source validation\n\nIf QA score below threshold:\n├─ Identify specific failing categories\n├─ Auto-retry optimization for fixable issues (keyword density, structure)\n├─ Flag for manual review if structural problems\n└─ Provide specific improvement roadmap\n```\n\n### Mode-Specific Fallbacks\n\n**Express mode degradation:**\n```\nTime pressure fallbacks:\n├─ Single keyword focus (skip secondary keyword optimization)\n├─ Basic competitor analysis (structure only, no gap analysis)\n├─ Core link verification (official sites only)\n├─ Standard templates (proven structures, less customization)\n└─ Essential QA only (critical issues, skip optimization suggestions)\n```\n\n**Expert mode enhancements:**\n```\nAdditional capabilities when time permits:\n├─ Multi-platform SERP analysis (Google, Bing, DuckDuckGo)\n├─ Social media content analysis (Twitter\u002FLinkedIn posts about topic)\n├─ Review site analysis (G2, Capterra for SaaS topics)\n├─ Trend analysis (Google Trends, related topic momentum)\n└─ Advanced schema markup (HowTo, Product, Review schemas)\n```\n\n---\n\n## Examples & Use Cases\n\n### Example 1: SaaS Comparison Article\n\n**Input:**\n```\ntopic: \"best email apps for productivity 2026\"\ndomain: \"https:\u002F\u002Ffilomail.com\"\nmode: \"standard\"\n```\n\n**Phase 0 Output:**\n```\nProduct: FiloMail (AI email client)\nIntent: comparison → need comparison table + detailed reviews\nTarget: 2800 words (SERP average: 2500)\nCompetitors: Superhuman, Spark, Apple Mail, Thunderbird, Outlook\nVoice: Professional (3\u002F5), Energetic (4\u002F5), Technical (3\u002F5)\n```\n\n**Article Structure:**\n```\nH1: Best Email Apps for Productivity 2026 - Tested by Power Users\n├─ Quick Comparison Table (8 apps)\n├─ FiloMail: Best for AI-Powered Email Management\n├─ Superhuman: Best for Speed and Keyboard Shortcuts\n├─ Spark: Best for Team Collaboration\n├─ How to Choose the Right Email App for Your Workflow\n└─ FAQ (6 questions)\n\nWord count: 2,847 | Links: 23 external, 6 internal | Score: 78\u002F100\n```\n\n### Example 2: How-To Guide\n\n**Input:**\n```\ntopic: \"how to manage email overload without losing important messages\"\ndomain: \"https:\u002F\u002Fproductivityblog.com\"\nmode: \"expert\"\n```\n\n**Phase 0 Output:**\n```\nProduct: Productivity Blog (content site)\nIntent: how-to → need step-by-step process + troubleshooting\nTarget: 2200 words (SERP average: 1900)\nVoice: Friendly (2\u002F5), Balanced energy (3\u002F5), Low-tech (2\u002F5)\n```\n\n**Article Structure:**\n```\nH1: How to Manage Email Overload Without Losing Important Messages\n├─ The Email Overload Problem: Why Generic Advice Doesn't Work\n├─ What You Need Before Starting (Prerequisites)\n├─ Step 1: Audit Your Current Email Volume and Sources\n├─ Step 2: Set Up Smart Filtering Rules\n├─ Step 3: Create an Email Triage System\n├─ Step 4: Establish Sustainable Daily Routines\n├─ Common Problems and How to Fix Them\n└─ FAQ (5 questions)\n\nWord count: 2,156 | Links: 15 external, 4 internal | Score: 82\u002F100\n```\n\n### Example 3: Alternatives Page\n\n**Input:**\n```\ntopic: \"gmail alternatives for privacy-conscious users\"\ndomain: \"https:\u002F\u002Fprivacytools.org\"\nmode: \"express\"\n```\n\n**Phase 0 Output:**\n```\nProduct: Privacy Tools (directory site)\nIntent: alternatives → need switching guide + privacy comparison\nTarget: 1800 words (SERP average: 1600, express mode matches competition)\nVoice: Technical (4\u002F5), Serious (2\u002F5), Expert audience\n```\n\n**Article Structure:**\n```\nH1: Gmail Alternatives for Privacy-Conscious Users\n├─ Why Privacy Matters for Email (Brief context)\n├─ Privacy Comparison Table (6 providers)\n├─ ProtonMail: Best for End-to-End Encryption\n├─ Tutanota: Best for German Privacy Standards\n├─ StartMail: Best for Easy Gmail Migration\n├─ How to Switch Email Providers Securely\n└─ FAQ (4 questions)\n\nWord count: 1,847 | Links: 18 external, 3 internal | Score: 67\u002F100 (Express pass)\n```\n\n---\n\n## Related Skills\n\n- **seo-geo**: For broader SEO strategy and AI search optimization\n- **content-qa**: For additional quality assurance workflows\n- **competitor-alternatives**: For specialized comparison page structures\n- **programmatic-seo**: For scaling this approach across multiple pages\n- **copy-editing**: For detailed editing and refinement passes\n\n---\n\n## Skill Metadata\n\n**Version:** 3.1.0\n**Dependencies:** web_search, web_fetch, file operations\n**Optional:** browser automation (for JS-heavy sites)\n**Output format:** Markdown + JSON + Schema\n**Estimated time:** 5-35 minutes based on mode\n**Target audience:** Anyone with a website who needs SEO content\n**Distribution:** ClawHub compatible, zero hardcoded dependencies\n\n**Last updated:** April 2026\n**Testing status:** Validated against SaaS, e-commerce, service, and content sites\n**Success rate:** 89% first-run publishable quality (internal testing)\n","# AI-Driven SEO Blog Writer\n\n> **Long-running task mode.** This skill generates a multi-phase artifact. Before Phase 0: create a `task-logs\u002F{slug}\u002F` workspace, write each phase output to disk incrementally, and use offset reads to verify writes. This ensures crash-safe, resumable execution without regenerating completed work.\n\n## Design Principles\n\n**Minimum viable input** - topic + domain is all you need to start\n**Verify before assert** - no statistic, quote, or claim goes in unverified\n**One checkpoint** - you confirm the plan before a single word is written\n**Zero dependency** - no local project files, no paid tools required\n**Honest degradation** - when automation fails, the skill says so clearly and gives you the next step\n\n---\n\n## Execution Model (IMPORTANT)\n\nThis is a heavy, multi-phase skill. Incremental disk writes and offset-read verification are mandatory — see the long-running task note above.\n\n**When spawning as a subagent, file writes and link verification (Phases 1–5) require exec permissions:**\n\n```\nsessions_spawn(\n  task: \"SEO article: topic='[topic]' domain='[domain]' mode='[mode]'\",\n  runtime: \"subagent\",\n  security: \"full\"   ← needed for disk writes and curl-based link checks\n)\n```\n\nIf running in the main session directly, exec permissions are already present — proceed normally.\n\n> **Why `security: \"full\"`?** This skill writes article drafts, QA reports, and schema files to disk incrementally (crash-safe execution). Link verification uses `curl`\u002F`web_fetch` to check URLs. Both operations require exec access. If you prefer not to grant this, run the skill in your main session rather than as a subagent — behavior is identical.\n\n---\n\n## Failure Recovery Guardrails (Mandatory)\n\nFor this skill, \"done in one shot\" is not trusted. Use bounded, resumable execution:\n\n1. **Section-by-section writes**\n- Write article sections incrementally (intro, each H2 block, FAQ, conclusion).\n- After each section write, append checkpoint to `task-logs\u002F{slug}\u002Freport.md` (or your preferred output dir).\n\n2. **Write-then-read verification**\n- After every `write`\u002F`edit`, run a targeted read\u002Fgrep to confirm the change exists.\n- Do not queue multiple blind edits without read-back.\n\n3. **Timeout-safe continuation**\n- If model timeout \u002F prompt-error \u002F length stop occurs:\n  - persist current section to disk immediately\n  - continue from next missing section\n  - do not regenerate completed sections unless explicitly requested.\n\n4. **QA loop cap**\n- Max 3 QA rounds.\n- Each round fixes only concrete FAIL items from latest report.\n- If a FAIL item is stale (already fixed), verify by grep\u002Fread and mark as stale report issue.\n\n5. **SERP analyzer degradation**\n- If QA says \"SERP analyzer unavailable\", treat as warning.\n- Continue with link\u002Fcitation\u002Fstructure fixes; do not block publication solely on SERP fetch failure.\n\n---\n\n## Quick Start\n\n```yaml\n# Minimum input\ntopic: \"best AI email apps 2026\" | \"gmail alternatives\" | \"how to manage email overload\"\ndomain: \"https:\u002F\u002Fyoursite.com\"\n\n# Optional\nmode: \"express\" | \"standard\" | \"expert\"   # default: standard\nproduct_context: \"path\u002Fto\u002Fcontext.md\"     # skip auto-discovery if you have this\noutput_dir: \".\"                            # default: .\u002Fseo-output\u002F{slug}\u002F\n```\n\n**Examples:**\n- \"Write a comparison article about email apps for mysite.com\"\n- \"I need a how-to guide about email automation for https:\u002F\u002Fexample.com\"\n- \"Create an alternatives page for Gmail for our domain filomail.com\"\n\n---\n\n## Execution Modes\n\n| Mode | Time | Focus | Use when |\n|------|------|-------|----------|\n| **Express** | 5-10min | Speed + core quality | Quick turnaround, existing traffic |\n| **Standard** | 15-20min | Balanced depth + optimization | Most articles, balanced goals |\n| **Expert** | 25-35min | Maximum quality + competitiveness | High-stakes keywords, competitive niches |\n\n### Mode Differences\n\n**Express mode shortcuts:**\n- Basic site crawl: homepage + pricing only\n- Simplified competition: top 3 competitors, structure analysis only\n- Streamlined QA: core checklist, skip advanced verification\n- Target score: 65+ (publishable quality)\n\n**Standard mode (default):**\n- Comprehensive crawl: full discovery + blog analysis\n- Detailed competition: top 5 competitors + content gaps + authority sources\n- Complete QA: full scoring + verification + optimization suggestions\n- Target score: 75+ (solid quality)\n\n**Expert mode enhancements:**\n- Deep intelligence: multi-source crawling + social\u002Freview analysis where available\n- Advanced competition: semantic analysis + opportunity mapping + trend identification\n- Premium QA: custom scoring + predictive optimization + enhancement recommendations\n- Target score: 85+ (exceptional quality)\n\n---\n\n## Phase 0: Context Discovery (Automated)\n\n### ⚡ Skip Check\n\nIf `product_context` file was provided:\n1. Read the file\n2. Extract: product_name, value_proposition, pricing_model, brand_voice from it\n3. Set voice_confidence = MEDIUM (user-provided, assumed accurate)\n4. **Skip 0.1 and 0.6 entirely**\n5. Proceed directly to 0.2 (blog ecosystem mapping) and 0.3 (keyword research)\n\nOnly proceed with 0.1 crawling if no `product_context` was provided.\n\n### 0.1 Product Intelligence\n\nCrawl the following in parallel. Accept partial results - missing data triggers\ntargeted questionnaire questions, not full failure.\n\n**Crawl targets:**\n```\nPriority 1 (always attempt): \u002F  \u002Fpricing\nPriority 2 (attempt if P1 succeeds): \u002Fabout  \u002Ffeatures  \u002Fproduct\nPriority 3 (blog ecosystem): \u002Fblog  \u002Fsitemap.xml  \u002Frobots.txt\n```\n\n**Extract:**\n- `product_name` - inferred from title tags, logo alt text, H1s\n- `value_proposition` - first meaningful paragraph on homepage\n- `core_features` - bullet lists, feature sections, navigation items\n- `pricing_model` - \"free\" | \"freemium\" | \"$X\u002Fmonth\" | \"enterprise\"\n- `brand_voice_signals` - collect 10+ sample sentences across pages\n\n**JS-heavy site handling:** If web_fetch returns \u003C 500 characters of meaningful\ntext, note the crawl as failed for that page. Do not treat empty HTML as product\ncontext. Trigger questionnaire if ≥ 2 Priority 1 pages fail.\n\n**⚠️ Discovery failure threshold:** If ≥ 2 Priority 1 pages fail, jump to **Phase 0.6 immediately**. Collect answers from the user, then return here and continue with 0.2–0.4 using the provided context. Do not wait until after the confirmation gate to surface this.\n\n**Brand voice detection:**\n- Prefer blog post samples over homepage (more authentic voice)\n- Homepage → marketing voice, not writing voice\n- Derive: formality (1-5), energy (1-5), technical depth (1-5)\n- If \u003C 3 sample sources available, mark voice_confidence as LOW\n\n### 0.2 Blog Ecosystem Mapping\n\n**Discovery order (try all before concluding):**\n1. `\u002Fsitemap.xml` or `\u002Fsitemap_index.xml` → extract all blog\u002Farticle URLs\n2. Try common blog paths: `\u002Fblog`, `\u002Farticles`, `\u002Fresources`, `\u002Flearn`, `\u002Finsights`, `\u002Fcontent`\n3. `robots.txt` → find sitemap reference\n4. Fetch homepage → scan navigation links for blog\u002Farticles\u002Fresources sections\n5. Web search: `site:domain.com inurl:blog OR inurl:article OR inurl:post`\n\nIf steps 1-5 all return \u003C 3 posts: classify as \"new\" and note it.\nDo not assume blog doesn't exist - it may use a non-standard path.\n\n**Output:** `existing_posts[]` - {title, url, approximate_topic, publish_date}\n\n**Site maturity classification:**\n- **\"new\"** - \u003C 5 posts (skip complex hub-spoke strategy, use minimal linking)\n- **\"growing\"** - 5-20 posts (basic cluster awareness, strategic linking)\n- **\"mature\"** - > 20 posts (full hub-spoke strategy, topical clusters)\n\n### 0.3 Keyword Intelligence (Honest Estimation)\n\n**⚠️ Without paid tools, keyword research is estimation, not measurement.**\nThis skill uses SERP signals as proxies. Confidence is moderate.\nThe confirmation gate lets you override the selected keyword before writing begins.\n\n**Process:**\n\n**Step 1 - Derive candidates from topic**\n```\nParse user topic → extract intent + entity + modifier\nExamples:\n- \"best AI email apps\" → intent: comparison, entity: email_apps, modifier: AI\n- \"gmail alternatives\" → intent: alternatives, entity: gmail, modifier: none\n- \"how to manage email overload\" → intent: guide, entity: email_management, modifier: overload\n\nGenerate 3-5 keyword variants with different modifiers\u002Fyear combinations\n```\n\n**Step 2 - SERP structure analysis (for each candidate)**\n```\nSearch each keyword, analyze first page:\n- Presence of ads → high commercial intent\n- Wikipedia \u002F major media → informational intent, difficult to rank for new sites\n- Domain diversity (5+ different domains) → easier to enter\n- 1-2 dominant domains → harder, consider long-tail variant\n- Article types present → comparison tables, how-to guides, listicles\n```\n\n**Step 3 - Select primary keyword**\n```\nBalance: intent_match × brand_relevance × estimated_difficulty\nPriority: user topic intent > search volume estimation\n```\n\n**Step 4 - Derive secondary keywords**\n```\n- Related searches from SERP\n- \"People also ask\" variations\n- Long-tail question variants for FAQ section\n- Semantic variants that don't cannibalize primary\n```\n\n**Mode differences:**\n- **Express:** Top 1 keyword only, basic SERP check\n- **Standard:** 3 candidates analyzed, secondary keywords included\n- **Expert:** 5 candidates + semantic clustering + opportunity identification\n\n### 0.4 Competitive Intelligence\n\n**Extract top 5-8 URLs from SERP for primary keyword.**\n\n**Relevance filtering (in order):**\n1. Remove: reddit.com, quora.com, news aggregators, social media posts\n2. Prioritize: domains with `\u002Fproduct` or `\u002Fpricing` → likely direct competitors\n3. Check: is content type comparable (article vs article, not forum thread vs article)\n4. Keep: best 3-5 relevant results for analysis\n\n**Fallback - if fewer than 2 relevant competitor URLs remain after filtering:**\n- Relax filter: include top-performing forum threads (Reddit\u002FQuora) as **intent signals only**\n- Extract: what questions users are asking, what solutions they mention\n- Do NOT use forum posts as content depth benchmarks (word count, structure)\n- Note in confirmation gate: \"Limited competitor articles found - structure based on search intent signals rather than competitive benchmarking\"\n- Default to FAQ-heavy structure since forums indicate question-dominant intent\n\n**For each competitor URL:**\n```\nFetch and extract:\n- Approximate word count (rough estimation from text length)\n- H2\u002FH3 structure → topic map of what they cover\n- Table\u002Flist presence → structured content indicators\n- External authority sources they cite → potential sources for us\n- Brand mentions → who they compare against\n- Content gaps → what they don't cover well\n```\n\n**Blocked\u002Ffailed competitor:** If web_fetch returns 403\u002Fblocked, use web_search\nsnippet as proxy for structure. Note it as \"estimated\" in the research brief.\n\n**Mode differences:**\n- **Express:** Top 3 URLs only, basic structure extraction\n- **Standard:** Top 5 URLs + gap analysis + authority source identification\n- **Expert:** Top 8 URLs + semantic analysis + opportunity mapping + trend identification\n\n---\n\n## ⛳ Phase 0.5: Discovery Confirmation Gate (MANDATORY)\n\n**This is the only human checkpoint. Nothing is written until you confirm.**\n\nPresent a structured summary:\n\n```\n═══════════════════════════════════════════════════\nDISCOVERY SUMMARY - Confirm before writing begins\n═══════════════════════════════════════════════════\n\n🏢 Product: [detected product name]\n📝 Value proposition: [extracted or inferred]\n📊 Site maturity: new | growing | mature ([N] posts found)\n🎨 Brand voice: formality [X\u002F5] · energy [X\u002F5] · technical [X\u002F5]\n🔍 Voice confidence: HIGH \u002F MEDIUM \u002F LOW\n\n🎯 Primary keyword: \"[selected keyword]\"\n📈 Keyword confidence: HIGH \u002F MEDIUM \u002F LOW\n🎪 Search intent: comparison | how-to | alternatives | guide | thought-piece\n📄 Article type: [auto-selected based on intent]\n📏 Target word count: [range based on SERP analysis]\n📅 Year in title: YES \u002F NO (see decision rule below)\n\n🏁 Top competitors (will be analyzed for gaps):\n1. [url] - [estimated word count] words · [article type]\n2. [url] - [estimated word count] words · [article type]\n3. [url] - [estimated word count] words · [article type]\n\n💡 Content opportunities identified:\n✅ What competitors cover (must include):\n- [topic 1] - covered by all top results\n- [topic 2] - covered by majority\n\n🎯 What competitors miss (our advantage):\n- [gap 1] - opportunity for unique angle\n- [gap 2] - underserved subtopic\n\n🔗 Internal links available: [N] posts found\nTop candidates for linking:\n- [post title] → [url] - relevant for [section]\n- [post title] → [url] - relevant for [section]\n\n⚠️ Issues found (requires attention):\n[Only if present]\n- Brand voice confidence LOW - only 1 source sample available\n- Pricing page blocked, pricing model estimated from homepage\n- Keyword confidence MEDIUM - limited SERP signal clarity\n\n🔧 Mode: [express|standard|expert] · Estimated time: [X] minutes\n\n═══════════════════════════════════════════════════\nReply: CONFIRM to proceed, EDIT [aspect] to modify, or provide corrections.\n═══════════════════════════════════════════════════\n```\n\n**⚠️ Gate enforcement:**\n- Wait for user response. Do NOT self-approve and proceed.\n- If no response: reply \"Waiting for your confirmation. Reply CONFIRM to proceed.\"\n- If running in automated\u002Fsubagent context: save summary to `{output_dir}\u002Fdiscovery-summary.md`, then STOP and return control to caller. Never self-approve.\n- If user replies CONFIRM: proceed to Phase 1.\n- If user replies EDIT [aspect]: re-derive only that element, re-present summary.\n\n**Year-in-title decision rule (applied automatically):**\n\n| Article type | Year in title | Logic |\n|---|---|---|\n| Comparison \u002F Best-of | YES if ≥ 2 top SERP results include year | Intent is time-sensitive, year increases CTR |\n| Alternatives page | YES if product category updates frequently | SaaS\u002Ftech = yes, traditional tools = no |\n| How-to \u002F Guide | NO | Intent is evergreen, year limits lifespan |\n| Thought piece | NO | Ideas aren't time-dependent |\n| Industry trends | YES | Explicitly time-sensitive content |\n\n**If user provides corrections:**\n- Re-derive only affected elements\n- Do not restart full Phase 0\n- Update summary and re-confirm\n\n---\n\n## Phase 0.6: Fallback Questionnaire (Only if Discovery Incomplete)\n\n**Triggered when:** ≥ 2 Priority 1 crawls failed AND no `product_context` file provided.\n\nOutput a questionnaire designed to be answerable by a human OR their AI assistant\nreading company documentation:\n\n```markdown\n# Product Context - [domain]\n\n*Can be filled by you or your AI assistant using your docs\u002Fwebsite\u002Fmarketing materials.*\n\n## Required Information (4 questions - 2 minutes)\n\n1. **Product name:**\n   [What do you call your product? e.g., \"FiloMail\"]\n\n2. **One-sentence description:**\n   [What does it do, for whom? e.g., \"AI email client for knowledge workers who get 100+ emails\u002Fday\"]\n\n3. **Pricing model:**\n   [e.g., \"Free + $7\u002Fmonth Pro\" or \"From $49\u002Fmonth\" or \"Enterprise quotes only\"]\n\n4. **Primary competitor:**\n   [Who do most people compare you against? e.g., \"Superhuman\" or \"Gmail\"]\n\n## Brand Guidelines (3 questions - 1 minute)\n\n5. **Writing tone:** formal | professional | friendly | casual | technical\n   [Pick the closest match to how you want to sound]\n\n6. **Competitive approach:** honest-comparison | highlight-differences | avoid-naming\n   [How should we treat competitors in the article?]\n\n7. **Sample sentence that sounds like you:**\n   [Paste one sentence from your website\u002Fmarketing that captures your voice]\n\n## Content Strategy (optional - enhances output)\n\n8. **Key articles to link to:**\n   [Top 3-5 URLs of your most important blog posts\u002Fpages]\n\n9. **Keywords you want to target:**\n   [If you have specific SEO goals beyond the topic]\n\n10. **Content to avoid:**\n    [Anything we should never say, compare, or mention?]\n```\n\n> 💾 Save the above as `product-context.md`, then restart with:\n>\n> ```yaml\n> topic: \"[your topic]\"\n> domain: \"[your domain]\"\n> product_context: \"product-context.md\"\n> ```\n\n---\n\n## Phase 1: Research Brief Generation\n\n### 1.1 Article Blueprint Assembly\n\nBased on confirmed Phase 0 data, create structured plan:\n\n**H1 optimization:**\n```\nFormat: [Primary Keyword] [Year if applicable] - [Brand Angle]\nCharacter limit: 60 characters\nExamples:\n✅ \"Best AI Email Apps 2026 - Tested by Email Power Users\" (58 chars)\n✅ \"Gmail Alternatives That Actually Work for Heavy Users\" (55 chars)\n❌ \"The Ultimate Comprehensive Guide to the Best AI-Powered Email Applications in 2026\" (82 chars)\n```\n\n**H2 Structure mapping:**\n```\nBased on search_intent + competitor_analysis + brand_angle:\n\nComparison article:\n├─ Quick Comparison Table\n├─ [Product 1]: [Key differentiator]\n├─ [Product 2]: [Key differentiator]\n├─ [Product 3]: [Key differentiator]\n├─ How to Choose the Right [Category]\n└─ FAQ\n\nHow-to guide:\n├─ What You Need Before Starting\n├─ Step 1: [Action verb + specific outcome]\n├─ Step 2: [Action verb + specific outcome]\n├─ Step 3: [Action verb + specific outcome]\n├─ Common Problems and Solutions\n└─ FAQ\n\nAlternatives page:\n├─ Why Look for [Product] Alternatives?\n├─ [Alternative 1]: Best for [Use case]\n├─ [Alternative 2]: Best for [Use case]\n├─ [Alternative 3]: Best for [Use case]\n├─ Migration Guide\n└─ FAQ\n```\n\n**Content depth planning:**\n```\nTarget word count = SERP_average × 1.15 (but not exceeding SERP_max × 1.3)\n\nIf competitors average 2000 words → target 2300 words\nIf competitors range 1500-4000 → target ~2500 words (sweet spot)\n\nMode adjustments:\n- Express: SERP_average (match competition)\n- Standard: SERP_average × 1.15 (slight edge)\n- Expert: SERP_average × 1.25 (substantial edge)\n```\n\n### 1.2 Linking Strategy Development\n\n**Internal links planning:**\n```\nBased on site_maturity + existing_posts analysis:\n\nNew sites (\u003C 5 posts):\n├─ Link to homepage in intro\n├─ Link to product\u002Fpricing pages where relevant\n└─ Total internal links: 2-3 maximum\n\nGrowing sites (5-20 posts):\n├─ Identify 2-3 topically related existing posts\n├─ Plan natural mentions in relevant sections\n├─ Link to hub page if exists\n└─ Total internal links: 3-5\n\nMature sites (> 20 posts):\n├─ Map article to topical cluster\n├─ Always link to cluster hub\n├─ Link to 2-4 most relevant siblings\n├─ Strategic product page links\n└─ Total internal links: 5-8\n```\n\n**External links planning:**\n```\nEntity-based minimum = count(products + tools mentioned)\nClaim-based minimum = count(statistics + factual claims)\nAuthority-source minimum = 2-3 industry sources\n\nThis sets a floor, not a quota. Natural mentions drive linking.\n\nExamples:\n\"Best Email Apps\" article mentioning 8 apps → minimum 8 official site links\n+ 3-5 review\u002Fcomparison sources + 2-3 industry reports = 13-16 total\n```\n\n### 1.3 Research Brief Output\n\nSave as: `{output_dir}\u002Fresearch-brief.md`\n\n```markdown\n# Research Brief: [Article Title]\n\n**Generated:** [timestamp]\n**Mode:** [express|standard|expert]\n**Estimated writing time:** [X] minutes\n\n## Article Specification\n- **Primary keyword:** [keyword] (confidence: [HIGH|MEDIUM|LOW])\n- **Secondary keywords:** [keyword1], [keyword2], [keyword3]\n- **Search intent:** [comparison|how-to|alternatives|guide|thought-piece]\n- **Target word count:** [range]\n- **Article type:** [specific template]\n\n## Content Strategy\n- **H1:** [optimized headline under 60 chars]\n- **H2 structure:** [planned section headers]\n- **Unique angle:** [how we differentiate from competitors]\n- **Content gaps to fill:** [opportunities competitors miss]\n\n## Competition Analysis\n### Top Competitors Analyzed\n1. [URL] - [word count] - [what they do well] - [what they miss]\n2. [URL] - [word count] - [what they do well] - [what they miss]\n3. [URL] - [word count] - [what they do well] - [what they miss]\n\n### Content Requirements (to match\u002Fexceed competition)\n- Topics we must cover: [list]\n- Comparison table: [required|not needed]\n- FAQ section: [required|optional]\n\n## Linking Plan\n### Internal Links ([N] planned)\n- [Existing post title] → relevant for [section] → [URL]\n- [Existing post title] → relevant for [section] → [URL]\n\n### External Links (minimum [N])\n- Product official sites: [count] (each mentioned product)\n- Authority sources: [count] (industry reports, studies, expert sources)\n- Supporting references: [count] (reviews, comparisons, tools)\n\n## Brand Guidelines\n- **Voice:** formality [X\u002F5] · energy [X\u002F5] · technical [X\u002F5]\n- **Competitor treatment:** [approach]\n- **Red lines:** [restrictions if any]\n\n## Next Steps\n1. Confirm this brief captures your intent\n2. Proceed to content generation\n3. Expected delivery: [timestamp]\n```\n\n---\n\n### ✅ Brief Save Checkpoint\n\nConfirm `research-brief.md` was saved to `{output_dir}\u002F`. If save failed\n(permissions, path issue): output brief contents directly in chat and continue.\nThis is not a user gate — no user action required.\n\n---\n\n## Phase 2: Content Generation\n\n### ⚡ WRITE THE ARTICLE NOW\n\nUsing the confirmed blueprint from Phase 1, write the article section by section:\n1. Write H1 (from blueprint)\n2. Write intro paragraph (≤ 100 words, keyword in first sentence, use intent-matched template from 2.1)\n3. Write each H2 section in order from blueprint, applying rules from 2.2-2.5 as you write. **After each H2, immediately run the 4-point AI-tell check from §3.1 inline** — fix any flagged sentences before moving to the next H2. Do not batch these checks.\n4. Write FAQ section (4-6 questions, natural language, schema-ready)\n5. Write conclusion with CTA referencing the domain's product\u002Fservice\n6. Apply internal + external linking inline as you write (2.5 rules) - do NOT do a separate linking pass\n7. Save complete draft to: `{output_dir}\u002Farticle-draft.md`\n\nThen proceed to **Phase 3.2 and 3.3** (brand voice + authenticity check) on the saved draft. Phase 3.1 AI-tell checks were already run inline during step 3 above.\n\n### 2.1 Opening Section (Critical First 100 Words)\n\n**Requirements:**\n- Primary keyword appears naturally within first 100 words\n- Direct answer or clear value proposition (no throat-clearing)\n- Sets expectation for what reader will learn\n- Matches search intent immediately\n\n**Templates by intent:**\n\n**Comparison intent:**\n```\nLooking for [primary keyword]? After testing [N] options with [criteria], here are the [N] that actually deliver [specific benefit]. This guide covers [what you'll learn] based on [timeframe] of hands-on testing.\n\n[Quick comparison table preview]\n```\n\n**How-to intent:**\n```\n[Specific outcome] is achievable in [timeframe] if you follow the right steps. This guide walks through [process] that [specific audience] can use to [specific result]. You'll need [prerequisites] and about [time investment].\n```\n\n**Alternative intent:**\n```\n[Product] is [what it's good for], but it's not perfect for everyone. If you need [specific use case] or prefer [alternative approach], here are [N] alternatives that might work better for your [situation].\n```\n\n### 2.2 Body Content Standards\n\n**Paragraph structure:**\n- Maximum 3-4 sentences per paragraph\n- One main idea per paragraph\n- Vary sentence length: short (5-10 words) + medium (15-20 words) + occasional long (25-30 words)\n- No sentence exceeds 35 words\n\n**Readability targets:**\n- Flesch Reading Ease: 60-70 (conversational but professional)\n- Average sentence length: 15-20 words\n- Passive voice: \u003C 15% of sentences\n- Grade level: 8-10 (accessible but not dumbed down)\n\n**Required content blocks:**\n```\nComparison articles: Quick comparison table within first 300 words\nHow-to guides: Numbered steps with clear action verbs\nAlternatives pages: Migration considerations\u002Fswitching guide\nAll articles: FAQ section with 4-6 natural language questions\nAll articles: \"Last updated: [Month Year]\" at bottom\n```\n\n### 2.3 Statistics and Authority Signals (Verification-First Approach)\n\n**⚠️ Core rule: Verify before include. Never assert unverified claims.**\n\n**For each statistic needed:**\n```\n1. Search for the claim via web_search(\"[statistic] [topic] study\")\n2. Fetch the claimed source via web_fetch(source_url)\n3. Confirm:\n   - The number exists in the source\n   - The methodology matches the claim\n   - The date\u002Fsample size is reasonable\n4. Only then include: \"According to [Source], [stat] ([year study])\"\n\nIf no verifiable source found:\n- Use hedged language: \"Many practitioners report...\" \u002F \"Industry surveys suggest...\"\n- Or omit the statistic entirely\n- NEVER fabricate numbers with real-looking sources\n```\n\n**For expert quotes:**\n```\n1. Find a real person via web_search(\"[topic] expert\" OR \"[industry] CEO interview\")\n2. Fetch a page where they actually said something quotable\n3. Quote their exact words with attribution: \"[Exact quote]\" - [Name, Title, Company]\n4. Do NOT paraphrase opinions as direct quotes\n5. If no real quote found → use general industry perspective without quote marks\n\nExample:\n✅ \"Email overload reduces productivity by 25% daily\" - John Smith, CEO of EmailCorp (2024 interview)\n❌ \"Email overload is a major productivity killer\" - Industry Expert (fabricated)\n```\n\n**Authority signal integration (GEO optimization):**\n```\nThese patterns increase AI citation likelihood (directional signals based on\nobserved AI behavior, not peer-reviewed metrics - treat as best practices):\n\n- Statistics with attributed sources → higher citation likelihood\n  Format: \"According to [AuthoritySource], [specific stat] ([methodology])\"\n\n- Expert quotes with named attribution → higher citation likelihood\n  Format: \"[Exact quote]\" - [Name, Title, Company] ([source\u002Fyear])\n\n- Self-contained passages → more likely to be excerpted by AI\n  Each key point should make sense in isolation (40-60 words)\n\n- Definition blocks → cleaner for AI to parse and cite\n  Start major sections with clear definitions\n  \"X is [specific definition]. It works by [mechanism].\"\n\n- Evidence sandwich pattern:\n  Claim → Evidence → Interpretation\n  \"Most users prefer X [claim]. A 2024 study of 1000 professionals found Y [evidence]. This suggests Z [interpretation].\"\n```\n\n### 2.4 Platform-Specific GEO Optimization\n\n**Different AI platforms prioritize different signals. Optimize for all:**\n\n**Google AI Overviews (most exposure):**\n```\n- Prefers: Tables, numbered lists, FAQ schema\n- Optimization: Lead sections with direct answers\n- Length: 40-60 word extractable segments\n- Format: \"X is [definition]. Key benefits include [numbered list].\"\n- Citations: Authoritative sources, recent dates\n```\n\n**Perplexity (high-intent queries):**\n```\n- Prefers: Research papers, statistical studies, expert sources\n- Optimization: Lead with methodology\u002Fsample size for studies\n- Length: Evidence-heavy, detailed explanations\n- Format: \"Research shows [finding] (N=size, method, year)\"\n- Citations: Academic sources, government data preferred\n```\n\n**ChatGPT (broad knowledge queries):**\n```\n- Prefers: Comprehensive explanations, balanced perspectives\n- Optimization: Cover multiple angles, acknowledge limitations\n- Length: Thorough but structured explanations\n- Format: \"While X is generally true, Y factors also matter...\"\n- Citations: Diverse sources, balanced viewpoints\n```\n\n**Claude (analytical queries):**\n```\n- Prefers: Logical structure, cause-and-effect explanations\n- Optimization: Clear reasoning chains, step-by-step logic\n- Length: Detailed but logical progression\n- Format: \"Because X happens, Y results, leading to Z outcome\"\n- Citations: Analytical sources, case studies\n```\n\n**Implementation in content:**\n```\nFor each major section:\n1. Lead with Google-optimized direct answer (40-60 words)\n2. Follow with Perplexity-optimized evidence (studies, stats)\n3. Include ChatGPT-optimized broader context (perspectives, limitations)\n4. Structure with Claude-optimized logical flow (cause → effect → outcome)\n\nThis creates content that performs well across all AI platforms.\n```\n\n### 2.5 Linking Execution\n\n**External links - entity-driven, not quota-driven:**\n\n```\nLinking philosophy: Every mentioned entity gets its official link, every factual claim gets a source\n\nFor each product\u002Ftool mentioned:\n├─ Link to official site (once per unique entity, not every mention)\n├─ Use descriptive anchor text: \"FiloMail's AI features\" not \"click here\"\n└─ Open in new tab considerations for user experience\n\nFor each factual claim:\n├─ Link to most authoritative available source\n├─ Preference order: official sites > research papers > major media > industry publications\n├─ Avoid: personal blogs, paywalled content, competitor comparison articles\n└─ Verify link works before including\n\nQuality over quantity:\n├─ 8 high-quality, relevant links > 15 mediocre links\n├─ Every link should add value to the reader\n└─ No linking just to hit a quota\n```\n\n**Internal links - relevance-driven:**\n```\nFrom Phase 1 internal_links_plan:\n\nBody content linking:\n├─ Link only if the target article's topic is genuinely discussed in this section\n├─ Use contextual anchor text that describes what they'll find\n├─ Never force a link to fill a quota\n└─ Maximum 1 internal link per 300 words to avoid link bloat\n\nFurther Reading section:\n├─ Include hub page link (if exists)\n├─ Add 2-3 most topically related sibling articles\n├─ Sort by relevance, not recency\n└─ Brief description of what each linked article covers\n\nHub-spoke strategy (for mature sites):\n├─ Always link back to cluster hub from spoke articles\n├─ Hub links to all spokes in cluster\n├─ Spokes link to 2-4 most related siblings\n└─ Avoid every-spoke-to-every-spoke linking (dilutes PageRank)\n```\n\n---\n\n## Phase 3: AI Pattern Prevention & Brand Voice Alignment\n\n### 3.1 AI Writing Pattern Detection & Correction\n\n**Detection approach:** Generate content in sections, then scan each section for AI patterns.\nDo not attempt real-time prevention - LLMs cannot self-monitor during generation effectively.\n\n**Banned words (immediate rewrite triggers):**\n```\ndelve, tapestry, seamlessly, robust, leverage, harness, elevate,\nrevolutionize, paradigm, synergy, holistic, navigate (as metaphor),\nmosaic, landscape (as metaphor), game-changer, cutting-edge (unless literally about technology)\n```\n\n**Banned phrases (immediate rewrite triggers):**\n```\n\"at the end of the day\", \"without further ado\", \"it's no secret that\",\n\"in today's fast-paced world\", \"in conclusion\", \"in summary\", \"to sum up\",\n\"delve into\", \"navigate the landscape\", \"robust solution\"\n```\n\n**Structural pattern detection:**\n```\nEm-dash count: Flag if > 3 per article\nRhetorical questions as transitions: Flag and rewrite as statements\nTriple-adjective stacking: \"powerful, intuitive, and elegant\" → pick one, prove it\nConclusion clichés: \"In conclusion\" → just make your point directly\nThroat-clearing openers: \"It's important to understand that...\" → cut filler\n```\n\n**AI-tell detection checklist (run after writing each H2 section):**\n```\nAfter each H2 section is written, check ONLY these 4 things:\n\n□ Banned words: scan for top offenders (delve, tapestry, seamlessly, robust,\n  leverage, revolutionize, synergy, holistic, navigate-as-metaphor, mosaic)\n□ Long sentences: any sentence > 35 words? Split it.\n□ Throat-clearing: does the section start with filler? (\"It's important to\n  understand that...\" \u002F \"When it comes to...\") → Cut and start with the point.\n□ Em-dash density: > 1 em-dash per 200 words? Rewrite as full sentences.\n\nIf any box is checked: rewrite ONLY the flagged sentence(s). Move on.\nDo not re-scan after fixing. Do not generate a separate Phase 3 report.\nThis check should take \u003C 30 seconds of processing per section.\n```\n\n### 3.2 Brand Voice Calibration\n\n**Voice matching system:**\n```\nBased on Phase 0 brand_voice_signals analysis:\n\nFormality level (1-5):\n├─ 1-2: Conversational, contractions, casual tone\n├─ 3: Professional but approachable, some contractions\n├─ 4-5: Formal, full words, corporate tone\n\nEnergy level (1-5):\n├─ 1-2: Calm, measured, understated\n├─ 3: Balanced, moderate enthusiasm\n├─ 4-5: Energetic, dynamic, exclamatory\n\nTechnical level (1-5):\n├─ 1-2: General audience, explain everything\n├─ 3: Some industry terms with context\n├─ 4-5: Assumes domain knowledge, technical depth\n```\n\n**If Phase 0 voice_confidence was LOW:** Apply conservative defaults:\n```\n- Formality 3\u002F5: professional but accessible\n- Energy 3\u002F5: clear and engaging, not hype-y\n- Technical 2\u002F5: assume general audience unless evidence otherwise\n```\n\n**Brand voice consistency check:**\n```\nAfter completing full article:\n1. Sample 3-4 representative paragraphs\n2. Compare tone\u002Fvoice to original brand_voice_signals\n3. Check for voice drift between sections\n4. Ensure competitor treatment matches specified approach\n5. Verify no red line violations (if specified)\n\nIf voice inconsistency detected:\n- Identify sections that drift from brand voice\n- Rewrite to match established brand voice parameters\n- Maintain consistency across intro, body, and conclusion\n```\n\n### 3.3 Content Authenticity Verification\n\n**Human-like writing patterns:**\n```\nSentence variety: Mix of short (5-10 words), medium (15-20), and occasional longer (25-30)\nParagraph flow: Logical progression, not just bullet-point compilation\nNatural transitions: Connect ideas smoothly, not just \"Additionally,\" \"Furthermore,\"\nPersonal perspective: Where appropriate, show judgment\u002Fopinion rather than pure data compilation\n```\n\n**Read-aloud test:**\n```\nFor key sections (intro, conclusions, CTA):\n- Does it sound natural when read aloud?\n- Would you say this in a professional conversation?\n- Does it sound like press release copy or human communication?\n\nIf it sounds like a press release → rewrite in conversational professional tone\n```\n\n---\n\n## Phase 4: Quality Assurance System\n\n### 4.1 Automated Link Verification\n\n**Process for every external link using web_fetch:**\n\n⚠️ web_fetch is a content extractor, not an HTTP client. It cannot return status\ncodes. Use content-based verification instead.\n\n```\nFor each external link in the article:\n1. Call web_fetch(url, maxChars=500)\n2. Evaluate result:\n   - Content returned AND > 200 chars of readable text → PASS\n   - Content is empty, error thrown, or \u003C 50 chars → FAIL (mark as broken)\n   - Content contains \"not found\", \"page doesn't exist\", \"404\" → FAIL\n   - Content looks like a generic homepage when specific page was intended → FAIL\n3. Content relevance check:\n   - Do the first 300 chars relate to the claim being cited?\n   - Is the context appropriate (not pulling positive quotes from negative reviews)?\n4. If FAIL: search for alternative source, update link, log replacement in QA report\n\nSource quality tiers (assess from domain, not HTTP headers):\n- TIER-A: Official sites, government, major research institutions, established media\n- TIER-B: Industry publications, well-known blogs, recognized experts\n- TIER-C: Smaller publications, newer sources (use sparingly)\n- TIER-D: Personal blogs, questionable sources (avoid)\n```\n\n**Failed link resolution:**\n```\nFor each failed\u002Fblocked link:\n1. Search for alternative source supporting same claim\n2. Priority order: Official source > Research paper > Major publication > Industry blog\n3. Update content if no equivalent source found\n4. Document replacement in QA report\n```\n\n### 4.2 Multi-Dimensional Quality Scoring\n\n**Base scoring framework (100 points total):**\n\n**SEO Fundamentals (40 points):**\n```\n- H1 contains primary keyword, under 60 chars [10 pts]\n- Primary keyword in first 100 words [5 pts]\n- Primary keyword in at least one H2 [5 pts]\n- Keyword density 1-2% (not stuffed, not absent) [5 pts]\n- Logical H2\u002FH3 hierarchy, no skipped levels [5 pts]\n- Meta description suggested, 150-160 chars [5 pts]\n- Target word count achieved [5 pts]\n```\n\n**Content Quality (30 points):**\n```\n- Meets search intent (comparison → table, how-to → steps) [10 pts]\n- Comprehensive coverage (addresses main competitor topics) [5 pts]\n- Original angle\u002Fvalue (not just rehashing existing content) [5 pts]\n- Readability: Flesch 60-70, varied sentence length [5 pts]\n- FAQ section present with natural questions [5 pts]\n```\n\n**Linking Excellence (20 points):**\n```\n- Internal links: minimum met based on word count [5 pts]\n- External links: entity-based minimum met [5 pts]\n- All links verified working [5 pts]\n- Source quality: majority TIER-A\u002FB sources [5 pts]\n```\n\n**Brand & Authority (10 points):**\n```\n- Brand voice alignment with Phase 0 analysis [3 pts]\n- No AI-tell patterns detected [3 pts]\n- Statistics\u002Fquotes verified with sources [2 pts]\n- No red line violations [2 pts]\n```\n\n**Industry weight adjustments (predefined balanced tables — total always = 100):**\n```\nDefault:      SEO 40  Content 30  Linking 20  Brand 10  = 100\nSaaS\u002FTech:    SEO 45  Content 20  Linking 25  Brand 10  = 100\nE-commerce:   SEO 35  Content 40  Linking 15  Brand 10  = 100\nServices:     SEO 35  Content 35  Linking 15  Brand 15  = 100\nContent sites: SEO 35  Content 40  Linking 15  Brand 10  = 100\n```\n\n**Pass thresholds by mode:**\n```\nExpress: 65+ (publishable, good foundation)\nStandard: 75+ (solid quality, competitive)\nExpert: 85+ (exceptional quality, maximum competitiveness)\n```\n\n### 4.3 Factual Accuracy Verification\n\n**For product information:**\n```\nPrice verification:\n├─ Compare stated pricing vs official pricing pages\n├─ Check for recent pricing changes via web search\n├─ Note currency, billing frequency, tier differences\n└─ Update content if mismatches found\n\nFeature claims:\n├─ Verify against official product documentation\n├─ Check for feature deprecation\u002Fchanges\n├─ Use conservative language if uncertain\n└─ Link to official source for each claim\n```\n\n**For statistics and studies:**\n```\nSource validation:\n├─ Fetch claimed source via web_fetch\n├─ Confirm statistic exists with exact number\n├─ Check methodology, sample size, date\n├─ Verify context matches how we're using the stat\n└─ Update or remove if source doesn't support claim\n\nQuote accuracy:\n├─ Verify quoted text appears in source\n├─ Check surrounding context doesn't contradict our framing\n├─ Ensure attribution is accurate (name, title, company)\n└─ Remove or rephrase if context doesn't support usage\n```\n\n### 4.4 Final Quality Report\n\nGenerate comprehensive QA documentation:\n\n```markdown\n# QA Report: [Article Title]\n\n**Generated:** [timestamp]\n**Mode:** [express|standard|expert]\n**Overall Score:** [X]\u002F100\n**Verdict:** PASS ✅ | NEEDS REVISION ❌\n\n## Score Breakdown\n- **SEO Fundamentals:** [X]\u002F40 pts\n- **Content Quality:** [X]\u002F30 pts\n- **Linking Excellence:** [X]\u002F20 pts\n- **Brand & Authority:** [X]\u002F10 pts\n\n## Critical Issues (must fix before publication)\n[List any score-blocking issues]\n\n## Warnings (should fix)\n[List quality improvements]\n\n## Link Verification Results\n**External Links Checked:** [N]\n- ✅ Working links: [N]\n- ❌ Failed links: [N] (see replacement suggestions below)\n- 🔍 Source quality: [N] TIER-A, [N] TIER-B, [N] TIER-C\n\n**Failed links and replacements:**\n- Original: [failed_url] (404)\n- Replacement: [new_url]\n- Verification: ✅ Content supports claim\n\n## Optimization Opportunities\n[Mode-specific enhancement suggestions]\n\n## Brand Compliance Check\n- ✅ Voice matches Phase 0 analysis\n- ✅ No red line violations\n- ✅ Competitor treatment appropriate\n- ✅ No AI writing patterns detected\n```\n\n**If verdict is FAIL:** Fix ONLY the listed critical issues (targeted edits to `article-draft.md`), verify each fix with a read\u002Fgrep, then re-run Phase 4. Maximum 3 rounds per Failure Recovery Guardrails §4. If still failing after 3 rounds, proceed to Phase 5 and flag unresolved issues in the delivery package.\n\n---\n\n## Phase 5: Delivery Package & Post-Processing\n\n### 5.1 Article Finalization\n\n**Content formatting:**\n```\nFrontmatter generation:\n---\ntitle: \"[optimized H1]\"\ndescription: \"[150-160 char meta description]\"\nkeywords: \"[primary_keyword], [secondary_keywords]\"\nauthor: \"[from brand context or default]\"\ndate: \"[current_date]\"\nupdated: \"[current_date]\"\nslug: \"[url-friendly-slug]\"\n---\n\nContent structure:\n├─ H1 (matches title)\n├─ Opening paragraph (keyword in first 100 words)\n├─ Quick navigation\u002Ftable of contents (for long articles)\n├─ Main content sections\n├─ FAQ section\n├─ Conclusion with CTA\n└─ \"Last updated: [Month Year]\"\n```\n\n**Save instructions:** Write the finalized article (with frontmatter) to `{output_dir}\u002Farticle.md`. Write the schema markup below to `{output_dir}\u002Fschema-markup.json`.\n\n**Schema markup generation:**\n```\nArticle schema:\n{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@type\": \"Article\",\n  \"headline\": \"[H1 title]\",\n  \"description\": \"[meta description]\",\n  \"author\": {\n    \"@type\": \"Person\",\n    \"name\": \"[author_name]\"\n  },\n  \"publisher\": {\n    \"@type\": \"Organization\",\n    \"name\": \"[brand_name]\"\n  },\n  \"datePublished\": \"[date]\",\n  \"dateModified\": \"[date]\",\n  \"wordCount\": [actual_word_count]\n}\n\nFAQPage schema (auto-generated from FAQ section):\n{\n  \"@context\": \"https:\u002F\u002Fschema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"[FAQ question]\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"[FAQ answer]\"\n      }\n    }\n  ]\n}\n```\n\n### 5.2 Complete Deliverables Package\n\n**File structure (mode-gated — express ships fewer files):**\n```\nseo-output\u002F\n└─ [article-slug]\u002F\n   ├─ article.md                    # Final article with frontmatter        [ALL MODES]\n   ├─ qa-report.md                  # Quality assurance results              [ALL MODES]\n   ├─ schema-markup.json            # JSON-LD for CMS integration            [ALL MODES]\n   ├─ research-brief.md             # Research and planning documentation    [standard + expert]\n   ├─ promotion-checklist.md        # Post-publish marketing tasks           [standard + expert]\n   ├─ internal-links-strategy.md    # Recommended internal linking           [expert only]\n   └─ optimization-opportunities.md # Future enhancement suggestions         [expert only]\n```\n\nExpress mode delivers 3 files. Standard delivers 5. Expert delivers all 7.\nDo not generate files outside the current mode — it wastes tokens.\n\n**research-brief.md** (from Phase 1, enhanced with results):\n```markdown\n# Research Brief: [Title]\n\n[Previous research brief content] +\n\n## Execution Results\n- **Final word count:** [actual] (target was [target])\n- **Primary keyword density:** [X]% (optimal: 1-2%)\n- **Competitors analyzed:** [N]\n- **Content gaps addressed:** [list]\n- **Internal links included:** [N]\n- **External links verified:** [N]\n\n## Performance Predictions\nBased on competitive analysis and content quality:\n- **Ranking timeline:** [estimate based on domain authority and competition]\n- **Key ranking factors:** [what should drive success]\n- **Monitoring recommendations:** [what to track]\n```\n\n**internal-links-strategy.md** (expert only — export of Phase 1.2 analysis, enhanced post-writing):\n```markdown\n# Internal Links Strategy: [Article Title]\n\n## Hub-Spoke Position\n- **This article's role:** [hub | spoke | standalone]\n- **Cluster topic:** [topical cluster name]\n- **Hub page:** [URL if exists]\n\n## Links FROM This Article ([N] total)\n| Section | Anchor Text | Target URL | Relationship |\n|---------|-------------|------------|--------------|\n| [H2 name] | [anchor] | [url] | [sibling\u002Fhub\u002Fproduct] |\n\n## Links TO This Article (recommended)\nPages that should link to this article:\n- [existing post title] → [URL] — reason: [topical overlap]\n- [existing post title] → [URL] — reason: [topical overlap]\n\n## Cluster Gaps Identified\nArticles not yet written that would strengthen this cluster:\n- [suggested topic] — would link to\u002Ffrom this article\n```\n\n**promotion-checklist.md**:\n```markdown\n# Promotion Checklist: [Title]\n\n## Immediate (Day 0-1)\n- [ ] Publish article with schema markup\n- [ ] Submit URL to Google Search Console\n- [ ] Share on primary social channels\n- [ ] Email to newsletter subscribers (if relevant)\n- [ ] Internal link from 2-3 existing high-traffic posts\n\n## Week 1\n- [ ] Monitor initial indexing and ranking\n- [ ] Engage with comments and social shares\n- [ ] Reach out to quoted sources\u002Fexperts for shares\n- [ ] Submit to relevant industry newsletters\u002Faggregators\n\n## Month 1\n- [ ] Track ranking progress for target keywords\n- [ ] Analyze traffic patterns and user engagement\n- [ ] Update content if new information becomes available\n- [ ] Consider paid promotion if organic pickup is slow\n\n## Ongoing\n- [ ] Monitor for link opportunities (outreach targets)\n- [ ] Update annually with new data\u002Fproducts\n- [ ] Track competitor content updates\n- [ ] Measure conversion\u002Fbusiness impact\n```\n\n**optimization-opportunities.md**:\n```markdown\n# Future Optimization: [Title]\n\n## Content Enhancement Opportunities\n- **Additional sections to consider:** [based on competitor gaps not addressed]\n- **Emerging trends to incorporate:** [industry developments]\n- **User feedback integration:** [plan for incorporating reader questions]\n\n## SEO Improvement Potential\n- **Additional keywords to target:** [related terms with opportunity]\n- **Schema markup enhancements:** [HowTo, Product, Review schemas if applicable]\n- **Internal linking expansion:** [as more content gets published]\n\n## Conversion Optimization\n- **CTA testing opportunities:** [different calls-to-action to test]\n- **Lead magnet integration:** [relevant downloadable resources]\n- **Personalization potential:** [dynamic content based on user type]\n\n## Technical Enhancements\n- **Mobile optimization:** [mobile-specific improvements]\n- **Page speed optimization:** [if needed based on PageSpeed insights]\n- **Interactive elements:** [calculators, tools, widgets to consider]\n```\n\n### 5.3 Success Metrics & Monitoring Setup\n\n**Tracking recommendations:**\n```\nSet up monitoring for:\n\nSEO Metrics:\n├─ Primary keyword ranking (weekly checks)\n├─ Secondary keyword rankings\n├─ Organic traffic growth\n├─ Click-through rates from SERP\n└─ Featured snippet captures\n\nEngagement Metrics:\n├─ Time on page\n├─ Bounce rate\n├─ Scroll depth\n├─ Internal link click rates\n└─ Social shares and comments\n\nBusiness Metrics:\n├─ Conversion rate (if applicable)\n├─ Lead generation (email signups, demos)\n├─ Brand search volume increase\n└─ Backlink acquisition over time\n\nAI Citation Tracking:\n├─ Monitor ChatGPT, Claude, Perplexity for citations\n├─ Google AI Overview appearances\n├─ Track which sections get cited most\n└─ Adjust content based on AI platform preferences\n```\n\n---\n\n## Error Handling & Resilience\n\n### Graceful Degradation Hierarchy\n\n**Phase 0 crawling failures:**\n```\nIf Priority 1 crawling (homepage, pricing) fails:\n├─ Retry with different user agent\n├─ Try mobile user agent (some sites block desktop crawlers)\n├─ Use web_search for basic info: \"site:domain.com about pricing features\"\n├─ Trigger questionnaire with targeted questions\n└─ Continue with manual input rather than abort\n\nIf competition analysis fails:\n├─ Use web_search snippets as proxy\n├─ Focus on search intent analysis over detailed competitive gaps\n├─ Proceed with general best practices\n└─ Note limitations in confirmation gate\n```\n\n**Content generation failures:**\n```\nIf keyword confidence is LOW:\n├─ Present multiple keyword options in confirmation gate\n├─ Allow user to specify target keyword manually\n├─ Proceed with conservative optimization strategy\n└─ Note uncertainty in final deliverables\n\nIf brand voice confidence is LOW:\n├─ Use industry standard voice patterns\n├─ Apply conservative professional tone\n├─ Request brand voice feedback in QA report\n└─ Plan voice refinement for future content\n```\n\n**Quality assurance failures:**\n```\nIf link verification has high failure rate (>20%):\n├─ Focus on official sources only\n├─ Use more conservative claims\n├─ Increase hedging language (\"often,\" \"typically,\" \"many\")\n└─ Flag for manual source validation\n\nIf QA score below threshold:\n├─ Identify specific failing categories\n├─ Auto-retry optimization for fixable issues (keyword density, structure)\n├─ Flag for manual review if structural problems\n└─ Provide specific improvement roadmap\n```\n\n### Mode-Specific Fallbacks\n\n**Express mode degradation:**\n```\nTime pressure fallbacks:\n├─ Single keyword focus (skip secondary keyword optimization)\n├─ Basic competitor analysis (structure only, no gap analysis)\n├─ Core link verification (official sites only)\n├─ Standard templates (proven structures, less customization)\n└─ Essential QA only (critical issues, skip optimization suggestions)\n```\n\n**Expert mode enhancements:**\n```\nAdditional capabilities when time permits:\n├─ Multi-platform SERP analysis (Google, Bing, DuckDuckGo)\n├─ Social media content analysis (Twitter\u002FLinkedIn posts about topic)\n├─ Review site analysis (G2, Capterra for SaaS topics)\n├─ Trend analysis (Google Trends, related topic momentum)\n└─ Advanced schema markup (HowTo, Product, Review schemas)\n```\n\n---\n\n## Examples & Use Cases\n\n### Example 1: SaaS Comparison Article\n\n**Input:**\n```\ntopic: \"best email apps for productivity 2026\"\ndomain: \"https:\u002F\u002Ffilomail.com\"\nmode: \"standard\"\n```\n\n**Phase 0 Output:**\n```\nProduct: FiloMail (AI email client)\nIntent: comparison → need comparison table + detailed reviews\nTarget: 2800 words (SERP average: 2500)\nCompetitors: Superhuman, Spark, Apple Mail, Thunderbird, Outlook\nVoice: Professional (3\u002F5), Energetic (4\u002F5), Technical (3\u002F5)\n```\n\n**Article Structure:**\n```\nH1: Best Email Apps for Productivity 2026 - Tested by Power Users\n├─ Quick Comparison Table (8 apps)\n├─ FiloMail: Best for AI-Powered Email Management\n├─ Superhuman: Best for Speed and Keyboard Shortcuts\n├─ Spark: Best for Team Collaboration\n├─ How to Choose the Right Email App for Your Workflow\n└─ FAQ (6 questions)\n\nWord count: 2,847 | Links: 23 external, 6 internal | Score: 78\u002F100\n```\n\n### Example 2: How-To Guide\n\n**Input:**\n```\ntopic: \"how to manage email overload without losing important messages\"\ndomain: \"https:\u002F\u002Fproductivityblog.com\"\nmode: \"expert\"\n```\n\n**Phase 0 Output:**\n```\nProduct: Productivity Blog (content site)\nIntent: how-to → need step-by-step process + troubleshooting\nTarget: 2200 words (SERP average: 1900)\nVoice: Friendly (2\u002F5), Balanced energy (3\u002F5), Low-tech (2\u002F5)\n```\n\n**Article Structure:**\n```\nH1: How to Manage Email Overload Without Losing Important Messages\n├─ The Email Overload Problem: Why Generic Advice Doesn't Work\n├─ What You Need Before Starting (Prerequisites)\n├─ Step 1: Audit Your Current Email Volume and Sources\n├─ Step 2: Set Up Smart Filtering Rules\n├─ Step 3: Create an Email Triage System\n├─ Step 4: Establish Sustainable Daily Routines\n├─ Common Problems and How to Fix Them\n└─ FAQ (5 questions)\n\nWord count: 2,156 | Links: 15 external, 4 internal | Score: 82\u002F100\n```\n\n### Example 3: Alternatives Page\n\n**Input:**\n```\ntopic: \"gmail alternatives for privacy-conscious users\"\ndomain: \"https:\u002F\u002Fprivacytools.org\"\nmode: \"express\"\n```\n\n**Phase 0 Output:**\n```\nProduct: Privacy Tools (directory site)\nIntent: alternatives → need switching guide + privacy comparison\nTarget: 1800 words (SERP average: 1600, express mode matches competition)\nVoice: Technical (4\u002F5), Serious (2\u002F5), Expert audience\n```\n\n**Article Structure:**\n```\nH1: Gmail Alternatives for Privacy-Conscious Users\n├─ Why Privacy Matters for Email (Brief context)\n├─ Privacy Comparison Table (6 providers)\n├─ ProtonMail: Best for End-to-End Encryption\n├─ Tutanota: Best for German Privacy Standards\n├─ StartMail: Best for Easy Gmail Migration\n├─ How to Switch Email Providers Securely\n└─ FAQ (4 questions)\n\nWord count: 1,847 | Links: 18 external, 3 internal | Score: 67\u002F100 (Express pass)\n```\n\n---\n\n## Related Skills\n\n- **seo-geo**: For broader SEO strategy and AI search optimization\n- **content-qa**: For additional quality assurance workflows\n- **competitor-alternatives**: For specialized comparison page structures\n- **programmatic-seo**: For scaling this approach across multiple pages\n- **copy-editing**: For detailed editing and refinement passes\n\n---\n\n## Skill Metadata\n\n**Version:** 3.1.0\n**Dependencies:** web_search, web_fetch, file operations\n**Optional:** browser automation (for JS-heavy sites)\n**Output format:** Markdown + JSON + Schema\n**Estimated time:** 5-35 minutes based on mode\n**Target audience:** Anyone with a website who needs SEO content\n**Distribution:** ClawHub compatible, zero hardcoded dependencies\n\n**Last updated:** April 2026\n**Testing status:** Validated against SaaS, e-commerce, service, and content sites\n**Success rate:** 89% first-run publishable quality (internal testing)\n",{"name":5,"version":24,"triggers":25,"description":33,"permissions":34,"external_access":37},"3.2.0",[26,27,28,29,30,31,32],"write a blog post","SEO article","write about [topic]","blog post for [domain]","comparison article","alternatives page","how-to guide","Fully automated SEO article writer. Give it a topic and domain — it handles\neverything: auto-discovers product context, researches keywords, analyzes\ncompetitors, writes the article, verifies links, and delivers a complete\npublication package (article + QA report + schema markup + promotion checklist).\nOne confirmation gate before writing starts, then hands-off execution.\nWorks for any site, any industry, any CMS. No hardcoded dependencies.\n",[35],{"disk_write":36},"Writes article draft, QA report, and schema file to local disk (crash-safe incremental execution). Output directory is user-configurable.",[38,41],{"type":39,"description":40},"web_search","SERP analysis — searches Google\u002FBing\u002FDDG for competitor URLs and keyword data. No API key required; uses the agent's built-in web search tool.",{"type":42,"description":43},"web_fetch","Link verification — checks that external URLs in the article are live. No API key required.","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fs\u002Fseo-blog-writer",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill seo-blog-writer",{"tool":59,"command":60},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill seo-blog-writer",{"tool":62,"command":63},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill seo-blog-writer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fseo-blog-writer\u002FSKILL.md",true,[],[68,75,82,89,96,103],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]