Free, open source blog writer for Claude Code. Researches current sources, writes answer-first posts for Google and AI answers, has an independent reviewer score each one out of 100 and ships only after five delivery gates. 32 skills, 30 /blog commands, 5 agents. Active development at AI-Marketing-Hub/claude-blog; public releases ship here.
Python agent-skillsaiai-citationsai-contentai-marketingai-marketing-hubblogblog-writingclaude-codeclaude-code-skillclaude-pluginclaude-skillcontent-creationcontent-optimizationcontent-strategyeeatgeomultilingualopen-sourceseo
fix(audit): pass 1 - currency reframe + image models + script robustness
Agrici Daniel1c9cdc692740
diff --git a/CLAUDE.md b/CLAUDE.mdindex bcc40c8..8c5f33f 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -21,9 +21,9 @@ claude-blog/CLAUDE.md # Project instructions (this file)CONTRIBUTORS.md # Pro Hub Challenge attribution and integration decisionsCHANGELOG.md # Keep a Changelog format- .claude-plugin/plugin.json # Plugin manifest (v1.9.0)+ .claude-plugin/plugin.json # Plugin manifest (v1.10.0).claude-plugin/marketplace.json # Marketplace catalog for distribution- .mcp.json # MCP server configuration (nanobanana-mcp)+ .mcp.example.json # MCP config example (tracked; .mcp.json is gitignored)pyproject.toml # Python packaging (3.11+)scripts/analyze_blog.py # 5-category quality scoring (stdlib)scripts/blog_preflight.py # 5-gate delivery contract runner (v1.9.0)diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 87dfe6e..6afb44c 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -28,7 +28,7 @@ data flow, scoring methodology, file conventions, and extension points.| |v v+----------------------------+ +---------------------------+-| 30 Sub-Skills | | On-Demand References |+| 31 Sub-Skills | | On-Demand References || skills/blog-*/SKILL.md | | skills/blog/references/*.md || | | skills/blog/templates/*.md || write rewrite | | |@@ -436,7 +436,7 @@ After installation, `claude-blog` occupies this structure inside `~/.claude/`:│ │ │ ├── schema-stack.md│ │ │ └── visual-media.md│ │ ├── templates/-│ │ │ ├── how-to.md+│ │ │ ├── how-to-guide.md│ │ │ ├── listicle.md│ │ │ ├── case-study.md│ │ │ ├── comparison.md@@ -447,7 +447,7 @@ After installation, `claude-blog` occupies this structure inside `~/.claude/`:│ │ │ ├── tutorial.md│ │ │ ├── news-analysis.md│ │ │ ├── data-research.md-│ │ │ └── faq-knowledge-base.md+│ │ │ └── faq-knowledge.md│ │ └── scripts/│ │ └── analyze_blog.py│ ├── blog-write/SKILL.md@@ -501,6 +501,6 @@ DISCOURSE.md, auto-loaded via `scripts/load_untrusted_root.py` withCSPRNG nonce fencing). v1.8.4+ enforces prose hygiene and versioncoherence via CI (see `scripts/lint_prose.py`, `tests/test_version_coherence.py`).v1.9.0 adds the 5-gate Blog Delivery Contract (see-`skills/blog/references/blog-delivery-contract.md`) and 160-test pytest+`skills/blog/references/blog-delivery-contract.md`) and 206-test pytestsuite including mutation-test-verified XSS, symlink, and frontmatterregression coverage.diff --git a/docs/TEMPLATES.md b/docs/TEMPLATES.mdindex b9fe61a..a4c6a4e 100644--- a/docs/TEMPLATES.md+++ b/docs/TEMPLATES.md@@ -10,7 +10,7 @@ consistent quality and optimization across all content.| Template | Content Type | Word Count Target | Best For ||----------|-------------|-------------------|----------|-| how-to.md | How-To Guide | 2,000-2,500 | Step-by-step tutorials, process guides |+| how-to-guide.md | How-To Guide | 2,000-2,500 | Step-by-step tutorials, process guides || listicle.md | Listicle | 1,500-2,000 | Ranked lists, curated collections || case-study.md | Case Study | 2,000-3,000 | Client results, project retrospectives || comparison.md | Comparison | 1,500-2,000 | X vs Y, tool evaluations |@@ -21,7 +21,7 @@ consistent quality and optimization across all content.| tutorial.md | Tutorial | 2,500-3,500 | Code walkthroughs, technical demos || news-analysis.md | News Analysis | 800-1,500 | Industry updates, algorithm changes || data-research.md | Data/Research | 2,500-3,500 | Original research, survey results |-| faq-knowledge-base.md | FAQ / Knowledge Base | 1,500-2,000 | Reference content, Q&A collections |+| faq-knowledge.md | FAQ / Knowledge Base | 1,500-2,000 | Reference content, Q&A collections |---@@ -106,7 +106,7 @@ If the user specifies a content type, that template is used directly:```/blog write "10 Best CI/CD Tools for 2026" --> listicle.md-/blog write "How to Set Up Kubernetes Monitoring" --> how-to.md+/blog write "How to Set Up Kubernetes Monitoring" --> how-to-guide.md/blog write case study: Acme Corp migration --> case-study.md```@@ -116,7 +116,7 @@ If no type is specified, the orchestrator analyzes the topic:| Topic Signal | Template Selected ||-------------|-------------------|-| "How to...", "Guide to..." | how-to.md |+| "How to...", "Guide to..." | how-to-guide.md || Numbers in title ("10 Best...", "7 Ways...") | listicle.md || "X vs Y", "compared", "alternative" | comparison.md || "Review", "tested", "hands-on" | product-review.md |@@ -125,20 +125,20 @@ If no type is specified, the orchestrator analyzes the topic:| "Tutorial", "walkthrough", "step by step" | tutorial.md || News event, update, announcement | news-analysis.md || Survey, study, data, research | data-research.md |-| "FAQ", "questions about" | faq-knowledge-base.md |+| "FAQ", "questions about" | faq-knowledge.md || Industry trend, prediction, opinion | thought-leadership.md || Expert quotes, collection, roundup | roundup.md |### 3. Default-If the topic is ambiguous, the orchestrator defaults to `how-to.md` as the+If the topic is ambiguous, the orchestrator defaults to `how-to-guide.md` as themost versatile template and confirms with the user.---## Template Details-### how-to.md+### how-to-guide.mdBest for step-by-step guides where the reader wants to accomplish something.@@ -359,7 +359,7 @@ Visuals: 3-4 charts (data visualizations are central)Info-Gain: Original data is the entire value proposition```-### faq-knowledge-base.md+### faq-knowledge.mdBest for comprehensive Q&A reference content.@@ -395,7 +395,7 @@ Schema: FAQPage schema critical for this type1. Copy an existing template as a starting point:```bash- cp ~/.claude/skills/blog/templates/how-to.md \+ cp ~/.claude/skills/blog/templates/how-to-guide.md \~/.claude/skills/blog/templates/my-custom-type.md```2. Define the section structure for your content typediff --git a/scripts/ai_citation_score.py b/scripts/ai_citation_score.pyindex eece607..90a262a 100644--- a/scripts/ai_citation_score.py+++ b/scripts/ai_citation_score.py@@ -473,7 +473,10 @@ def score_analysis(analysis: dict[str, Any], engine: str = "all") -> dict[str, Adef score_file(file_path: str | Path, engine: str = "all") -> dict[str, Any]:- analysis = analyze_blog.analyze_file(str(file_path))+ try:+ analysis = analyze_blog.analyze_file(str(file_path))+ except (OSError, UnicodeDecodeError) as exc:+ analysis = {"error": f"Could not analyze {file_path}: {exc}"}return score_analysis(analysis, engine=engine)diff --git a/scripts/content_decay.py b/scripts/content_decay.pyindex 17a7e53..345f7d5 100644--- a/scripts/content_decay.py+++ b/scripts/content_decay.py@@ -18,6 +18,7 @@ from __future__ import annotationsimport argparseimport json+import mathimport sysfrom pathlib import Pathfrom typing import Any@@ -33,14 +34,23 @@ class ContentDecayError(ValueError):"""Raised when an export cannot be used for content decay analysis."""-def _as_number(value: Any) -> float:- """Return value as a nonnegative float, using 0 for missing values."""+def _reject_json_constant(value: str) -> None:+ """Reject JSON constants that are not valid finite JSON numbers."""+ raise ValueError(f"non-finite JSON value is not allowed: {value}")+++def _as_number(value: Any, *, metric: str, page: str) -> float:+ """Return value as a nonnegative finite float, using 0 for null values."""if value is None:return 0.0try:number = float(value)except (TypeError, ValueError):return 0.0+ if not math.isfinite(number):+ raise ContentDecayError(+ f"Metric {metric} for page {page} must be a finite number."+ )return max(number, 0.0)@@ -74,9 +84,13 @@ def load_export(path: str | Path) -> list[dict[str, Any]]:raise ContentDecayError(f"{export_path} is empty.")try:- data = json.loads(raw)+ data = json.loads(raw, parse_constant=_reject_json_constant)except json.JSONDecodeError as exc:raise ContentDecayError(f"{export_path} is not valid JSON: {exc.msg}") from exc+ except ValueError as exc:+ raise ContentDecayError(+ f"{export_path} contains a non-finite JSON value: {exc}"+ ) from excif isinstance(data, list):rows = data@@ -96,17 +110,27 @@ def load_export(path: str | Path) -> list[dict[str, Any]]:return rows-def aggregate_pages(rows: list[dict[str, Any]]) -> dict[str, dict[str, float]]:+def aggregate_pages(+ rows: list[dict[str, Any]], *, required_metric: str | None = None+) -> dict[str, dict[str, float]]:"""Aggregate GSC rows by page and sum clicks and impressions."""pages: dict[str, dict[str, float]] = {}for row in rows:page = _row_page(row)if not page:continue+ if required_metric is not None and required_metric not in row:+ raise ContentDecayError(+ f"Row for page {page} is missing selected metric column: {required_metric}."+ )if page not in pages:pages[page] = {"clicks": 0.0, "impressions": 0.0}- pages[page]["clicks"] += _as_number(row.get("clicks"))- pages[page]["impressions"] += _as_number(row.get("impressions"))+ pages[page]["clicks"] += _as_number(+ row.get("clicks"), metric="clicks", page=page+ )+ pages[page]["impressions"] += _as_number(+ row.get("impressions"), metric="impressions", page=page+ )return pages@@ -139,8 +163,13 @@ def recommend_action(previous_impressions = previous.get("impressions", 0.0)current_metric = current.get(metric, 0.0)previous_metric = previous.get(metric, 0.0)+ metric_decline = _decline(previous_metric, current_metric)- if previous_clicks <= 3 and previous_impressions <= 100:+ if (+ previous_clicks <= 3+ and previous_impressions <= 100+ and metric_decline >= threshold+ ):return ("prune","The page had low prior demand, so pruning may be better than a rewrite.",@@ -184,11 +213,11 @@ def analyze_decay("""Compare two GSC exports and return a structured content decay report."""if metric not in {"clicks", "impressions"}:raise ContentDecayError("Metric must be clicks or impressions.")- if threshold < 0 or threshold > 1:+ if not math.isfinite(threshold) or threshold < 0 or threshold > 1:raise ContentDecayError("Threshold must be between 0 and 1.")- current_pages = aggregate_pages(current_rows)- previous_pages = aggregate_pages(previous_rows)+ current_pages = aggregate_pages(current_rows, required_metric=metric)+ previous_pages = aggregate_pages(previous_rows, required_metric=metric)if not current_pages:raise ContentDecayError("Current export has no usable page rows.")@@ -266,6 +295,17 @@ def analyze_decay(}+def _escape_markdown_cell(value: Any) -> str:+ """Escape table cell characters that can break markdown table structure."""+ text = str(value)+ text = text.replace("\\", "\\\\")+ text = text.replace("|", "\\|")+ text = text.replace("\r\n", "\\n")+ text = text.replace("\n", "\\n")+ text = text.replace("\r", "\\n")+ return text++def format_markdown(report: dict[str, Any]) -> str:"""Render a content decay report as markdown."""summary = report["summary"]@@ -295,13 +335,13 @@ def format_markdown(report: dict[str, Any]) -> str:dropped = "yes" if row["dropped_out"] else "no"lines.append("| {severity} | {page} | {previous:g} | {current:g} | {decline:.1f}% | {dropped} | {action} |".format(- severity=row["severity"],- page=row["page"],+ severity=_escape_markdown_cell(row["severity"]),+ page=_escape_markdown_cell(row["page"]),previous=row["previous_metric"],current=row["current_metric"],decline=row["decline_percent"],- dropped=dropped,- action=row["recommended_action"],+ dropped=_escape_markdown_cell(dropped),+ action=_escape_markdown_cell(row["recommended_action"]),))@@ -360,13 +400,13 @@ def main(argv: list[str] | None = None) -> int:metric=args.metric,)except ContentDecayError as exc:- print(json.dumps({"error": str(exc)}, indent=2))+ print(json.dumps({"error": str(exc)}, indent=2, allow_nan=False))return 1if args.format == "markdown":output = format_markdown(report)else:- output = json.dumps(report, indent=2) + "\n"+ output = json.dumps(report, indent=2, allow_nan=False) + "\n"write_output(output, args.output)return 0diff --git a/scripts/generate_hero.py b/scripts/generate_hero.pyindex b222b34..311cc6a 100644--- a/scripts/generate_hero.py+++ b/scripts/generate_hero.py@@ -38,7 +38,7 @@ from typing import Callable, OptionalOUTPUT_FILE_PREFIX = "hero"DEFAULT_WIDTH = 1200DEFAULT_HEIGHT = 630-DEFAULT_GEMINI_MODEL = os.environ.get("NANOBANANA_MODEL", "gemini-3.1-flash-image-preview")+DEFAULT_GEMINI_MODEL = os.environ.get("NANOBANANA_MODEL") or "gemini-3.1-flash-image"OPENVERSE_API = "https://api.openverse.engineering/v1/images/"UNSPLASH_API = "https://api.unsplash.com/search/photos"PEXELS_API = "https://api.pexels.com/v1/search"@@ -230,8 +230,10 @@ def _try_gemini(topic: str, tags: list[str], out_dir: Path, width: int, height:img_bytes: Optional[bytes] = Noneused_model = model- # Try Gemini image-preview models first (via generate_content)- for try_model in (model, "gemini-3.1-flash-image-preview", "gemini-2.5-flash-image"):+ # Try Gemini image-capable GA models first (via generate_content).+ for try_model in dict.fromkeys((model, "gemini-3.1-flash-image", "gemini-2.5-flash-image")):+ if not try_model:+ continuetry:response = client.models.generate_content(model=try_model, contents=prompt)cands = getattr(response, "candidates", None) or []@@ -252,23 +254,6 @@ def _try_gemini(topic: str, tags: list[str], out_dir: Path, width: int, height:except Exception as e:print(f"[gemini] {try_model} generate_content failed: {e}", file=sys.stderr)- # Fall back to Imagen via generate_images- if not img_bytes:- for try_model in ("imagen-4.0-fast-generate-001", "imagen-4.0-generate-001"):- try:- response = client.models.generate_images(- model=try_model, prompt=prompt,- config={"number_of_images": 1, "aspect_ratio": "16:9"},- )- imgs = getattr(response, "generated_images", None) or []- if imgs:- img_obj = imgs[0].image- img_bytes = getattr(img_obj, "image_bytes", None) or img_obj.read()- used_model = try_model- break- except Exception as e:- print(f"[gemini] {try_model} generate_images failed: {e}", file=sys.stderr)-if not img_bytes:return Nonediff --git a/scripts/quality_gate.py b/scripts/quality_gate.pyindex b71257a..9cbfdc6 100644--- a/scripts/quality_gate.py+++ b/scripts/quality_gate.py@@ -10,6 +10,7 @@ from __future__ import annotationsimport argparseimport json+import osimport subprocessimport sysfrom pathlib import Path@@ -26,12 +27,13 @@ BLOG_SUFFIXES = {".md", ".mdx"}def _path_for_policy(path: Path, root: Path | None = None) -> Path:- """Return a path relative to root when possible for directory checks."""- root = (root or Path.cwd()).resolve()+ """Return a lexical path relative to root when possible for directory checks."""+ root = Path(os.path.abspath(os.fspath(root or Path.cwd())))+ absolute_path = Path(os.path.abspath(os.fspath(path)))try:- return path.resolve(strict=False).relative_to(root)+ return absolute_path.relative_to(root)except ValueError:- return path+ return absolute_pathdef is_excluded_path(file_path: str | Path, root: Path | None = None) -> bool:@@ -44,10 +46,7 @@ def is_excluded_path(file_path: str | Path, root: Path | None = None) -> bool:def has_blog_frontmatter(file_path: str | Path) -> bool:"""Return True when a Markdown file has blog post frontmatter keys."""path = Path(file_path)- try:- content = path.read_text(encoding="utf-8")- except (OSError, UnicodeDecodeError):- return False+ content = path.read_text(encoding="utf-8")frontmatter = analyze_blog.extract_frontmatter(content)normalized = {key.lower(): value for key, value in frontmatter.items()}@@ -66,7 +65,10 @@ def is_blog_post(file_path: str | Path, root: Path | None = None) -> bool:return Falseif not path.is_file():return False- return has_blog_frontmatter(path)+ try:+ return has_blog_frontmatter(path)+ except (OSError, UnicodeDecodeError):+ return Truedef _staged_files() -> list[str]:@@ -101,29 +103,41 @@ def _top_high_severity_issues(return [issue for issue in issues if issue.get("severity") == "high"][:limit]+def _safe_analyze_file(path: Path) -> dict[str, Any]:+ """Run the shared analyzer and convert file read failures into JSON errors."""+ try:+ return analyze_blog.analyze_file(str(path))+ except (OSError, UnicodeDecodeError) as exc:+ return {"error": f"Could not analyze {path}: {exc}"}++def analyze_post(file_path: str | Path, threshold: int) -> dict[str, Any]:"""Analyze a selected post and return gate-oriented result data."""path = Path(file_path)- result = analyze_blog.analyze_file(str(path))+ result = _safe_analyze_file(path)+ error_message = result.get("error")if "error" in result:score = 0issues = [{"category": "analyzer","severity": "high",- "issue": result["error"],+ "issue": error_message,}]else:score = result["score"]["total"]issues = result["score"].get("issues", [])- return {+ output = {"file": str(path),"score": score,"passed": score >= threshold,"issues": _top_high_severity_issues(issues),}+ if error_message:+ output["error"] = error_message+ return outputdef _format_text(results: list[dict[str, Any]], failures: list[dict[str, Any]], threshold: int) -> str:@@ -151,11 +165,14 @@ def _format_text(results: list[dict[str, Any]], failures: list[dict[str, Any]],def _format_json(results: list[dict[str, Any]], failures: list[dict[str, Any]], threshold: int) -> str:+ errors = [result["error"] for result in results if result.get("error")]payload = {"threshold": threshold,"checked": results,"failures": failures,}+ if errors:+ payload["error"] = "; ".join(errors)return json.dumps(payload, indent=2, sort_keys=True)diff --git a/scripts/style_learn.py b/scripts/style_learn.pyindex 5bfcbc5..1331192 100644--- a/scripts/style_learn.py+++ b/scripts/style_learn.py@@ -220,7 +220,29 @@ def sentence_lengths(text: str) -> list[int]:def word_tokens(text: str) -> list[str]:"""Return normalized word tokens for corpus-level rates."""- return re.findall(r"[a-z0-9]+(?:'[a-z]+)?", text.lower())+ tokens: list[str] = []+ current: list[str] = []+ normalized = text.lower()++ for index, char in enumerate(normalized):+ if char.isalnum():+ current.append(char)+ continue+ if (+ char == "'"+ and current+ and index + 1 < len(normalized)+ and normalized[index + 1].isalnum()+ ):+ current.append(char)+ continue+ if current:+ tokens.append("".join(current))+ current = []++ if current:+ tokens.append("".join(current))+ return tokensdef content_tokens(text: str) -> list[str]:@@ -414,6 +436,11 @@ def learn_style(inputs: Sequence[str | Path], min_posts: int = 5) -> dict[str, Aall_word_tokens = [token for sample in samples for token in sample["word_tokens"]]all_tokens = [token for sample in samples for token in sample["content_tokens"]]total_word_count = sum(sample["word_count"] for sample in samples)+ zero_content_corpus = total_word_count == 0+ if zero_content_corpus:+ warnings.append(+ "No analyzable words found in the sample corpus. Tone descriptors were skipped."+ )transition_count = sum(s["analysis"]["transition_words"]["transition_count"] for s in samples)transition_sentences = sum(s["analysis"]["transition_words"]["total_sentences"] for s in samples)@@ -502,7 +529,7 @@ def learn_style(inputs: Sequence[str | Path], min_posts: int = 5) -> dict[str, Afor sample in samples],}- profile["tone_descriptors"] = derive_tone_descriptors(profile)+ profile["tone_descriptors"] = [] if zero_content_corpus else derive_tone_descriptors(profile)return profilediff --git a/skills/blog-google/scripts/pagespeed_check.py b/skills/blog-google/scripts/pagespeed_check.pyindex eceef41..4af3c92 100644--- a/skills/blog-google/scripts/pagespeed_check.py+++ b/skills/blog-google/scripts/pagespeed_check.py@@ -92,6 +92,7 @@ def run_pagespeed("lighthouse_scores": {},"lab_metrics": {},"field_metrics": {},+ "audit_details": {},"opportunities": [],"diagnostics": [],"failed_audits": [],diff --git a/skills/blog-image/SKILL.md b/skills/blog-image/SKILL.mdindex a0270eb..2267675 100644--- a/skills/blog-image/SKILL.md+++ b/skills/blog-image/SKILL.md@@ -143,9 +143,9 @@ Call `set_aspect_ratio` BEFORE generating:| `clear_conversation` | Reset session context |**Model selection** (use `set_model` MCP tool if switching):-- **NB2 Flash** (default): Best for most blog images - fast, 14 ratios, 4K, $0.067/img-- **NB Pro**: Use for hero images with text overlays (94% text accuracy) or highest quality - $0.134/img-- **Original**: Budget option at $0.039/img - 5 ratios, 1K max+- **NB2 Flash** (`gemini-3.1-flash-image`, default): Best for most blog images - fast, 14 ratios, 4K, $0.067/img+- **NB Pro** (`gemini-3-pro-image`): Use for hero images with text overlays (94% text accuracy) or highest quality - $0.134/img+- **Original** (`gemini-2.5-flash-image`): Budget option at $0.039/img - 5 ratios, 1K maxLoad `references/mcp-tools.md` for parameter details.Load `references/gemini-models.md` for model specs, pricing, and rate limits.diff --git a/skills/blog-image/references/gemini-models.md b/skills/blog-image/references/gemini-models.mdindex e5c80aa..2b77688 100644--- a/skills/blog-image/references/gemini-models.md+++ b/skills/blog-image/references/gemini-models.md@@ -1,29 +1,29 @@# Gemini Image Generation Models - Nano Banana-> Last updated: 2026-03-14-> Aligned with Google's March 2026 API state and pricing+> Last updated: 2026-07-07+> Aligned with Google's July 2026 model availability state. Prices are approximate.## Available Models-### gemini-3.1-flash-image-preview (Recommended - Speed + Quality)+### gemini-3.1-flash-image (Recommended - Speed + Quality)| Property | Value ||----------|-------|-| **Model ID** | `gemini-3.1-flash-image-preview` |+| **Model ID** | `gemini-3.1-flash-image` || **Tier** | Nano Banana 2 (Flash) || **Speed** | Fast - optimized for high-volume use || **Aspect Ratios** | All 14 ratios (see table below) || **Max Resolution** | Up to 4096×4096 (4K tier) || **Features** | Google Search grounding (web + image), thinking levels, image-only output, extreme aspect ratios, 512px drafts |-| **Rate Limits (Free)** | ~5-15 RPM / ~20-500 RPD (preview model - more restrictive than stable) |+| **Rate Limits (Free)** | ~5-15 RPM / ~20-500 RPD, varies by billing and region || **Output Tokens** | ~1,290 output tokens per image || **Cost (1K)** | ~$0.067/image || **Arena Rank** | #1 on Artificial Analysis Image Arena || **Best For** | Most blog images, rapid iteration, batch generation |-### gemini-3-pro-image-preview (Highest Quality - Text + Detail)+### gemini-3-pro-image (Highest Quality - Text + Detail)| Property | Value ||----------|-------|-| **Model ID** | `gemini-3-pro-image-preview` |+| **Model ID** | `gemini-3-pro-image` || **Tier** | Nano Banana Pro || **Speed** | Slower - uses reasoning before generating (generates interim images internally) || **Aspect Ratios** | All 14 ratios |@@ -34,7 +34,7 @@| **Cost (1K)** | ~$0.134/image (2× Flash) || **Best For** | Hero images with text overlays, highest quality final assets, branded content |-**Note:** The base text model `gemini-3-pro-preview` was deprecated March 9, 2026, but the **image variant** (`gemini-3-pro-image-preview`) remains active on AI Studio and Vertex AI.+**Note:** The preview image ID `gemini-3-pro-image-preview` shut down on 2026-06-25. Use `gemini-3-pro-image`.### gemini-2.5-flash-image (Stable Fallback)| Property | Value |@@ -48,17 +48,26 @@| **Cost (1K)** | ~$0.039/image || **Best For** | Budget-conscious workflows, proven quality, stable fallback |-### Imagen 4 (Dedicated Image Models)+### Imagen 4 (Deprecated Dedicated Image Models)| Property | Fast | Standard | Ultra ||----------|------|----------|-------|+| **Model IDs** | `imagen-4.0-fast-generate-001` | `imagen-4.0-generate-001` | `imagen-4.0-ultra-generate-001` || **Pricing** | $0.02/image | $0.04/image | $0.06/image || **Speed** | Fastest | Medium | Slowest || **Best For** | Batch generation, drafts | General-purpose blog images | Maximum detail, print |-**Notes:** Imagen 4 models are dedicated image generators (not multimodal LLMs). They lack conversational editing but offer lower per-image cost for high-volume workflows.+**Status:** Deprecated on 2026-06-15; shutdown scheduled for 2026-08-17. Use `gemini-3.1-flash-image` for current standard image generation, or `gemini-3-pro-image` for highest quality.++**Notes:** Imagen 4 models are dedicated image generators (not multimodal LLMs). They lack conversational editing and should not be used for new workflows.## Deprecated Models (DO NOT USE)+### gemini-3.1-flash-image-preview+- **Status:** Deprecated on 2026-05-28 and shut down on 2026-06-25. Use `gemini-3.1-flash-image`.++### gemini-3-pro-image-preview+- **Status:** Deprecated on 2026-05-28 and shut down on 2026-06-25. Use `gemini-3-pro-image`.+### gemini-2.5-flash-image-preview- **Status:** Shut down - use the stable `gemini-2.5-flash-image` variant@@ -66,7 +75,7 @@- **Status:** Deprecated, shutdown June 1, 2026. Use `gemini-2.5-flash-image`### Legacy models (Gemini 2.0 Flash and earlier)-- **Status:** All retiring June 1, 2026. Migrate to NB2 Flash or Imagen 4.+- **Status:** Shut down June 1, 2026. Migrate to `gemini-3.1-flash-image` or `gemini-3-pro-image`.## Model Selection for Blog Content@@ -123,7 +132,7 @@ Google cut free-tier limits by ~92% in December 2025. Current structure:| Tier 1 (Pay-as-you-go) | 150-300 | 1,500-10,000 | Enable billing on Google Cloud project || Tier 2 ($250+ spend) | 1,000+ | Unlimited | Cumulative $250+ API spend |-**Important:** Preview models (NB2, Pro) have more restrictive limits than stable models. Free tier for image generation may require billing to be enabled - some users report 0 IPM (images per minute) without billing.+**Important:** The old NB2 and Pro preview image IDs are shut down. Free tier for image generation may require billing to be enabled - some users report 0 IPM (images per minute) without billing.## Pricing (March 2026)@@ -135,9 +144,9 @@ Google cut free-tier limits by ~92% in December 2025. Current structure:| Pro | 1K | ~$0.134 | 2× Flash || Pro | 4K | ~$0.536 | Premium quality || Original (2.5) | 1K | ~$0.039 | Budget option |-| Imagen 4 Fast | - | $0.02 | Cheapest dedicated image model |-| Imagen 4 Standard | - | $0.04 | Mid-range dedicated |-| Imagen 4 Ultra | - | $0.06 | Highest quality dedicated |+| Imagen 4 Fast | - | $0.02 | Deprecated, shutdown 2026-08-17 |+| Imagen 4 Standard | - | $0.04 | Deprecated, shutdown 2026-08-17 |+| Imagen 4 Ultra | - | $0.06 | Deprecated, shutdown 2026-08-17 || Batch API | Any | 50% discount | Asynchronous, higher latency |**Cost optimization:** Use 512px for drafts (cheapest), 1K for standard blog images, reserve 2K-4K for hero images and final assets.diff --git a/skills/blog-image/references/mcp-tools.md b/skills/blog-image/references/mcp-tools.mdindex f936385..7d2ca97 100644--- a/skills/blog-image/references/mcp-tools.md+++ b/skills/blog-image/references/mcp-tools.md@@ -70,8 +70,9 @@ Switch the active Gemini model.| `model` | string | Yes | Model identifier |**Available models:**-- `gemini-3.1-flash-image-preview` (default, recommended)-- `gemini-2.5-flash-image` (stable fallback)+- `gemini-3.1-flash-image` (default, recommended, Nano Banana 2)+- `gemini-3-pro-image` (high-quality, Nano Banana Pro)+- `gemini-2.5-flash-image` (stable fallback, Nano Banana Original)### get_image_historyRetrieve list of images generated in the current session.@@ -92,7 +93,7 @@ Reset session context and conversation history.| Variable | Required | Description ||----------|----------|-------------|| `GOOGLE_AI_API_KEY` | Yes | API key from https://aistudio.google.com/apikey |-| `NANOBANANA_MODEL` | No | Override default model (default: `gemini-3.1-flash-image-preview`) |+| `NANOBANANA_MODEL` | No | Override default model (default: `gemini-3.1-flash-image`) |## Output DirectoryAll generated images are saved to: `~/Documents/nanobanana_generated/`diff --git a/skills/blog-image/scripts/setup_image_mcp.py b/skills/blog-image/scripts/setup_image_mcp.pyindex f06e186..d71fdfc 100644--- a/skills/blog-image/scripts/setup_image_mcp.py+++ b/skills/blog-image/scripts/setup_image_mcp.py@@ -21,7 +21,7 @@ from pathlib import PathMCP_NAME = "nanobanana-mcp"MCP_PACKAGE = "@ycse/nanobanana-mcp"-DEFAULT_MODEL = "gemini-3.1-flash-image-preview"+DEFAULT_MODEL = "gemini-3.1-flash-image"PINNED_PACKAGE = "@ycse/[email protected]" # latest stable as of 2026-04-27ENV_PLACEHOLDER = "${GOOGLE_AI_API_KEY}"PLUGIN_NAME = "claude-blog"diff --git a/skills/blog-image/scripts/validate_image_setup.py b/skills/blog-image/scripts/validate_image_setup.pyindex 472ea35..1d1c134 100644--- a/skills/blog-image/scripts/validate_image_setup.py+++ b/skills/blog-image/scripts/validate_image_setup.py@@ -22,6 +22,41 @@ from pathlib import PathMCP_NAME = "nanobanana-mcp"OUTPUT_DIR = Path.home() / "Documents" / "nanobanana_generated"GLOBAL_SETTINGS_PATH = Path.home() / ".claude" / "settings.json"+DEFAULT_NANOBANANA_MODEL = "gemini-3.1-flash-image"+SUPPORTED_GA_MODELS = {+ "gemini-3.1-flash-image": "Nano Banana 2 default",+ "gemini-3-pro-image": "Nano Banana Pro high quality",+ "gemini-3.1-flash-lite-image": "Nano Banana Lite low latency",+ "gemini-2.5-flash-image": "Nano Banana Original stable fallback",+}+DEPRECATED_MODEL_REPLACEMENTS = {+ "gemini-3.1-flash-image-preview": (+ "deprecated on 2026-05-28 and shut down on 2026-06-25; "+ "use gemini-3.1-flash-image"+ ),+ "gemini-3-pro-image-preview": (+ "deprecated on 2026-05-28 and shut down on 2026-06-25; "+ "use gemini-3-pro-image"+ ),+ "gemini-2.5-flash-image-preview": (+ "shut down on 2026-01-15; use gemini-2.5-flash-image"+ ),+ "gemini-2.0-flash-exp": (+ "shut down on 2026-06-01; use gemini-3.1-flash-image"+ ),+ "imagen-4.0-fast-generate-001": (+ "deprecated on 2026-06-15 and shuts down on 2026-08-17; "+ "use gemini-3.1-flash-image"+ ),+ "imagen-4.0-generate-001": (+ "deprecated on 2026-06-15 and shuts down on 2026-08-17; "+ "use gemini-3.1-flash-image"+ ),+ "imagen-4.0-ultra-generate-001": (+ "deprecated on 2026-06-15 and shuts down on 2026-08-17; "+ "use gemini-3.1-flash-image"+ ),+}def find_project_mcp_json() -> Path:@@ -56,6 +91,27 @@ def check(label: str, passed: bool, detail: str = "") -> bool:return passed+def _supported_model_list() -> str:+ return ", ".join(sorted(SUPPORTED_GA_MODELS))+++def validate_nanobanana_model(model: str) -> tuple:+ """Validate the configured image model against supported GA model IDs."""+ model = (model or "").strip()+ if not model:+ return True, f"(not set - package will use default {DEFAULT_NANOBANANA_MODEL})"+ if model in SUPPORTED_GA_MODELS:+ return True, f"{model} ({SUPPORTED_GA_MODELS[model]})"+ if model in DEPRECATED_MODEL_REPLACEMENTS:+ return False, f"{model} (WARNING: {DEPRECATED_MODEL_REPLACEMENTS[model]})"+ if "-preview" in model:+ return False, (+ f"{model} (WARNING: preview image models are deprecated or shut down; "+ f"use one of: {_supported_model_list()})"+ )+ return False, f"{model} (unsupported; use one of: {_supported_model_list()})"++def find_mcp_config() -> tuple:"""Find MCP config in project or global settings. Returns (config_dict, path_label)."""# Try project .mcp.json first@@ -156,12 +212,13 @@ def main() -> int:display,))- # 7. Model configured (optional - package has a default)+ # 7. Model configured (optional - package has a supported GA default)model = env.get("NANOBANANA_MODEL", "")+ model_ok, model_detail = validate_nanobanana_model(model)results.append(check(- "NANOBANANA_MODEL is set",- True, # Always pass - model is optional, package defaults to gemini-3.1-flash- model or "(not set - package will use default model)",+ "NANOBANANA_MODEL is supported",+ model_ok,+ model_detail,))# 8. Node.js/npx availablediff --git a/skills/blog-notebooklm/scripts/ask_question.py b/skills/blog-notebooklm/scripts/ask_question.pyindex 4991381..673d91c 100644--- a/skills/blog-notebooklm/scripts/ask_question.py+++ b/skills/blog-notebooklm/scripts/ask_question.py@@ -11,6 +11,7 @@ See: https://github.com/microsoft/playwright/issues/36139import argparseimport json+import osimport sysimport timeimport rediff --git a/skills/blog/SKILL.md b/skills/blog/SKILL.mdindex cc242c2..9323e43 100644--- a/skills/blog/SKILL.md+++ b/skills/blog/SKILL.md@@ -4,9 +4,9 @@ description: >Full-lifecycle blog engine with 32 sub-skills, 12 content templates, 5-category100-point scoring, and 5 specialized agents. Routes user requests to the rightsub-skill: writing, rewriting, analysis, outlines, audits, schema, charts,- images, repurposing, AI-citation optimization, FLOW framework prompts,+ images, repurposing, AI citation SEO, FLOW framework prompts,topic-cluster execution, and multilingual publishing. Optimized for Google- rankings (December 2025 Core Update, E-E-A-T) and AI citations (GEO/AEO).+ rankings around the May 2026 Core Update, E-E-A-T, and AI citations as one SEO discipline.Supports any platform (WordPress, Next.js MDX, Hugo, Ghost, Astro, Jekyll,11ty, Gatsby, HTML). Use when user says "blog", "write a blog", "blog post","blog strategy", "content brief", "editorial calendar", "blog audit",@@ -25,8 +25,10 @@ argument-hint: "[write|rewrite|analyze|brief|calendar|cannibalization|strategy|oFull-lifecycle blog management: strategy, briefs, outlines, writing, analysis,optimization, schema generation, repurposing, and editorial planning. Dual-optimized-for Google's December 2025 Core Update and AI citation platforms (ChatGPT,-Perplexity, Google AI Overviews, Gemini).+for Google's May 2026 Core Update, March 2026 core quality baseline, March and+June 2026 spam enforcement, and AI citation platforms (ChatGPT, Perplexity,+Google AI Overviews, Gemini). Google treats gen-AI optimization as SEO, not a+separate discipline.## Quick Reference@@ -125,11 +127,11 @@ Every blog post targets these 6 optimization pillars:| Pillar | Impact | Implementation ||--------|--------|---------------|-| Answer-First Formatting | Strong AI citation lift | Every H2 opens with 40-60 word stat-rich paragraph |+| Answer-First Formatting | Strong AI citation lift | Every H2 opens with an about 50-word direct-answer sentence followed by a self-contained 120-180 word citable passage || Real Sourced Data | E-E-A-T trust | Tier 1-3 sources only, inline attribution || Visual Media | Engagement + citations | Pixabay/Unsplash images + AI generation via Gemini + built-in SVG charts + YouTube video embeds |-| FAQ Schema | AI citation signal | Structured FAQ with 40-60 word answers |-| Content Structure | AI extractability | 50-150 word chunks, question headings, proper H hierarchy |+| FAQ Entity Signal | AI citation context only | Visible Q&A may use FAQPage, but never as a Google rich result; 2026 priority is Article + Person + Organization + BreadcrumbList |+| Content Structure | AI extractability | 120-180 word citable passages, question headings, proper H hierarchy || Freshness Signals | 76% of top citations | Updated within 30 days, dateModified schema |### How the 6 Pillars map to the FLOW framework (v1.7.0)@@ -138,11 +140,11 @@ claude-blog adopts the FLOW evidence-led model (`github.com/AgriciDaniel/flow`,| Pillar | FLOW concept it implements | claude-blog adds beyond FLOW ||--------|---------------------------|------------------------------|-| Answer-First Formatting | "Extraction-readable" passages for AI Overviews and assistant citations | Concrete 40-60 word format spec |+| Answer-First Formatting | "Extraction-readable" passages for AI Overviews and assistant citations | About 50-word direct-answer sentence plus 120-180 word citable passage || Real Sourced Data | The FLOW evidence triple: year anchor in prose + inline citation (publisher + title) + URL with retrieval date | Tier 1-3 source classification, `blog-factcheck` automation || Visual Media | (Outside FLOW scope; FLOW is asset-agnostic) | Full pipeline: Gemini image gen, SVG charts, stock libraries, YouTube embeds |-| FAQ Schema | Structured Q&A as an AI-citation surface signal | JSON-LD generation via `blog-schema` |-| Content Structure | "AI-readable document" with clear headings, direct answers, source labels | 50-150 word chunk rule, proper H hierarchy enforcement |+| FAQ Entity Signal | Structured Q&A as optional AI-citation entity support, never a Google rich result | FAQPage only when visible Q&A exists; Article + Person + Organization + BreadcrumbList remain the schema baseline |+| Content Structure | "AI-readable document" with clear headings, direct answers, source labels | 120-180 word citable passage rule, proper H hierarchy enforcement || Freshness Signals | Year anchor in prose; source retrieval dates | dateModified schema, 30-day freshness threshold, `blog-audit` decay detection |The FLOW evidence triple is enforced AT DRAFTING time inside `blog-write` (not just at audit). For the full alignment doc (5-surface model, FLOW stages mapped to skills, what claude-blog adds), load `references/flow-alignment.md`. For the upstream FLOW framework itself, load `skills/blog-flow/references/flow-framework.md` or run `/blog flow` for prompt-driven workflows.@@ -230,8 +232,8 @@ Blog quality is scored across 5 categories (100 points total):Load on-demand as needed (21 references; 13 original + 5 v1.8.0 methodology + 2 supplemental + 1 v1.9.0 delivery contract):-- `references/google-landscape-2026.md`: December 2025 Core Update, E-E-A-T, algorithm changes-- `references/geo-optimization.md`: GEO/AEO techniques, AI citation factors+- `references/google-landscape-2026.md`: May 2026 Core Update, March 2026 Core Update, E-E-A-T, spam updates, algorithm changes+- `references/geo-optimization.md`: AI search SEO techniques, AI citation factors, legacy GEO and AEO terminology- `references/content-rules.md`: Structure, readability, answer-first formatting- `references/visual-media.md`: Image sourcing (Pixabay, Unsplash, Pexels), AI image generation, SVG chart integration- `references/quality-scoring.md`: Full 5-category scoring checklist (100 points)@@ -285,9 +287,9 @@ Templates are in `templates/` and contain section structure, markers, and checkl| `blog-strategy` | Positioning, topic clusters, AI citation surface strategy || `blog-outline` | SERP-informed outlines with competitive gap analysis || `blog-seo-check` | Post-writing SEO validation (title, meta, headings, links, OG) |-| `blog-schema` | JSON-LD schema generation (BlogPosting, Person, FAQ, Breadcrumb) |+| `blog-schema` | JSON-LD schema generation (Article/BlogPosting, Person, Organization, BreadcrumbList; FAQPage only for visible Q&A entity support) || `blog-repurpose` | Cross-platform repurposing (social, email, YouTube, Reddit) |-| `blog-geo` | AI citation readiness audit with 0-100 GEO score |+| `blog-geo` | AI citation readiness audit with 0-100 AI search SEO score || `blog-audit` | Full-site blog health assessment with parallel subagents || `blog-cannibalization` | Keyword overlap detection with severity scoring || `blog-chart` | Generate inline SVG data visualization charts with dark-mode styling (internal-only) |@@ -464,7 +466,7 @@ DISCOURSE.md adds a recency-and-engagement lens to research (what real practitio| Anti-Pattern | Why ||-------------|-----|-| Fabricate statistics | December 2025 Core Update penalizes unsourced claims |+| Fabricate statistics | May 2026 Core Update and 2026 spam systems reward verifiable trust, not invented claims || Use the same chart type twice | Visual monotony, reduces engagement || Keyword-stuff headings or meta | Google ignores/penalizes this || Bury answers in paragraphs | AI systems extract from section openers |diff --git a/skills/blog/references/ai-crawler-guide.md b/skills/blog/references/ai-crawler-guide.mdindex bcde1f0..89eedb7 100644--- a/skills/blog/references/ai-crawler-guide.md+++ b/skills/blog/references/ai-crawler-guide.md@@ -327,13 +327,14 @@ but they do not replace the need for SSR - standard crawlers still dominate citaCrawler access gets a page into the candidate set. Citation selection depends onwhether the page contains self-contained answer passages AI systems can extract.-Target 130-170 word passages that answer one question without relying on the+Target 120-180 word passages that answer one question without relying on thesurrounding article.-Under each H2, start with an approximately 50-word TL;DR that gives the answer,-the year, the named entity, and the source attribution. Follow with specific-entities, dates, original examples, and first-hand Experience markers. A clean-passage can earn an AI Overview citation even when the full page is not cited.+Under each H2, start with an approximately 50-word direct-answer sentence that+gives the answer, the year, the named entity, and the source attribution. Follow+with specific entities, dates, original examples, and first-hand Experience+markers. A clean passage can earn an AI Overview citation even when the full+page is not cited.AI Overviews also began highlighting links from a user's subscribedpublications in 2026, so publisher trust and subscriptions can affect whichdiff --git a/skills/blog/references/ai-slop-detection.md b/skills/blog/references/ai-slop-detection.mdindex 36c45da..acc7b5b 100644--- a/skills/blog/references/ai-slop-detection.md+++ b/skills/blog/references/ai-slop-detection.md@@ -144,7 +144,7 @@ Overall: [PASS only if both passes clean]## Why this matters for ranking + AI citations-- **Google December 2025 Core Update**: rewards content that demonstrates "experience" and original perspective. Second-order patterns are exactly what makes "AI consensus content," the kind being demoted.+- **Google core updates through May 2026**: reward content that demonstrates "experience" and original perspective. Second-order patterns are exactly what makes "AI consensus content," the kind being demoted.- **AI citations**: ChatGPT and Perplexity reward citable, distinctive passages. Second-order tics produce interchangeable prose that no AI surface has reason to prefer over the source it was trained on.The two-tier check is the editorial parallel to impeccable's "design slop" methodology: vocabulary-clean is necessary but not sufficient; structural distinctiveness is what separates citeable content from indexable filler.diff --git a/skills/blog/references/content-rules.md b/skills/blog/references/content-rules.mdindex 619a024..6cf788c 100644--- a/skills/blog/references/content-rules.md+++ b/skills/blog/references/content-rules.md@@ -12,7 +12,7 @@- [Visual Content Rules](#visual-content-rules)- [Anti-Pattern Detection](#anti-pattern-detection)- [Content Length Guidelines](#content-length-guidelines)-- [Citation & Statistics Rules (GEO)](#citation--statistics-rules-geo)+- [Citation Statistics Rules (AI Search SEO)](#citation-statistics-rules-ai-search-seo)- [Information Gain: The Key Differentiator](#information-gain----the-key-differentiator)- [Meta Description Formula](#meta-description-formula)- [Citation Format](#citation-format)@@ -22,19 +22,20 @@## Answer-First Formatting (Strong AI Citation Improvement)-The most impactful single optimization. Every H2 section must open with a-approximately 50-word TL;DR paragraph that:+The most impactful single optimization. Every H2 section must open with an+approximately 50-word direct-answer sentence that:-1. Contains at least one specific statistic with source attribution-2. Directly answers the heading's implicit question-3. Uses natural, conversational language+1. Directly answers the heading's implicit question+2. Names the core entity, year, and practical implication+3. Leads into a 120-180 word citable passage with a specific statistic and source attribution### Pattern```markdown## How Does X Impact Y in 2026?-[Stat] ([Source](url), year). [Direct answer in 1-2 more sentences, explaining-the implication for the reader. Keep this opening paragraph about 50 words total.]+[About 50-word direct answer sentence naming the year, entity, and answer.]+[Continue with a self-contained 120-180 word passage that adds the+source-backed statistic, dates, implications, and an example.]```### Why It Works@@ -42,11 +43,11 @@ AI systems extract answers from section openers. If your answer is buried inparagraph 3 of a section, it will not be cited. Lead with the answer, thenexplain.-44.2% of all LLM citations come from the first 30% of text (Growth Memo,-Feb 2026). Use declarative "X is Y because Z" sentence structures for maximum-AI extractability. In 2026, target a roughly 50-word TL;DR under each H2, then-build a self-contained 130-170 word answer passage with named entities, dates,-and source attribution.+A single-source Growth Memo finding reports that 44.2% of all LLM citations+come from the first 30% of text (Feb 2026). Treat this as directional, not as+a hard law. Use declarative "X is Y because Z" sentence structures, then build+a self-contained 120-180 word answer passage with named entities, dates, and+source attribution.## Title Optimization@@ -60,7 +61,7 @@ and source attribution.### Title FormulaPattern: `[Power Word] [Topic]: [Specific Outcome/Number] [Year]`-Example: "Definitive Guide to GEO: 7 Strategies That Drive AI Citations in 2026"+Example: "Definitive Guide to AI Search SEO: 7 Strategies That Drive AI Citations in 2026"Avoid: clickbait, ALL CAPS words, excessive punctuation, vague promises.@@ -101,7 +102,7 @@ For backward compatibility, blog-analyze accepts both "TL;DR" and "Key Takeaways- Include primary keyword naturally in 2-3 headings### Question-Format Headings-Convert 60-70% of H2s to questions:+Convert 40-60% of H2s to questions:- "The Future of X" → "What Does X Look Like in 2026?"- "Strategies for Y" → "How Do You Achieve Y in 2026?"- Keep 2-3 statement headings for variety@@ -118,7 +119,7 @@ show these in People Also Ask. Users scan headings as questions they want answer| Max sentence length | 25 words | >20 words | Yoast flags >20 || Sentences over 20 words | ≤25% | >25% | Yoast threshold || Sentence length variance | StdDev ≥5 words | <5 StdDev | Wikipedia AI guidelines |-| AEO-optimal average | 15-18 words | - | GEO research synthesis |+| AI search average | 15-18 words | - | AI search SEO research synthesis |### Sentence RhythmMix short (5-10 words), medium (15-20 words), and occasional long (20-25 words)@@ -134,7 +135,7 @@ No more than 3 consecutive sentences within 5 words of each other's length.| Paragraph length | 40-80 words | >100 words | 150 words (200 = Yoast red) | Yoast, NNGroup || Sentences per paragraph | 2-3 | >3 | 4 max | NNGroup scanning research || Mobile paragraph max | 60 words / 2-3 visual lines | - | - | WCAG, Baymard |-| Extractable chunks | 130-170 words | - | - | GEO citation research |+| Extractable chunks | 120-180 words | - | - | AI search citation research |### Key PrincipleStart each paragraph with the most important sentence. This enables both@@ -153,14 +154,15 @@ One topic per paragraph - no topic drift within a paragraph.| Metric | Target | Acceptable | Source ||--------|--------|-----------|--------|-| Flesch Reading Ease | 60-70 | 55-75 | Yoast ≥60; Spotlight 18K prompts: 60-75 = 31% more AI citations |+| Flesch Reading Ease | 60-70 | 55-75 | Yoast >=60; AI citation lift claims are vendor-reported and unverified || Flesch-Kincaid Grade | 7-8 | 6-9 (B2B/technical: 8-10) | Siteimprove, First Page Sage || Gunning Fog | 7-8 | Max 12 | Springer 2023: highest correlation with engagement || SMOG | ≤8 | - | Healthcare gold standard |-Flesch 60-70 is the optimal band for both engagement and AI citation.-Content in this range demonstrates expertise through clear expression of-complex ideas - not oversimplification. The key is conversational authority:+Flesch 60-70 is the default clarity band for engagement. AI citation impact is+directional and still depends on original evidence, entity clarity, and source+quality. Content in this range demonstrates expertise through clear expression+of complex ideas - not oversimplification. The key is conversational authority:natural language that mirrors how experts actually explain things.AI systems prefer content that is fluent, specific, and well-structured.@@ -246,22 +248,24 @@ topical dilution, needless repetition, intent mismatch.| Standard blog post | 2,000-2,500 words | 1,500 || Comparison post | 1,500-2,000 words | 1,200 || FAQ/listicle | 1,500-2,000 words | 1,000 |-| News/update | 800-1,200 words | 600 |+| News/update | 800-1,200 words | 800 |-Sweet spot: 1,500-2,500 words for most content. Minimum 700 words-(absolute floor: 300 words for news updates). Long-form (2,000+ words)-gets 3x more AI citations than short posts.+Sweet spot: 1,500-2,500 words for most content. Most non-news posts should+clear 1,000 words. News/update content should stay in the 800-1,200 word+benchmark; do not publish ultra-short news briefs through this skill. Long-form+content often earns more citations in vendor studies, but exact multipliers are+directional.Reading time: word count ÷ 225, rounded up. Optimal reading time is5-7 minutes (~1,100-1,575 words). Engagement falls off sharply after7 minutes; approaches zero at 14+ minutes (Medium, Smartocto 2025).-## Citation & Statistics Rules (GEO)+## Citation Statistics Rules (AI Search SEO)-| Parameter | Target | GEO-Optimized | Source |+| Parameter | Target | AI Search SEO Optimized | Source ||-----------|--------|--------------|--------|| Statistic density | 1 per 200 words | 1 per 150 words | Princeton GEO paper |-| External citations | 1-3 per 1,000 words | - | GEO best practices |+| External citations | 1-3 per 1,000 words | - | AI search SEO best practices || Internal links | 2-5 per 1,000 words | - | SEO + engagement |Statistics addition boosts AI visibility up to 41% (Princeton GEO paper,diff --git a/skills/blog/references/content-templates.md b/skills/blog/references/content-templates.mdindex d1788f0..e569f07 100644--- a/skills/blog/references/content-templates.md+++ b/skills/blog/references/content-templates.md@@ -28,7 +28,7 @@ optimization elements get forgotten, and writing takes longer.|---------|--------|-----|| Consistent structure | 15-20% higher quality scores | Every post follows a proven section pattern || Faster writing | 40% reduction in drafting time | Writer focuses on content, not structure |-| Complete optimization | All scoring elements included | Answer-first, FAQ, visuals, citations built into skeleton |+| Complete optimization | All scoring elements included | Answer-first, visible Q&A, visuals, citations built into skeleton || Predictable output | Scoring 75+ without additional passes | Template alignment maps directly to scoring categories || Reduced revision cycles | Fewer review rounds needed | Structure issues caught at outline stage, not in review |@@ -54,7 +54,7 @@ Use this table to select the right template based on content goals.| Thought leadership | `thought-leadership` | Industry opinion, predictions, analysis | 2,000-3,000 || Curate expertise | `roundup` | Expert quotes, multi-source collections | 2,000-2,500 || Technical audience | `tutorial` | Code walkthroughs, tool demos | 2,500-3,500 |-| Timely content | `news-analysis` | Event reactions, algorithm update coverage | 800-1,500 |+| Timely content | `news-analysis` | Event reactions, algorithm update coverage | 800-1,200 || Original research | `data-research` | Proprietary data, survey results, experiments | 2,500-3,500 || Answer questions | `faq-knowledge` | Knowledge base pages, Q&A reference content | 1,500-2,000 |@@ -78,7 +78,7 @@ guide the writer (and `/blog write`) on what content each section needs.| Marker | Purpose | Example ||--------|---------|---------|-| `[ANSWER-FIRST]` | Opening paragraph must be 40-60 words with a stat + source | "According to [Source], [stat]. This means [direct answer to heading question]." |+| `[ANSWER-FIRST]` | Start with an about 50-word direct-answer sentence, then a 120-180 word citable passage with stat + source | "In 2026, [direct answer]. [Source-backed context follows]." || `[VISUAL: chart-type]` | Place a chart of the specified type here | `[VISUAL: grouped-bar]` for before/after data || `[IMAGE]` | Place a relevant image with descriptive alt text here | After H2 heading, before body text || `[INFO-GAIN: type]` | Section requires original data or unique perspective | `[INFO-GAIN: case-study]`, `[INFO-GAIN: personal-experience]` |@@ -99,7 +99,7 @@ Every template, regardless of content type, follows this outer structure:- Promise: [What they'll learn by reading]## H2: [Section: usually Question Format] (word count)-[ANSWER-FIRST]: 40-60 words, stat + source, direct answer+[ANSWER-FIRST]: about 50-word direct-answer sentence, then 120-180 word citable passage with stat + source[CONTENT]: Topic coverage guidance[INFO-GAIN]: Where unique perspective is needed[VISUAL]: Chart type or [IMAGE] placement@@ -178,8 +178,8 @@ Conclusion (top pick + comparison table)**Visual plan**: Comparison bar chart + market share donut chart.Logo/screenshot per item, or grouped comparison image.-**AI citation strength**: Very high. 50% of top AI citations are listicles-(Onely). AI systems extract individual list items and recommendations.+**AI citation strength**: High, but vendor-reported listicle shares vary.+AI systems often extract individual list items and recommendations.---@@ -293,8 +293,9 @@ Conclusion (final rating + recommendation)Screenshots from actual testing (critical for E-E-A-T).**Critical requirement**: First-hand testing data. Product reviews without-genuine hands-on experience are penalized by the December 2025 Core Update.-71% of affiliate sites without original testing were negatively impacted.+genuine hands-on experience remain exposed to May 2026 core quality reassessment+and 2026 spam enforcement. Treat the reported 71% affiliate-site loss figure as+third-party, methodology-limited context.---@@ -390,7 +391,7 @@ Conclusion (outlook)**Visual plan**: 1-2 charts (impact visualization). Lighter on visualsbecause speed of publication is the priority.-**Word count**: 800-1,500 words. Shorter format because timeliness is the+**Word count**: 800-1,200 words. Shorter format because timeliness is theprimary value. Update with additional data as it becomes available.---@@ -446,8 +447,9 @@ Conclusion (additional resources + [INTERNAL-LINK])structure itself provides the value.**Special requirements**: Every answer must contain a specific statistic.-FAQPage schema is critical for this type: it directly impacts SERP features-and AI citation rates (+28%, per sponsored SEL article).+FAQPage schema is optional entity markup for visible Q&A. It does not generate+Google rich results or known SERP features; use it only to clarify question and+answer entities for AI citation support.---@@ -563,7 +565,7 @@ Changes take effect immediately: no restart needed.## FAQ Section Guidelines (All Templates)Every template includes an FAQ section. The FAQ is a scoring element (4 points)-and directly impacts AI citation rates (+28%, per sponsored SEL article).+and may aid AI citation as an entity signal. It is not a Google rich result.### FAQ Requirements@@ -574,7 +576,7 @@ and directly impacts AI citation rates (+28%, per sponsored SEL article).| Answer length | 40-60 words each || Statistics | Every answer must contain at least one specific statistic || Source attribution | Every statistic must cite a named source |-| Schema | FAQPage schema must be generated (see `references/content-rules.md`) |+| Schema | Generate FAQPage only when FAQ content is visible; never present it as a Google rich result; keep Article + Person + Organization + BreadcrumbList as the 2026 priority |### FAQ Question Sources- People Also Ask results for the target keyworddiff --git a/skills/blog/references/distribution-playbook.md b/skills/blog/references/distribution-playbook.mdindex 6c17861..cb4b9a8 100644--- a/skills/blog/references/distribution-playbook.md+++ b/skills/blog/references/distribution-playbook.md@@ -6,8 +6,9 @@ distribution tactics to maximize both traditional search rankings and AIcitation rates.**Budget allocation**: 40% owned content / 60% earned media and distribution.-Most companies allocate 90/10: this is wrong for GEO. Off-site presence-is the dominant factor in whether AI systems cite your content.+Most companies allocate 90/10: this is wrong for AI search SEO. Treat the+split as directional, vendor-reported guidance. Off-site presence is a major+factor in whether AI systems cite your content.## Contentsdiff --git a/skills/blog/references/editorial-heuristics.md b/skills/blog/references/editorial-heuristics.mdindex 58e7109..c23aec3 100644--- a/skills/blog/references/editorial-heuristics.md+++ b/skills/blog/references/editorial-heuristics.md@@ -123,7 +123,7 @@ Reader should not have to remember what was said three sections ago to follow thThe post should reward both modes: executive who scans, practitioner who reads end to end.-**Check for**: bold lead-ins on key points; pull quotes for high-leverage claims; each H2 opener is a 40 to 60 word answer-first paragraph; lists where lists are right, prose where prose is right; FAQ section.+**Check for**: bold lead-ins on key points; pull quotes for high-leverage claims; each H2 opener starts with an about 50-word direct-answer sentence followed by a 120 to 180 word citable passage; lists where lists are right, prose where prose is right; FAQ section.| Score | Criteria ||---|---|diff --git a/skills/blog/references/eeat-signals.md b/skills/blog/references/eeat-signals.mdindex 3c9e958..73ef0ba 100644--- a/skills/blog/references/eeat-signals.md+++ b/skills/blog/references/eeat-signals.md@@ -10,7 +10,7 @@- [Trust Indicators](#trust-indicators)- [September 2025 QRG Key Principle](#september-2025-qrg-key-principle)- [E-E-A-T Scoring Rubric](#e-e-a-t-scoring-rubric)-- [E-E-A-T Applies to ALL Queries (December 2025)](#e-e-a-t-applies-to-all-queries-december-2025)+- [E-E-A-T Applies to ALL Competitive Queries Since December 2025](#e-e-a-t-applies-to-all-competitive-queries-since-december-2025)- [E-E-A-T Signals by Content Type](#e-e-a-t-signals-by-content-type)## Named Author Attribution@@ -247,7 +247,7 @@ Trust encompasses and validates all other signals.## September 2025 QRG Key PrincipleGoogle's Quality Rater Guidelines (September 11, 2025 revision) remain the-current QRG in mid-2026 as of 2026-07-06. That 182-page version renamed "YMYL+current QRG in mid-2026 as of 2026-07-07. That 182-page version renamed "YMYLSociety" to "YMYL Government, Civics & Society," added AI Overview evaluationexamples, and assigned lowest ratings to value-less auto or AI content.@@ -284,7 +284,7 @@ Trust Assessment → If Low → Cap at "Low E-E-A-T"----## E-E-A-T Applies to ALL Queries (December 2025)+## E-E-A-T Applies to ALL Competitive Queries Since December 2025The December 2025 core update expanded E-E-A-T evaluation beyond YMYL topicsto all competitive queries. This means:diff --git a/skills/blog/references/geo-optimization.md b/skills/blog/references/geo-optimization.mdindex 3f5cffe..f4f67b6 100644--- a/skills/blog/references/geo-optimization.md+++ b/skills/blog/references/geo-optimization.md@@ -1,16 +1,22 @@-# GEO/AEO Optimization: AI Citation Strategies+# AI Search SEO: Citation Strategies-## Core GEO Research+Use GEO and AEO as legacy labels for AI citation readiness. For Google, the+2026-05-15 gen-AI optimization guidance is explicit: optimization for AI+Overviews and AI Mode is SEO, not a separate discipline.++## Core AI Search SEO Research### Princeton GEO Paper (KDD 2024)-GEO methods boost AI visibility by up to 40%.+The Princeton GEO paper reports that content changes can boost AI visibility+by up to 40% in test conditions. Treat the result as research on AI search+surfaces, not as a separate Google ranking discipline.| Technique | Improvement ||-----------|-------------|| Citing authoritative sources | +115.1% visibility (5th-ranked sites, main experiment) || Quotation addition | +28% (main experiment); +37% (Perplexity.ai validation, Table 7) || Statistics addition | +41% (main experiment); +22% (Perplexity.ai validation, Table 7) |-| FAQ schema | +28% (sponsored article on SEL; not editorial research) |+| FAQPage entity markup | May aid AI citation as an entity signal for visible Q&A; no Google rich result; impact unverified |Traditional keyword stuffing performs **worse than baseline** in generative engines.@@ -18,8 +24,8 @@ Traditional keyword stuffing performs **worse than baseline** in generative engi- Only 11% of domains are cited by both ChatGPT and Perplexity (Digital Bloom, 2025;domain-level, not URL-level; AI Overviews not included in that study)-- 80% of LLM citations don't rank in Google's top 100 (Ahrefs, Aug 2025) - traditional- SEO rankings are a poor predictor of AI citation+- 80% of LLM citations don't rank in Google's top 100 (Ahrefs, Aug 2025) - classic+ organic rankings alone are a poor predictor of AI citation- Brands are 6.5x more likely to be cited through third-party sources than their owndomains (AirOps, Oct 2025) - earned media dominates AI visibility@@ -41,21 +47,21 @@ Three critical stages:| Format | Impact | Source ||--------|--------|--------|-| Listicles | 50% of top AI citations (Onely/nobori.ai; Wix/Peec 75K-answer study found 21.9%) |-| Tables/structured data | 2.5x more citations (Onely citing Averi AI) |-| Long-form (2,000+ words) | ~3x more citations (Moz 2025 found 3.2x; SE Ranking found 1.6x) |-| FAQ schema | +28% (sponsored SEL article, not editorial research) |-| Content with statistics | +40% higher citation rates | Onely |-| Sections of 120-180 words between headings | 70% more ChatGPT citations | SE Ranking, Nov 2025 |-| Comparison tables with `<thead>` | 47% higher AI citation rates (SEL; primary source unlocatable) |+| Listicles | Often over-index in vendor datasets; exact shares vary and are directional |+| Tables/structured data | May improve extractability; specific 2.5x vendor claim is unverified |+| Long-form (2,000+ words) | Often over-indexes in vendor studies; treat multipliers as directional |+| FAQPage entity markup | May aid AI citation as an entity signal for visible Q&A; no Google rich result; impact unverified |+| Content with statistics | Original, sourced statistics improve citeability; exact lifts vary by study |+| Sections of 120-180 words between headings | Self-contained passages likely help extraction; exact lift is unverified |+| Comparison tables with `<thead>` | May improve extraction; attributed SEL figure is unverified |### Passage-Level Extractability (2026)Google's AI systems fragment pages and evaluate self-contained answer passages,-not just whole documents. Target 130-170 word passages that can stand alone if-quoted or summarized. Put an approximately 50-word TL;DR directly under each H2,-then support it with named entities, dates, source attribution, and a specific-example.+not just whole documents. Start each H2 with an approximately 50-word+direct-answer sentence, then build a 120-180 word passage that can stand alone+if quoted or summarized. Support it with named entities, dates, source+attribution, and a specific example.Entity density and demonstrated first-hand Experience break ties. A singleclean passage with original testing, named tools, and verifiable evidence can@@ -126,9 +132,10 @@ freshness-dependent platform. Content older than 1 week sees sharp citation drop### Budget AllocationRecommended: **40% owned content / 60% earned media**-(Most companies allocate 90/10 - this is wrong for GEO)+(Most companies allocate 90/10 - this is wrong for AI search SEO)-88-92% of AI citations come from off-site signals, not on-page optimization alone.+88-92% of AI citations come from off-site signals in vendor-reported datasets.+Treat this as directional, not a universal law.## AI Crawler Technical Requirements@@ -184,7 +191,7 @@ Allow: /### llms.txt StandardGoogle does not need llms.txt for AI Overviews or AI Mode. Treat the file as anoptional site inventory for non-Google tools, not a ranking or citation lever.-Do not spend GEO budget on llms.txt before crawlability, passage extraction,+Do not spend AI search SEO budget on llms.txt before crawlability, passage extraction,Article schema, source quality, and entity consistency.## Attribution Gaps@@ -193,7 +200,11 @@ Perplexity visits ~10 pages per query but cites only 3-4. Not all AI responsesinclude citations - optimizing for retrieval is critical. Content must enter thecandidate set before citation is possible.-## GEO Case Study Results+## AI Search Case Study Results++These examples are illustrative, vendor-reported, and not independently+verified. Do not reuse the numbers as factual benchmarks without primary+confirmation.| Company | Results | Timeframe ||---------|---------|-----------|@@ -215,26 +226,27 @@ Entity building timeline (3-6 months):4. Practice "controlled co-occurrence" via third-party mentions5. Earn external citations from recognized publications-## Readability-GEO Connection+## Readability and AI Search Connection-Readability directly impacts AI citation rates. Content in the Flesch 60-75-band receives significantly more AI citations across all major platforms.+Readability can support AI citation rates, but the lift is not independently+verified. Use Flesch 60-75 as a clarity heuristic, not as a citation guarantee.### Flesch Score & AI Citation Rates-- **Flesch 60-75 = 31% more AI citations** (Spotlight, 18,000 monitored prompts;- self-reported internal data from a commercial platform, no independent verification)+- Commercial platform reports associate Flesch 60-75 with more AI citations;+ this is vendor-reported internal data with no independent verification.- Teams improving Flesch from 52→68 saw parallel citation lifts within twocrawl windows- Content that is too complex (Flesch <50) or too simple (Flesch >80) getsfewer citations - AI systems prefer fluent, authoritative writing### Citation Position Bias-- **44.2% of all LLM citations come from the first 30% of text** (Growth Memo,- Feb 2026, Kevin Indig). Answer-first formatting is critical for citation capture.+- **44.2% of all LLM citations come from the first 30% of text** is a+ single-source Growth Memo finding (Feb 2026, Kevin Indig). Treat it as+ directional support for answer-first formatting, not a settled benchmark.- Direct answers in the first 1-2 sentences of each section maximizeextractability for AI systems-### GEO Tactic Combinations+### AI Search Tactic CombinationsPrinceton GEO paper (KDD 2024) findings on readability-related tactics:- **Fluency optimization** = 15-30% visibility boost- **Statistics addition** = up to 41% visibility boostdiff --git a/skills/blog/references/google-landscape-2026.md b/skills/blog/references/google-landscape-2026.mdindex bb3407e..02f5deb 100644--- a/skills/blog/references/google-landscape-2026.md+++ b/skills/blog/references/google-landscape-2026.md@@ -1,11 +1,12 @@# SEO Landscape 2026: Google Updates & E-E-A-T-## December 2025 Core Update+## Mid 2026 Core Update Baseline-Ran December 11-29, 2025 (18 days). Google's official statement: "designed to better-surface relevant, satisfying content." Rewarded authentic first-hand experience and-penalized "fake freshness." 71% of affiliate sites without original testing were-negatively impacted (ALM Corp). E-E-A-T requirements expanded beyond YMYL to ALL competitive queries.+Latest confirmed core update: May 2026 Core Update, 2026-05-21 to+2026-06-02. March 2026 Core ran 2026-03-27 to 2026-04-08. The+December 2025 Core Update ran 2025-12-11 to 2025-12-29 and remains+important because since then E-E-A-T applies to all competitive queries,+not just YMYL.### Authenticity Signals Google Evaluates@@ -29,11 +30,11 @@ content creator without human expertise and oversight is not.### Post-Update Analysis: Winners & Losers-Post-December 2025 core update visibility shifts:+Core update visibility patterns to preserve in 2026:- Sites with original testing, case studies, and first-hand experience gained visibility- 71% of affiliate sites without original testing lost rankings (ALM Corp analysis of 847sites across 23 industries; methodology not independently verified)-- E-E-A-T expanded beyond YMYL to ALL competitive queries - this is the biggest shift+- Since December 2025, E-E-A-T applies to ALL competitive queries: this is the biggest shiftsince E-A-T was introduced- Winners share a common trait: unique data or perspectives AI cannot replicate- Losers overwhelmingly produced "consensus content" - rewritten summaries of existing@@ -45,7 +46,7 @@ Post-December 2025 core update visibility shifts:- Added AI Overview evaluation criteria - raters now assess AI-generated summary accuracy- Expanded YMYL definitions to cover broader range of topics affecting wellbeing- Key principle codified: "Trust is the most important member of the E-E-A-T family"-- This 182-page September 11, 2025 version remains current as of 2026-07-06+- This 182-page September 11, 2025 version remains current as of 2026-07-07**January 2025 QRG Update:**- First formal "generative AI" definition added to the guidelines@@ -56,23 +57,26 @@ Post-December 2025 core update visibility shifts:## 2026 Algorithm Timeline-Google-owned status sources are current through 2026-06-30. No Google-owned-ranking, spam, core, schema, policy, QRG, or AI-search change was announced-from 2026-07-01 through 2026-07-06.+Google-owned status sources are current through 2026-07-07. From+2026-07-01 through 2026-07-07, Google announced only AMP documentation+simplification and a Barcelona event post. No ranking, spam, core, schema,+policy, QRG, or AI search change was announced in that window.| Update | Dates | Blog Impact ||--------|-------|-------------|+| December 2025 Core Update | 2025-12-11 to 2025-12-29 | Established the all competitive query E-E-A-T framing |+| Discover Update | 2026-02-05 | Monitor Discover traffic separately from core ranking volatility || March 2026 Spam Update | 2026-03-24 | Spam enforcement; keep scaled and low-value AI pages out of the index || March 2026 Core Update | 2026-03-27 to 2026-04-08 | Core quality reassessment; original experience and trust signals mattered most |-| May 2026 Core Update | 2026-05-21 to 2026-06-02 | Core quality reassessment; reinforced differentiated, satisfying content |+| May 2026 Core Update | 2026-05-21 to 2026-06-02 | Latest core update as of 2026-07-07; reinforced differentiated, satisfying content || June 2026 Spam Update | 2026-06-24 to 2026-06-26 | Spam enforcement; thin aggregation and abusive automation remain high risk |Treat third-party reports of an unconfirmed July 2026 update as volatility only,not as a Google-confirmed event.-## E-E-A-T Framework (Extended December 2025)+## E-E-A-T Framework Since December 2025-**Critical**: December 2025 core update extended E-E-A-T to ALL competitive queries,+**Critical**: Since the December 2025 core update, E-E-A-T applies to ALL competitive queries,not just YMYL.| Factor | Weight | Key Signals |@@ -221,7 +225,7 @@ stated this explicitly. However, readability drives the engagement signalsGoogle DOES measure - bounce rate, time on page, scroll depth, and returnvisits.-### December 2025 Core Update: Readability Correlation+### Core Update Quality Patterns in 2026Raptive analysis (published Feb 2026, high reliability) found:- Sites with <7% of pages ≤500 words had more stable rankings- Winning pages averaged 393 days freshness vs 500 for losers@@ -232,9 +236,9 @@ Raptive analysis (published Feb 2026, high reliability) found:- Thin content, template-based pages, and generic AI aggregation were penalized### E-E-A-T Expansion-E-E-A-T now applies to virtually ALL content categories, not just YMYL. The-December 2025 Core Update extended E-E-A-T evaluation to ALL competitive-queries - the biggest scope expansion since E-A-T was introduced.+E-E-A-T now applies to virtually ALL content categories, not just YMYL. Since+the December 2025 Core Update, E-E-A-T evaluation applies to ALL competitive+queries: the biggest scope expansion since E-A-T was introduced.### Quality Rater Guidelines Updates- **January 2025 QRG**: Added "Filler" section penalizing pages that bury usefuldiff --git a/skills/blog/references/platform-guides.md b/skills/blog/references/platform-guides.mdindex 3a3823f..bf85af1 100644--- a/skills/blog/references/platform-guides.md+++ b/skills/blog/references/platform-guides.md@@ -575,7 +575,7 @@ Use the Custom HTML block:Use ACF (Advanced Custom Fields) or native custom fields:- `last_updated`: for dateModified in schema- `author_bio`: for E-E-A-T author section-- `faq_items`: for FAQ schema generation+- `faq_items`: for FAQPage entity markup when visible Q&A exists### Featured ImageSet via the "Featured Image" panel in the post editor sidebar. This image@@ -1071,7 +1071,8 @@ Place in `<head>` for BlogPosting:</script>```-Place in `<head>` for FAQPage:+Place in `<head>` for FAQPage only when visible Q&A exists. It is entity+support for AI citation, not a Google rich result:```html<script type="application/ld+json">{@@ -1083,7 +1084,7 @@ Place in `<head>` for FAQPage:"name": "What is the question?","acceptedAnswer": {"@type": "Answer",- "text": "The 40-60 word answer with a specific statistic and source."+ "text": "The visible answer text with a specific statistic and source."}}]diff --git a/skills/blog/references/quality-scoring.md b/skills/blog/references/quality-scoring.mdindex 0ab6756..580a4cd 100644--- a/skills/blog/references/quality-scoring.md+++ b/skills/blog/references/quality-scoring.md@@ -40,7 +40,7 @@ Score each blog post against this checklist. Used by `/blog analyze`.| Check | Points | Pass Criteria ||-------|--------|---------------|-| Schema markup (3+ types = bonus) | 4 | BlogPosting + FAQ + Person minimum; dateModified current |+| Schema markup priority baseline | 4 | Article/BlogPosting + Person + Organization + BreadcrumbList; FAQPage optional only for visible Q&A entity support; dateModified current || Image optimization (alt text, format, lazy load) | 3 | AVIF/WebP, descriptive alt text, lazy except LCP || Structured data elements | 2 | Tables, lists, comparison blocks for AI extraction || Page speed signals (no render-blocking) | 2 | LCP < 2.5s, no render-blocking JS, fetchpriority on hero |@@ -51,8 +51,8 @@ Score each blog post against this checklist. Used by `/blog analyze`.| Check | Points | Pass Criteria ||-------|--------|---------------|-| Passage-level citability (120-180 word blocks) | 4 | Self-contained sections between headings with stat + source |-| Q&A formatted sections | 3 | 60-70% of H2s as questions, FAQ section present |+| Passage-level citability (120-180 word passages) | 4 | About 50-word direct-answer sentence followed by self-contained passage with stat + source |+| Q&A formatted sections | 3 | 40-60% of H2s as questions, visible FAQ section when template calls for it || Entity clarity | 3 | Unambiguous topic entity, consistent terminology || Content structure for extraction | 3 | Answer-first, tables with `<thead>`, comparison formats || AI crawler accessibility | 2 | SSR/SSG, no JS-gated content, robots.txt allows AI bots |@@ -84,7 +84,8 @@ When reporting issues, classify by priority:### High Priority- Missing answer-first formatting on H2 sections-- No FAQ section/schema+- Missing Article/Person/Organization/BreadcrumbList schema baseline+- Missing visible Q&A section when the selected template calls for FAQ- Fewer than 8 sourced statistics- Missing meta description or lastUpdated- Title tag outside 40-60 character range@@ -109,7 +110,7 @@ When reporting issues, classify by priority:### Low Priority- Paragraph length slightly above 80 words (but under 150)-- Non-question H2 headings above 40%+- Question-format H2 ratio outside 40-60%- Missing chart type diversity- Images without alt text- Missing external links to tier 1-3 sources@@ -156,8 +157,8 @@ These can be detected programmatically:28. lastUpdated presence (frontmatter check)### AI Citation Readiness-29. Section word count between headings (target 120-180)-30. Question-format heading ratio (target 60-70% of H2s)-31. FAQ presence (search for "FAQ" or "Frequently Asked")+29. Opening citable passage after each H2 (target 120-180 words after about 50-word answer sentence)+30. Question-format heading ratio (target 40-60% of H2s)+31. Visible Q&A presence when template calls for FAQ32. Table presence with `<thead>` (for AI extraction)33. robots.txt AI bot allowance (site-level check)diff --git a/skills/blog/references/schema-stack.md b/skills/blog/references/schema-stack.mdindex 61e2475..6950f01 100644--- a/skills/blog/references/schema-stack.md+++ b/skills/blog/references/schema-stack.md@@ -19,13 +19,13 @@## Why Schema Matters-Article schema with author Person and publisher Organization is the priority-schema family for blog content in 2026. FAQ and HowTo no longer earn Google-rich result real estate, so standard article entities carry more of the SEO and-AI-citation load. Pages using 3+ schema-types have approximately 13% higher likelihood of AI citation. Schema must-appear in HTML source: not injected via JavaScript: because most AI crawlers-do not execute JS.+Article schema with author Person, publisher Organization, and BreadcrumbList+is the priority schema family for blog content in 2026. FAQ and HowTo no+longer earn Google rich result real estate, so standard article entities carry+more of the SEO and AI-citation load. Complete schema graphs may increase AI+citation likelihood, but exact lifts are directional and unverified. Schema+must appear in HTML source: not injected via JavaScript: because most AI+crawlers do not execute JS.Still rich-result-eligible for blog content in 2026: Article, BreadcrumbList,Video, Product, Review, and Event. FAQPage and HowTo no longer earn visual@@ -265,11 +265,11 @@ will appear in Google Search**. The markup produces no visual search enhancementSearch Console FAQ filters retire around June 2026, and Rich Results Test/APIsupport ends around August 2026.-However, the markup is still worth including for AI citation reasons: LLMs parse-your page's **visible FAQ text** and Q&A-formatted content improves+However, the markup can remain as optional entity support: LLMs parse your+page's **visible FAQ text**, and Q&A-formatted content can improveextractability for citation. Google says there is "no need to proactivelyremove" existing FAQPage markup and it "does not cause problems for Search."-Implement for AI/LLM entity value, not rich results.+Implement for AI/LLM entity value only, not rich results.### Structure@@ -310,7 +310,7 @@ FAQPage"name": "Do AI search engines use schema markup?","acceptedAnswer": {"@type": "Answer",- "text": "Yes. AI search engines like ChatGPT Search, Perplexity, and Google AI Overviews use schema markup to identify authoritative content. Pages with 3 or more schema types have approximately 13% higher likelihood of being cited in AI-generated responses compared to pages without structured data."+ "text": "AI search engines can use schema markup to identify entities and relationships, but exact citation lifts are unverified. For blogs in 2026, prioritize Article or BlogPosting, Person author, Organization publisher, and BreadcrumbList. Add FAQPage only for visible Q&A entity support, not Google rich results."}}]@@ -536,8 +536,8 @@ AI/LLM entity support.## ProfilePage Schema (Author Pages)-Fully supported since December 2025. Add to author bio/team pages to strengthen E-E-A-T-signals and improve eligibility for the "Discussions and Forums" SERP feature.+Supported in 2026. Add to author bio/team pages to strengthen E-E-A-T signals+and improve eligibility for author entity understanding.```json{@@ -709,7 +709,7 @@ multiple schema types.| Author @id matches author page | Same URI used everywhere | Inconsistent references || Image URLs are absolute | Start with `https://` | Relative paths || No deprecated types used | None from deprecated list | HowTo, Q&A, etc. |-| 3+ schema types per page | BlogPosting + Person + Org + Breadcrumb minimum | Fewer than 3 |+| Complete schema graph per page | Article/BlogPosting + Person + Organization + BreadcrumbList minimum | Missing priority entity baseline || Validates in Google Rich Results Test | No errors | Errors present |### Validation Toolsdiff --git a/tests/test_ai_citation_score.py b/tests/test_ai_citation_score.pyindex ecc3b55..72aab73 100644--- a/tests/test_ai_citation_score.py+++ b/tests/test_ai_citation_score.py@@ -1,5 +1,7 @@"""Tests for the AI citation probability scorer."""+import json+import subprocessimport sysfrom pathlib import Path@@ -10,6 +12,8 @@ sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))import ai_citation_score+ROOT = Path(__file__).resolve().parent.parent+SCRIPT = ROOT / "scripts" / "ai_citation_score.py"FRONTMATTER_BOUNDARY = "-" * 3@@ -99,3 +103,31 @@ def test_high_quality_fixture_scores_higher_than_thin_fixture(tmp_path):thin_score = ai_citation_score.score_file(thin_post)["overall"]assert high_score > thin_score+++def test_invalid_utf8_file_returns_structured_error(tmp_path):+ bad_post = tmp_path / "bad.md"+ bad_post.write_bytes(b"# Bad\n\xff\n")++ result = ai_citation_score.score_file(bad_post)++ assert "error" in result+ assert "Could not analyze" in result["error"]+++def test_invalid_utf8_cli_exits_cleanly_with_json_error(tmp_path):+ bad_post = tmp_path / "bad.md"+ bad_post.write_bytes(b"# Bad\n\xff\n")++ result = subprocess.run(+ [sys.executable, str(SCRIPT), str(bad_post)],+ capture_output=True,+ text=True,+ check=False,+ )++ assert result.returncode == 1+ payload = json.loads(result.stdout)+ assert "error" in payload+ assert "Could not analyze" in payload["error"]+ assert "Traceback" not in result.stderrdiff --git a/tests/test_content_decay.py b/tests/test_content_decay.pyindex f976ec7..2b19804 100644--- a/tests/test_content_decay.py+++ b/tests/test_content_decay.py@@ -7,6 +7,8 @@ import subprocessimport sysfrom pathlib import Path+import pytest+sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))import content_decay@@ -84,6 +86,41 @@ def test_load_export_accepts_gsc_rows_object(tmp_path: Path):assert pages["https://example.com/from-keys"]["clicks"] == 3+def test_load_export_rejects_non_finite_json(tmp_path: Path):+ export = tmp_path / "nan.json"+ export.write_text(+ '[{"page": "https://example.com/nan", "clicks": NaN, "impressions": 10}]',+ encoding="utf-8",+ )++ with pytest.raises(content_decay.ContentDecayError, match="non-finite"):+ content_decay.load_export(export)+++def test_analyze_decay_rejects_non_finite_metric_value():+ current_rows = [+ {"page": "https://example.com/nan", "clicks": float("nan"), "impressions": 10}+ ]+ previous_rows = [+ {"page": "https://example.com/nan", "clicks": 10, "impressions": 20}+ ]++ with pytest.raises(content_decay.ContentDecayError, match="finite number"):+ content_decay.analyze_decay(current_rows, previous_rows)+++def test_analyze_decay_rejects_page_missing_selected_metric():+ current_rows = [+ {"page": "https://example.com/missing", "impressions": 10}+ ]+ previous_rows = [+ {"page": "https://example.com/missing", "clicks": 10, "impressions": 20}+ ]++ with pytest.raises(content_decay.ContentDecayError, match="missing selected metric"):+ content_decay.analyze_decay(current_rows, previous_rows, metric="clicks")++def test_markdown_output_contains_table_and_recommendations():report = content_decay.analyze_decay(_fixture("gsc_current.json"),@@ -97,6 +134,32 @@ def test_markdown_output_contains_table_and_recommendations():assert "https://example.com/drop-out" in markdown+def test_markdown_output_escapes_table_cells():+ page = "https://example.com/a|b\\c\nnext"+ report = content_decay.analyze_decay(+ [{"page": page, "clicks": 1, "impressions": 90}],+ [{"page": page, "clicks": 10, "impressions": 100}],+ )++ markdown = content_decay.format_markdown(report)++ assert "https://example.com/a\\|b\\\\c\\nnext" in markdown+ assert page not in markdown+++def test_low_prior_demand_alone_does_not_recommend_prune():+ action, _reason = content_decay.recommend_action(+ metric="clicks",+ threshold=0.20,+ severity="warning",+ dropped_out=False,+ current={"clicks": 2.0, "impressions": 30.0},+ previous={"clicks": 2.0, "impressions": 30.0},+ )++ assert action != "prune"++def test_cli_writes_json_output(tmp_path: Path):output = tmp_path / "report.json"result = subprocess.run(diff --git a/tests/test_quality_gate.py b/tests/test_quality_gate.pyindex 04166cb..affb133 100644--- a/tests/test_quality_gate.py+++ b/tests/test_quality_gate.py@@ -1,15 +1,20 @@"""Tests for the blog post quality gate."""import json+import subprocessimport sysfrom pathlib import Path+import pytest+sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))import analyze_blogimport quality_gate+ROOT = Path(__file__).resolve().parent.parentFIXTURES = Path(__file__).parent / "fixtures"+SCRIPT = ROOT / "scripts" / "quality_gate.py"def _copy_fixture(name: str, tmp_path: Path) -> Path:@@ -86,6 +91,44 @@ def test_selection_skips_non_blog_paths(tmp_path):assert quality_gate.is_blog_post(post_file, root=tmp_path)+def test_selection_uses_lexical_path_for_symlinks(tmp_path):+ docs_dir = tmp_path / "docs"+ posts_dir = tmp_path / "posts"+ docs_dir.mkdir()+ posts_dir.mkdir()++ docs_post = docs_dir / "doc-post.md"+ docs_post.write_text(+ "---\n"+ "title: Docs Post\n"+ "description: This target lives in an excluded directory.\n"+ "---\n\n"+ "# Docs Post\n",+ encoding="utf-8",+ )++ real_post = posts_dir / "real-post.md"+ real_post.write_text(+ "---\n"+ "title: Real Post\n"+ "description: This target lives outside excluded directories.\n"+ "---\n\n"+ "# Real Post\n",+ encoding="utf-8",+ )++ docs_link = docs_dir / "linked-real.md"+ root_link = tmp_path / "linked-docs.md"+ try:+ docs_link.symlink_to(real_post)+ root_link.symlink_to(docs_post)+ except OSError:+ pytest.skip("symlinks not supported on this filesystem")++ assert not quality_gate.is_blog_post(docs_link, root=tmp_path)+ assert quality_gate.is_blog_post(root_link, root=tmp_path)++def test_json_format_shape(tmp_path, capsys):post = _copy_fixture("blog_fail.md", tmp_path)@@ -99,3 +142,29 @@ def test_json_format_shape(tmp_path, capsys):assert payload["failures"][0]["score"] < quality_gate.DEFAULT_THRESHOLDassert payload["failures"][0]["issues"]assert payload["failures"][0]["issues"][0]["severity"] == "high"+++def test_invalid_utf8_returns_structured_json_error(tmp_path):+ bad_post = tmp_path / "bad.md"+ bad_post.write_bytes(+ b"---\ntitle: Bad\ndescription: Invalid bytes\n---\n\n# Bad\n\xff\n"+ )++ result = subprocess.run(+ [+ sys.executable,+ str(SCRIPT),+ str(bad_post),+ "--format",+ "json",+ ],+ capture_output=True,+ text=True,+ check=False,+ )++ assert result.returncode == 1+ payload = json.loads(result.stdout)+ assert "error" in payload+ assert "Could not analyze" in payload["error"]+ assert "Traceback" not in result.stderrdiff --git a/tests/test_style_learn.py b/tests/test_style_learn.pyindex a8010a0..a7eede2 100644--- a/tests/test_style_learn.py+++ b/tests/test_style_learn.py@@ -110,6 +110,39 @@ def test_signature_phrases_are_deterministic(tmp_path):assert "the content" not in phrases+def test_unicode_corpus_produces_vocabulary_metrics(tmp_path):+ body = """## Что изменилось?++Мы проверили стратегия контента на нескольких страницах. Стратегия контента стала понятнее для редакторов.++## Как команда использует профиль?++Команда пишет короткие выводы и сохраняет спокойный тон в каждом разделе.+"""+ path = tmp_path / "unicode.md"+ path.write_text(_post("Кириллический пример", body), encoding="utf-8")++ profile = style_learn.learn_style([tmp_path], min_posts=1)++ assert profile["vocabulary"]["total_words"] > 0+ assert profile["vocabulary"]["unique_words"] > 0+ assert any("стратегия" in item["phrase"] for item in profile["signature_phrases"])+++def test_empty_corpus_warns_and_skips_tone_descriptors(tmp_path):+ for index in range(2):+ path = tmp_path / f"empty-{index}.md"+ path.write_text("---\ntitle: Empty\n---\n\n", encoding="utf-8")++ profile = style_learn.learn_style([tmp_path], min_posts=2)++ assert profile["vocabulary"]["total_words"] == 0+ assert profile["tone_descriptors"] == []+ assert profile["sample"]["warnings"] == [+ "No analyzable words found in the sample corpus. Tone descriptors were skipped."+ ]++def test_markdown_render_is_voice_profile_block(tmp_path):_write_posts(tmp_path, count=5)profile = style_learn.learn_style([tmp_path], min_posts=5)