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
feat: upgrade readability layer with research-backed thresholds (v1.2.0)
Danielf7b07ed4fe05
diff --git a/agents/blog-reviewer.md b/agents/blog-reviewer.mdindex 0013aa6..71a14c0 100644--- a/agents/blog-reviewer.md+++ b/agents/blog-reviewer.md@@ -28,12 +28,12 @@ a prioritized fix list. You are a strict reviewer — do not give generous score### Content Quality (30 pts)| Subcategory | Max | Criteria ||-------------|-----|----------|-| Depth/comprehensiveness | 8 | Covers topic thoroughly, no obvious gaps |-| Readability (Flesch 45-60) | 6 | Natural flow, appropriate grade level |+| Depth/comprehensiveness | 7 | Covers topic thoroughly, no obvious gaps |+| Readability (Flesch 60-70) | 7 | Natural flow, appropriate grade level || Originality/unique value | 5 | Contains [ORIGINAL DATA], [PERSONAL EXPERIENCE], or [UNIQUE INSIGHT] |-| Logical structure | 4 | Clear progression, each section builds on previous |+| Sentence & paragraph structure | 4 | Avg 15-20 words/sentence, 40-80 words/paragraph, H2 every 200-300 words || Engagement elements | 4 | Questions, examples, analogies, stories |-| Grammar/style | 3 | Clean prose, no errors, consistent voice |+| Grammar/anti-pattern | 3 | Passive voice ≤10%, AI trigger words ≤5/1K, transition words 20-30% |### SEO Optimization (25 pts)| Subcategory | Max | Criteria |diff --git a/agents/blog-seo.md b/agents/blog-seo.mdindex e6ec13f..f8d6168 100644--- a/agents/blog-seo.md+++ b/agents/blog-seo.md@@ -44,7 +44,7 @@ rewrite content — you identify issues and prescribe fixes.- No skipped levels (H1→H2→H3, never H1→H3)- Primary keyword in 2-3 headings naturally- 60-70% of H2s formatted as questions-- H2 every 150-200 words+- H2 every 200-300 words- **Pass criteria**: No skips + keyword in headings + question ratio met### 4. Internal Linksdiff --git a/agents/blog-writer.md b/agents/blog-writer.mdindex 4004a66..0ca6ad4 100644--- a/agents/blog-writer.md+++ b/agents/blog-writer.md@@ -30,8 +30,8 @@ Every H2 section opens with a 40-60 word paragraph containing:- A direct answer to the heading's implied question### Paragraph Discipline-- Target: 40-55 words per paragraph-- Hard limit: Never exceed 100 words+- Target: 40-80 words per paragraph+- Hard limit: Never exceed 150 words- Start each paragraph with the most important sentence- One idea per paragraph@@ -145,21 +145,21 @@ After completing the full draft, before returning content:1. Self-check readability:- Count average sentence length (target: 15-20 words)- - Verify no paragraph exceeds 100 words (hard limit)+ - Verify no paragraph exceeds 150 words (hard limit)- Check for passive voice clusters -- rewrite to active- Replace jargon with plain alternatives where possible2. If `analyze_blog.py` is accessible, run a quick check:`python3 ~/.claude/skills/blog/scripts/analyze_blog.py <draft_file> --category content`-3. If readability sub-score is below 4/6, revise before returning:+3. If readability sub-score is below 5/7, revise before returning:- Split sentences over 25 words- - Break paragraphs over 60 words+ - Break paragraphs over 100 words- Convert passive to active voice## Quality Self-CheckBefore returning content, verify:- [ ] Every H2 opens with stat + source (40-60 words)-- [ ] No paragraph exceeds 100 words+- [ ] No paragraph exceeds 150 words- [ ] All statistics have named sources- [ ] Heading hierarchy is clean (H1 → H2 → H3)- [ ] 60-70% of H2s are questionsdiff --git a/blog/SKILL.md b/blog/SKILL.mdindex ca6af70..e9553b8 100644--- a/blog/SKILL.md+++ b/blog/SKILL.md@@ -111,7 +111,7 @@ These are hard rules. Never ship content that violates them:| Rule | Threshold | Action ||------|-----------|--------|| Fabricated statistics | Zero tolerance | Every number must have a named source |-| Paragraph length | Never > 100 words | Split or trim |+| Paragraph length | Never > 150 words | Split or trim || Heading hierarchy | Never skip levels | H1 → H2 → H3 only || Source tier | Tier 1-3 only | Never cite content mills or affiliate sites || Image alt text | Required on all images | Descriptive, includes topic keywords naturally |@@ -124,7 +124,7 @@ Blog quality is scored across 5 categories (100 points total):| Category | Weight | What it measures ||----------|--------|-----------------|-| Content Quality | 30 pts | Depth, readability (Flesch 45-60), originality, logical structure, engagement elements |+| Content Quality | 30 pts | Depth, readability (Flesch 60-70), originality, structure, engagement, grammar/anti-pattern || SEO Optimization | 25 pts | Heading hierarchy, title tag, keyword placement, internal linking, meta description || E-E-A-T Signals | 15 pts | Author attribution, source citations, trust indicators, experience signals || Technical Elements | 15 pts | Schema markup, image optimization, page speed, mobile-friendliness, OG meta |diff --git a/blog/references/content-rules.md b/blog/references/content-rules.mdindex 76b4d67..991f6bf 100644--- a/blog/references/content-rules.md+++ b/blog/references/content-rules.md@@ -22,6 +22,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. Target 40-60 words per answer paragraph — this is the optimal+length for paragraph featured snippet capture.+## Title Optimization| Parameter | Target | Impact |@@ -59,8 +64,9 @@ Every post must open with a TL;DR summary box immediately after the title/intro:### Rules- ONE H1 per page (the title only)- H2s for main sections (target 6-8 per post)-- H2 every 150-200 words — maintain consistent heading frequency for scannability-- H3s for subsections — never skip levels (no H1 → H3)+- H2 every 200-300 words (Yoast flags sections >300 words without a subheading)+- H3 every 100-200 words under each H2 for deeper structure+- H3s for subsections — never skip levels (no H2 → H4)- Include primary keyword naturally in 2-3 headings### Question-Format Headings@@ -73,42 +79,112 @@ Convert 60-70% of H2s to questions:AI systems directly extract answers following question formats. Search enginesshow these in People Also Ask. Users scan headings as questions they want answered.+## Sentence Rules++| Parameter | Target | Flag At | Source |+|-----------|--------|---------|--------|+| Average sentence length | 15-20 words | >22 words | Yoast, Siteimprove |+| 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 |++### Sentence Rhythm+Mix short (5-10 words), medium (15-20 words), and occasional long (20-25 words)+sentences. Uniform sentence length signals AI authorship. Human writing has+natural burstiness — a short punchy sentence after a longer explanatory one.++No more than 3 consecutive sentences within 5 words of each other's length.+## Paragraph Rules-| Parameter | Target | Hard Limit |-|-----------|--------|------------|-| Paragraph length | 40-55 words | Never > 100 words |-| Sentence length | 15-20 words | Occasional longer OK |-| Extractable chunks | 50-150 words | For AI citation |+| Parameter | Target | Flag At | Hard Limit | Source |+|-----------|--------|---------|------------|--------|+| 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 | 50-150 words | — | — | GEO citation research |### Key PrincipleStart each paragraph with the most important sentence. This enables both-readers and AI to grasp concepts by scanning.+readers and AI to grasp concepts by scanning. 79% of users scan rather than+read (NNGroup). Concise, scannable formatting improves usability 124-159%+(NNGroup).### Paragraph Sentence LimitMaximum 2-3 sentences per paragraph. This is a hard rule. Single-sentenceparagraphs are acceptable and often preferred for emphasis. Paragraphsexceeding 3 sentences should be split.-## Readability Targets--| Metric | Target | Why |-|--------|--------|-----|-| Flesch Reading Ease | 45-60 | Optimal for ranking (Originality.AI study) |-| Flesch-Kincaid Grade | 10-12 | Expert-accessible, not oversimplified |-| Language style | Conversational | Mirrors how people ask questions |+One topic per paragraph — no topic drift within a paragraph.-**Updated guidance**: Flesch-Kincaid 45-60 is the optimal range for ranking, not 60-70-as previously believed (Originality.AI, 2025). Content that is too simple underperforms-because it lacks the depth and specificity that signals expertise.--62% of high-performing posts score "easy" on readability tools (Semrush), but "easy"-in Semrush's scale corresponds to Flesch 45-60 for expert topics — not dumbed-down-content. The key is clear expression of complex ideas, not avoidance of complexity.+## Readability Targets-AI systems prefer natural, conversational language. But readability alone-doesn't determine AI citation — content must also demonstrate expertise-and provide unique value.+| Metric | Target | Acceptable | Source |+|--------|--------|-----------|--------|+| Flesch Reading Ease | 60-70 | 55-75 | Yoast ≥60; Spotlight 18K prompts: 60-75 = 31% more AI citations |+| 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:+natural language that mirrors how experts actually explain things.++AI systems prefer content that is fluent, specific, and well-structured.+Readability alone doesn't determine AI citation — content must also demonstrate+expertise and provide unique value.++## Visual Content Rules++| Parameter | Target | Minimum | Source |+|-----------|--------|---------|--------|+| Image/visual frequency | Every 200-350 words | 1 per 500 words | BuzzSumo, NNGroup |+| Bold/emphasis | 3-5 per 300 words | — | Competitive analysis |+| Bold % of total text | <10% | — | Diminishing impact above 10% |++### Lists+Use bulleted or numbered lists when 3+ parallel items exist. Don't force lists+where prose works better — lists are for scannable parallel items, not for+every piece of information.++### Visual Impact+Content with visuals gets 94% more views and 150% more social engagement.+NNGroup: visitors read only ~20% of words on a page — visuals anchor scanning+patterns and guide the eye to key information.++## Anti-Pattern Detection++### AI Trigger Words (≤5 per 1,000 words)+Red-flag words that spiked >50% post-ChatGPT. Flag if total exceeds 5 per+1,000 words:++delve, tapestry, multifaceted, testament, pivotal, robust, cutting-edge,+furthermore, indeed, moreover, utilize, leverage, comprehensive, landscape,+crucial, foster, illuminate, underscore, embark, endeavor, facilitate,+paramount, nuanced, intricate, meticulous, realm++### Passive Voice (≤10% of sentences)+Yoast threshold. Switching to active voice improves readability scores+and reduces bounce rates. Occasional passive is fine for variety; clusters+of passive construction signal automated content.++### Transition Words (20-30% of sentences)+Yoast optimal range: ~25%. Below 20% feels choppy; above 35% reads as+formulaic or AI-generated. Common transitions: however, therefore, additionally,+for example, in contrast, similarly, meanwhile, consequently.++### Keyword Density (0.5-2%)+Flag at >2.5%, penalize at >3%. Keyword stuffing performs worse than baseline+in generative engines (-10%, Princeton GEO paper). Primary keyword should+appear 3-5 times naturally (intro 1x, body 1-2x, conclusion 1x).++### Filler Content Detection+QRG 2025 explicitly targets pages that "artificially inflate content."+Flag: entity drift (wandering off-topic), topical dilution (covering too+many topics shallowly), needless repetition, intent mismatch between+title and content body.## Content Length Guidelines@@ -120,7 +196,31 @@ and provide unique value.| FAQ/listicle | 1,500-2,000 words | 1,000 || News/update | 800-1,200 words | 600 |-Long-form (2,000+ words) gets 3x more AI citations than short posts.+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.++Reading time: word count ÷ 225, rounded up. Optimal reading time is+5-7 minutes (~1,100-1,575 words). Engagement falls off sharply after+7 minutes; approaches zero at 14+ minutes (Medium, Smartocto 2025).++## Citation & Statistics Rules (GEO)++| Parameter | Target | GEO-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 |+| Internal links | 2-5 per 1,000 words | — | SEO + engagement |++Statistics addition boosts AI visibility up to 41% (Princeton GEO paper,+KDD 2024). For lower-ranked sites, citing authoritative sources boosts+visibility up to 115%. The combination of fluency + statistics outperforms+any single optimization tactic by 5.5%.++### Attribution Format+Always attribute statistics: `[Number]% [claim] ([Source](url), [Year])`.+Unattributed statistics damage E-E-A-T trust signals and are flagged as+fabrication risks in quality scoring.## Information Gain -- The Key Differentiatordiff --git a/blog/references/geo-optimization.md b/blog/references/geo-optimization.mdindex ddb42e5..40b1629 100644--- a/blog/references/geo-optimization.md+++ b/blog/references/geo-optimization.md@@ -193,3 +193,52 @@ Entity building timeline (3-6 months):3. Build entity consistency across all platforms (exact same name)4. Practice "controlled co-occurrence" via third-party mentions5. Earn external citations from recognized publications++## Readability-GEO Connection++Readability directly impacts AI citation rates. Content in the Flesch 60-75+band receives significantly more AI citations across all major platforms.++### Flesch Score & AI Citation Rates+- **Flesch 60-75 = 31% more AI citations** (Spotlight, 18,000 monitored prompts)+- Teams improving Flesch from 52→68 saw parallel citation lifts within two+ crawl windows+- Content that is too complex (Flesch <50) or too simple (Flesch >80) gets+ fewer 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.+- Direct answers in the first 1-2 sentences of each section maximize+ extractability for AI systems++### GEO Tactic Combinations+Princeton GEO paper (KDD 2024) findings on readability-related tactics:+- **Fluency optimization** = 15-30% visibility boost+- **Statistics addition** = up to 41% visibility boost+- **Fluency + Statistics combined** outperforms any single tactic by 5.5%+- Keyword stuffing performs -10% WORSE than baseline++### Schema & Structure for AI Citation+- Schema markup increases AI citations by **44%** (BrightEdge 2025)+- Comparison tables with proper HTML (`<thead>`, `<tbody>`) = **47% higher**+ AI citation rates (Search Engine Land experiment)+- SearchVIU confirmed ChatGPT, Claude, Perplexity, and Gemini all process+ Schema Markup during citation selection++### Platform-Specific Citation Behaviors+| Platform | Key Behavior | Readability Preference |+|----------|-------------|----------------------|+| ChatGPT | Wikipedia = 7.8% of citations; SearchGPT: 87% match Bing top 10 | Prefers well-structured, fluent content |+| Perplexity | Reddit = 46.7% of top-10 sources; strongest depth correlation (0.191) | 2-3 day content decay; heavily weights recency |+| AI Overviews | 93.67% from top-10 organic; avg 10.2 links per response | Prefers established authority + clear answers |++Only 11% of domains are cited by both ChatGPT and Perplexity. Only 12% of URLs+cited by ChatGPT, Perplexity, AND Copilot rank in Google's top 10.++### Content Freshness for AI Citation+- **65%** of AI bot hits target content published within the past year (Seer Interactive)+- **85%** of AI Overview citations come from content <2 years old+- **44%** of AI Overview citations come from 2025 content specifically+- **50%** of Perplexity citations come from 2025 alone+- Content older than 3 months sees 3x fewer citationsdiff --git a/blog/references/google-landscape-2026.md b/blog/references/google-landscape-2026.mdindex dfb78ec..abac38a 100644--- a/blog/references/google-landscape-2026.md+++ b/blog/references/google-landscape-2026.md@@ -162,3 +162,40 @@ AMP (Accelerated Mobile Pages) is effectively dead:- No SEO benefit to AMP implementation — Core Web Vitals replaced AMP's purpose- Recommendation: Remove AMP versions if maintaining them creates overhead; focus onnative page speed optimization instead++## Readability & Engagement Signals++Google does NOT use readability as a direct ranking factor. John Mueller has+stated this explicitly. However, readability drives the engagement signals+Google DOES measure — bounce rate, time on page, scroll depth, and return+visits.++### December 2025 Core Update: Readability Correlation+Raptive 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+- Sites with >4% branded search clicks showed stronger resilience+- Ad-to-content ratio <25% correlated with 4pp better performance+- **LCP >3 seconds** = 23% more traffic loss+- **INP >300ms** = 31% more traffic loss+- 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.++### Quality Rater Guidelines Updates+- **January 2025 QRG**: Added "Filler" section penalizing pages that bury useful+ information under padding content. Topical dilution and entity drift are+ explicit quality signals raters evaluate.+- **September 2025 QRG**: Added AI content evaluation criteria. AI content is+ acceptable IF it demonstrates genuine E-E-A-T. Low-quality markers: generic+ language, no unique insights, regurgitated facts.++### Hidden Gems Ranking System+Hidden Gems is its own ranking system (Brad Kellett confirmation), separate from+core ranking. It surfaces experience-based niche content from forums, social media,+and small blogs. 77% of keyphrases with product reviews now show "Discussions and+Forums" SERP features. Domain authority influence is diminishing — depth,+originality, and strong intent alignment matter more.diff --git a/blog/references/quality-scoring.md b/blog/references/quality-scoring.mdindex a70729e..ce7003e 100644--- a/blog/references/quality-scoring.md+++ b/blog/references/quality-scoring.md@@ -6,20 +6,20 @@ Score each blog post against this checklist. Used by `/blog analyze`.| Check | Points | Pass Criteria ||-------|--------|---------------|-| Depth/comprehensiveness | 8 | Covers topic thoroughly, no major gaps |-| Readability/clarity (Flesch 45-60) | 6 | Expert-accessible, clear expression of complex ideas |+| Depth/comprehensiveness | 7 | Covers topic thoroughly, no major gaps |+| Readability (Flesch 60-70) | 7 | Flesch 60-70 ideal, 55-75 acceptable; Grade 7-8; Gunning Fog 7-8 || Originality/unique value markers | 5 | Original data, case studies, first-hand experience |-| Logical structure | 4 | Answer-first formatting, clear progression |+| Sentence & paragraph structure | 4 | Avg sentence 15-20 words, ≤25% over 20; paragraphs 40-80 words; H2 every 200-300 words || Engagement elements | 4 | TL;DR box, callouts, varied content blocks |-| Grammar/style | 3 | Clean prose, no errors, consistent voice |+| Grammar/anti-pattern | 3 | Passive voice ≤10%, AI trigger words ≤5/1K, transition words 20-30%, clean prose |## SEO Optimization (25 points)| Check | Points | Pass Criteria ||-------|--------|---------------|-| Heading hierarchy with keywords | 5 | H1 → H2 → H3, no skips, keyword in 2-3 headings, H2 every 150-200 words |+| Heading hierarchy with keywords | 5 | H1 → H2 → H3, no skips, keyword in 2-3 headings, H2 every 200-300 words || Title tag (40-60 chars, keyword, power word) | 4 | Front-loaded keyword, positive sentiment, brackets if applicable |-| Keyword placement/density | 4 | Natural integration, no stuffing, present in first 100 words |+| Keyword placement/density | 4 | Natural integration (0.5-2%), no stuffing, present in first 100 words || Internal linking (3-10 contextual) | 4 | Descriptive anchor text, bidirectional, related content || URL structure | 3 | Short, keyword-rich, no stop words, lowercase || Meta description (150-160 chars, stat) | 3 | Fact-dense, includes one statistic, ends with value prop |@@ -42,7 +42,7 @@ Score each blog post against this checklist. Used by `/blog analyze`.| 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 |-| Mobile-friendliness | 2 | Responsive, tap targets 48px+, no horizontal scroll |+| Mobile-friendliness | 2 | Responsive, tap targets 48px+, no horizontal scroll, paragraphs ≤100 words || OG/social meta tags | 2 | og:title, og:description, og:image (1200x630), twitter:card |## AI Citation Readiness (15 points)@@ -74,7 +74,7 @@ When reporting issues, classify by priority:### Critical (Must Fix Before Publishing)- Fabricated statistics (zero tolerance)- Broken heading hierarchy (H1 → H3 skip)-- Paragraphs > 100 words+- Paragraphs > 200 words (Yoast red)- No source attribution on claims- Missing author attribution- Content behind JavaScript (invisible to AI crawlers)@@ -87,21 +87,26 @@ When reporting issues, classify by priority:- Missing meta description or lastUpdated- Title tag outside 40-60 character range- No internal links-- Flesch score outside 45-60 range+- Flesch score outside 55-75 range- No OG/social meta tags+- Paragraphs > 150 words+- Passive voice > 15%+- AI trigger words > 8 per 1,000### Medium Priority- Fewer than 2 charts- Fewer than 3 images- Tier 4-5 sources present- Self-promotion > 1 mention-- Sections exceeding 180 words between headings+- Sections exceeding 300 words between headings- Missing experience signals (no first-person markers)- Images not in AVIF/WebP format- `loading="lazy"` on LCP image+- Average sentence length > 22 words+- Transition words < 15% or > 35%### Low Priority-- Paragraph length slightly above 55 words (but under 100)+- Paragraph length slightly above 80 words (but under 150)- Non-question H2 headings above 40%- Missing chart type diversity- Images without alt text@@ -113,39 +118,44 @@ When reporting issues, classify by priority:These can be detected programmatically:### Content Quality-1. Word count per paragraph (split on double newlines, flag > 100)+1. Word count per paragraph (split on double newlines, flag > 150, critical > 200)2. Sentence count per paragraph (flag > 3 sentences)-3. Flesch-Kincaid score (target 45-60)-4. Heading frequency (flag gaps > 200 words between H2s)+3. Flesch-Kincaid score (target 60-70, acceptable 55-75)+4. Heading frequency (flag gaps > 300 words between H2s)5. TL;DR box presence (search for "TL;DR" in first 500 characters)+6. Average sentence length (target 15-20, flag > 22)+7. Sentences over 20 words (flag if > 25% of total)+8. Passive voice percentage (flag > 10%, high priority > 15%)+9. AI trigger word density (flag > 5 per 1,000 words)+10. Transition word percentage (target 20-30%, flag < 15% or > 35%)### SEO Optimization-6. Title tag length (frontmatter, target 40-60 chars)-7. Heading hierarchy (regex for `^#{1,6} `, no skipped levels)-8. Meta description length (frontmatter, target 150-160 chars)-9. Internal link count (regex for relative URLs or same-domain links)-10. External link count and tier classification-11. URL structure check (lowercase, no stop words)+11. Title tag length (frontmatter, target 40-60 chars)+12. Heading hierarchy (regex for `^#{1,6} `, no skipped levels)+13. Meta description length (frontmatter, target 150-160 chars)+14. Internal link count (regex for relative URLs or same-domain links)+15. External link count and tier classification+16. URL structure check (lowercase, no stop words)### E-E-A-T Signals-12. Author attribution presence (frontmatter `author` field)-13. Citation format (regex for `\([^)]+\(http`)-14. Unsourced statistics (numbers without attribution nearby)-15. Self-promotion patterns (brand name frequency, max 1)-16. First-person markers ("we tested", "in our experience")+17. Author attribution presence (frontmatter `author` field)+18. Citation format (regex for `\([^)]+\(http`)+19. Unsourced statistics (numbers without attribution nearby)+20. Self-promotion patterns (brand name frequency, max 1)+21. First-person markers ("we tested", "in our experience")### Technical Elements-17. Image count (regex for `!\[` or `<img`)-18. Image alt text presence (images without alt attribute)-19. Chart count (regex for `<svg` or `<figure`)-20. Schema presence (search for structured data markers)-21. OG meta tags (frontmatter `ogImage`, `coverImage`)-22. `loading="lazy"` on first image (flag as LCP issue)-23. lastUpdated presence (frontmatter check)+22. Image count (regex for `!\[` or `<img`)+23. Image alt text presence (images without alt attribute)+24. Chart count (regex for `<svg` or `<figure`)+25. Schema presence (search for structured data markers)+26. OG meta tags (frontmatter `ogImage`, `coverImage`)+27. `loading="lazy"` on first image (flag as LCP issue)+28. lastUpdated presence (frontmatter check)### AI Citation Readiness-24. Section word count between headings (target 120-180)-25. Question-format heading ratio (target 60-70% of H2s)-26. FAQ presence (search for "FAQ" or "Frequently Asked")-27. Table presence with `<thead>` (for AI extraction)-28. robots.txt AI bot allowance (site-level check)+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")+32. Table presence with `<thead>` (for AI extraction)+33. robots.txt AI bot allowance (site-level check)diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex fbd7fa1..87db066 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -289,7 +289,7 @@ These are non-negotiable. Content violating any of these must not be published:| Gate | Threshold ||------|-----------|| Fabricated statistics | Zero tolerance |-| Paragraph length | Never > 100 words |+| Paragraph length | Never > 150 words || Heading hierarchy | Never skip levels (H1 > H2 > H3) || Source tier | Tier 1-3 only || Image alt text | Required on all images |diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.mdindex b319639..9c93b47 100644--- a/docs/TROUBLESHOOTING.md+++ b/docs/TROUBLESHOOTING.md@@ -104,7 +104,7 @@ irm https://raw.githubusercontent.com/AgriciDaniel/claude-blog/main/install.ps1| Missing images | -4 to -7 pts | Add 3-5 images from Pixabay/Unsplash with descriptive alt text || Missing charts | -5 to -8 pts | Generate 2-4 SVG charts via built-in `blog-chart` (diverse types) || No FAQ section | -4 pts | Add 3-5 FAQ items with 40-60 word answers containing statistics |-| Long paragraphs (>100 words) | -8 pts | Split into 40-55 word paragraphs |+| Long paragraphs (>150 words) | -8 pts | Split into 40-80 word paragraphs || Missing `lastUpdated` | -4 pts | Add `lastUpdated: "YYYY-MM-DD"` to frontmatter || Excessive self-promotion | -3 pts | Remove brand mentions except 1 in author bio context |diff --git a/scripts/analyze_blog.py b/scripts/analyze_blog.pyindex 163b21f..7d3363a 100755--- a/scripts/analyze_blog.py+++ b/scripts/analyze_blog.py@@ -84,6 +84,26 @@ AI_PHRASES = ["empower", "state-of-the-art",]+# AI trigger words (single words that spiked >50% post-ChatGPT)+AI_TRIGGER_WORDS = [+ "delve", "tapestry", "multifaceted", "testament", "pivotal", "robust",+ "cutting-edge", "furthermore", "indeed", "moreover", "utilize", "leverage",+ "comprehensive", "landscape", "crucial", "foster", "illuminate", "underscore",+ "embark", "endeavor", "facilitate", "paramount", "nuanced", "intricate",+ "meticulous", "realm",+]++# Transition words/phrases for readability scoring+TRANSITION_WORDS = [+ "however", "therefore", "furthermore", "moreover", "additionally",+ "consequently", "nevertheless", "meanwhile", "similarly", "likewise",+ "nonetheless", "accordingly", "subsequently", "hence", "thus",+ "in contrast", "on the other hand", "for example", "for instance",+ "in addition", "as a result", "in other words", "that said",+ "in particular", "specifically", "alternatively", "conversely",+ "in fact", "notably", "importantly", "significantly",+]+# ---------------------------------------------------------------------------# Content type word-count benchmarks# ---------------------------------------------------------------------------@@ -200,17 +220,20 @@ def analyze_paragraphs(content: str) -> dict[str, Any]:paragraphs = [p.strip() for p in re.split(r'\n\s*\n', cleaned) if p.strip()]word_counts: list[int] = []- over_100 = 0- in_range = 0 # 40-55 words+ over_150 = 0+ over_200 = 0+ in_range = 0 # 40-80 words (ideal paragraph range)for p in paragraphs:words = len(p.split())if words < 5:continueword_counts.append(words)- if words > 100:- over_100 += 1- if 40 <= words <= 55:+ if words > 200:+ over_200 += 1+ if words > 150:+ over_150 += 1+ if 40 <= words <= 80:in_range += 1total = len(word_counts)@@ -220,7 +243,11 @@ def analyze_paragraphs(content: str) -> dict[str, Any]:return {'total_paragraphs': total,'avg_word_count': round(avg, 1),- 'over_100_words': over_100,+ 'over_150_words': over_150,+ 'over_200_words': over_200,+ # Backward-compatible aliases+ 'over_100_words': over_150,+ 'in_ideal_range': in_range,'in_40_55_range': in_range,'in_range_ratio': round(in_range_ratio, 2),'max_word_count': max(word_counts) if word_counts else 0,@@ -477,14 +504,20 @@ def analyze_sentences(text: str) -> dict[str, Any]:std_dev = (sum((l - avg) ** 2 for l in lengths) / len(lengths)) ** 0.5burstiness = std_dev / avg if avg > 0 else 0very_long = sum(1 for l in lengths if l > 40)+ over_20 = sum(1 for l in lengths if l > 20)+ over_25 = sum(1 for l in lengths if l > 25)+ total = len(lengths)return {- 'count': len(lengths),+ 'count': total,'avg_length': round(avg, 1),'max_length': max(lengths),'burstiness': round(burstiness, 2),'std_dev': round(std_dev, 1),'very_long_count': very_long,+ 'over_20_count': over_20,+ 'over_20_pct': round(over_20 / total * 100, 1) if total else 0,+ 'over_25_count': over_25,}@@ -515,6 +548,90 @@ def analyze_ai_signals(text: str, sentences_info: dict[str, Any]) -> dict[str, A}+# ---------------------------------------------------------------------------+# NEW: Passive voice estimation+# ---------------------------------------------------------------------------+++def analyze_passive_voice(text: str) -> dict[str, Any]:+ """Estimate passive voice percentage using regex heuristics."""+ sentences = re.split(r'(?<=[.!?])\s+', text)+ sentences = [s for s in sentences if len(s.split()) > 2]+ if not sentences:+ return {'passive_count': 0, 'total_sentences': 0, 'passive_pct': 0.0}++ passive_pattern = re.compile(+ r'\b(was|were|been|being|is|are|am|get|got|gets|getting)\s+'+ r'(\w+ly\s+)?' # optional adverb+ r'(\w+ed|written|spoken|taken|given|made|done|seen|known|shown|built|sent|found|held|told|left|run|set|kept|brought|thought|put)\b',+ re.IGNORECASE,+ )+ passive_count = sum(1 for s in sentences if passive_pattern.search(s))++ return {+ 'passive_count': passive_count,+ 'total_sentences': len(sentences),+ 'passive_pct': round(passive_count / len(sentences) * 100, 1),+ }+++# ---------------------------------------------------------------------------+# NEW: Transition word analysis+# ---------------------------------------------------------------------------+++def analyze_transition_words(text: str) -> dict[str, Any]:+ """Measure percentage of sentences containing transition words."""+ sentences = re.split(r'(?<=[.!?])\s+', text)+ sentences = [s for s in sentences if len(s.split()) > 2]+ if not sentences:+ return {'transition_count': 0, 'total_sentences': 0, 'transition_pct': 0.0}++ lower_sentences = [s.lower() for s in sentences]+ transition_count = 0+ for s in lower_sentences:+ for tw in TRANSITION_WORDS:+ if tw in s:+ transition_count += 1+ break # count each sentence once++ return {+ 'transition_count': transition_count,+ 'total_sentences': len(sentences),+ 'transition_pct': round(transition_count / len(sentences) * 100, 1),+ }+++# ---------------------------------------------------------------------------+# NEW: AI trigger word detection+# ---------------------------------------------------------------------------+++def analyze_ai_trigger_words(text: str) -> dict[str, Any]:+ """Count AI trigger words per 1,000 words."""+ words = text.split()+ word_count = len(words)+ if word_count == 0:+ return {'trigger_count': 0, 'per_1k': 0.0, 'found': []}++ lower_text = text.lower()+ found: list[dict[str, Any]] = []+ total = 0+ for tw in AI_TRIGGER_WORDS:+ count = len(re.findall(r'\b' + re.escape(tw) + r'\b', lower_text))+ if count > 0:+ found.append({'word': tw, 'count': count})+ total += count++ per_1k = round(total / word_count * 1000, 1)++ return {+ 'trigger_count': total,+ 'per_1k': per_1k,+ 'found': found,+ }++# ---------------------------------------------------------------------------# NEW: Schema / structured data detection (graceful degradation)# ---------------------------------------------------------------------------@@ -784,13 +901,13 @@ def calculate_score(analysis: dict[str, Any]) -> dict[str, Any]:cq = 0cq_breakdown: dict[str, Any] = {}- # Depth / comprehensiveness: 8 pts+ # Depth / comprehensiveness: 7 ptsparas = analysis['paragraphs']word_count = paras['total_word_count']content_type = _detect_content_type(analysis['frontmatter'], analysis['headings'], '')bench_min, bench_max = CONTENT_TYPE_BENCHMARKS.get(content_type, (1200, 3000))if bench_min <= word_count <= bench_max:- depth_score = 8+ depth_score = 7elif word_count >= bench_min * 0.7:depth_score = 5elif word_count >= bench_min * 0.5:@@ -806,19 +923,19 @@ def calculate_score(analysis: dict[str, Any]) -> dict[str, Any]:cq += depth_scorecq_breakdown['depth'] = depth_score- # Readability (Flesch 45-60 ideal): 6 pts+ # Readability (Flesch 60-70 ideal): 7 ptsreadability = analysis['readability']fre = readability.get('flesch_reading_ease', 50)- if 45 <= fre <= 60:- read_score = 6- elif 35 <= fre <= 70:- read_score = 4- elif 25 <= fre <= 80:- read_score = 2+ if 60 <= fre <= 70:+ read_score = 7+ elif 55 <= fre <= 75:+ read_score = 5+ elif 45 <= fre <= 80:+ read_score = 3else:read_score = 1issues.append({'category': 'content', 'severity': 'medium',- 'issue': f'Flesch reading ease ({fre}) outside ideal range (45-60)'})+ 'issue': f'Flesch reading ease ({fre}) outside acceptable range (55-75)'})cq += read_scorecq_breakdown['readability'] = read_score@@ -847,7 +964,7 @@ def calculate_score(analysis: dict[str, Any]) -> dict[str, Any]:issues.append({'category': 'content', 'severity': 'medium','issue': 'Heading hierarchy has skips (e.g., H2 to H4)'})# Section length variance: check if paragraphs are reasonably distributed- if paras['total_paragraphs'] >= 5 and paras['max_word_count'] < 150:+ if paras['total_paragraphs'] >= 5 and paras['max_word_count'] < 200:struct_score += 1cq += struct_scorecq_breakdown['structure'] = struct_score@@ -870,21 +987,48 @@ def calculate_score(analysis: dict[str, Any]) -> dict[str, Any]:cq += eng_scorecq_breakdown['engagement'] = eng_score- # Grammar / style: 3 pts+ # Grammar / anti-pattern: 3 ptssentences = analysis['sentences']+ passive = analysis.get('passive_voice', {})+ transitions = analysis.get('transition_words', {})+ ai_triggers = analysis.get('ai_trigger_words', {})gram_score = 0- if sentences['burstiness'] >= 0.4:- gram_score += 1 # Good sentence variety- if sentences['very_long_count'] == 0:+ # 1 pt: burstiness >= 0.4 AND passive voice <= 15%+ passive_pct = passive.get('passive_pct', 0)+ if sentences['burstiness'] >= 0.4 and passive_pct <= 15:gram_score += 1- else:+ if passive_pct > 15:+ issues.append({'category': 'content', 'severity': 'high',+ 'issue': f'Passive voice at {passive_pct}% — target ≤10%, max 15%'})+ elif passive_pct > 10:+ issues.append({'category': 'content', 'severity': 'low',+ 'issue': f'Passive voice at {passive_pct}% — ideal is ≤10%'})+ # 1 pt: no sentences > 40 words AND AI trigger words <= 8 per 1K+ trigger_per_1k = ai_triggers.get('per_1k', 0)+ if sentences['very_long_count'] == 0 and trigger_per_1k <= 8:+ gram_score += 1+ if sentences['very_long_count'] > 0:issues.append({'category': 'content', 'severity': 'low','issue': f'{sentences["very_long_count"]} sentences over 40 words — consider splitting'})- if sentences['count'] > 0 and 12 <= sentences['avg_length'] <= 25:+ if trigger_per_1k > 8:+ issues.append({'category': 'content', 'severity': 'high',+ 'issue': f'AI trigger words: {trigger_per_1k}/1K — target ≤5, max 8'})+ elif trigger_per_1k > 5:+ issues.append({'category': 'content', 'severity': 'medium',+ 'issue': f'AI trigger words: {trigger_per_1k}/1K — target ≤5'})+ # 1 pt: avg sentence length 12-25 AND transition words 15-35%+ transition_pct = transitions.get('transition_pct', 0)+ if sentences['count'] > 0 and 12 <= sentences['avg_length'] <= 25 and 15 <= transition_pct <= 35:gram_score += 1+ if transition_pct < 15:+ issues.append({'category': 'content', 'severity': 'medium',+ 'issue': f'Transition words at {transition_pct}% — target 20-30%'})+ elif transition_pct > 35:+ issues.append({'category': 'content', 'severity': 'medium',+ 'issue': f'Transition words at {transition_pct}% — reads formulaic, target 20-30%'})gram_score = min(gram_score, 3)cq += gram_score- cq_breakdown['grammar_style'] = gram_score+ cq_breakdown['grammar_antipattern'] = gram_scorecq = min(cq, 30)category_details['content_quality'] = {'score': cq, 'max': 30, 'breakdown': cq_breakdown}@@ -1349,6 +1493,9 @@ def analyze_file(file_path: str) -> dict[str, Any]:'readability': analyze_readability(plain_text),'sentences': sentences_info,'ai_signals': analyze_ai_signals(plain_text, sentences_info),+ 'passive_voice': analyze_passive_voice(plain_text),+ 'transition_words': analyze_transition_words(plain_text),+ 'ai_trigger_words': analyze_ai_trigger_words(plain_text),'schema': analyze_schema(content),'links': analyze_links(body),'originality': analyze_originality(body),@@ -1431,11 +1578,22 @@ def _format_markdown(result: dict[str, Any]) -> str:# Readabilityread = result.get('readability', {})+ passive = result.get('passive_voice', {})+ transitions = result.get('transition_words', {})+ ai_triggers = result.get('ai_trigger_words', {})+ sents = result.get('sentences', {})lines.append('### Readability')- lines.append(f'- Flesch Reading Ease: {read.get("flesch_reading_ease", "N/A")}')+ lines.append(f'- Flesch Reading Ease: {read.get("flesch_reading_ease", "N/A")} (target: 60-70)')if read.get('flesch_kincaid_grade'):- lines.append(f'- Flesch-Kincaid Grade: {read.get("flesch_kincaid_grade")}')+ lines.append(f'- Flesch-Kincaid Grade: {read.get("flesch_kincaid_grade")} (target: 7-8)')lines.append(f'- Reading time: {read.get("reading_time_minutes", "N/A")} minutes')+ lines.append(f'- Passive voice: {passive.get("passive_pct", "N/A")}% (target: ≤10%)')+ lines.append(f'- Transition words: {transitions.get("transition_pct", "N/A")}% (target: 20-30%)')+ lines.append(f'- AI trigger words: {ai_triggers.get("per_1k", "N/A")}/1K (target: ≤5)')+ lines.append(f'- Sentences over 20 words: {sents.get("over_20_pct", "N/A")}% (target: ≤25%)')+ if ai_triggers.get('found'):+ trigger_list = ', '.join(f'{t["word"]}({t["count"]})' for t in ai_triggers['found'][:5])+ lines.append(f'- Trigger words found: {trigger_list}')if read.get('estimated'):lines.append('- *(Estimated — install textstat for accurate metrics)*')lines.append('')diff --git a/skills/blog-analyze/SKILL.md b/skills/blog-analyze/SKILL.mdindex cea0e7e..9be6950 100644--- a/skills/blog-analyze/SKILL.md+++ b/skills/blog-analyze/SKILL.md@@ -61,12 +61,12 @@ Load `references/quality-scoring.md` for the full checklist. Score each:#### Content Quality (30 points)| Check | Points | Pass Criteria ||-------|--------|---------------|-| Depth/comprehensiveness | 8 | Covers topic thoroughly, no major gaps |-| Readability/clarity (Flesch 45-60) | 6 | Expert-accessible, clear expression |+| Depth/comprehensiveness | 7 | Covers topic thoroughly, no major gaps |+| Readability (Flesch 60-70) | 7 | Flesch 60-70 ideal, 55-75 acceptable; Grade 7-8; Gunning Fog 7-8 || Originality/unique value markers | 5 | Original data, case studies, first-hand experience |-| Logical structure | 4 | Answer-first formatting, clear progression |+| Sentence & paragraph structure | 4 | Avg sentence 15-20 words, ≤25% over 20; paragraphs 40-80 words; H2 every 200-300 words || Engagement elements | 4 | TL;DR box, callouts, varied content blocks |-| Grammar/style | 3 | Clean prose, no errors, consistent voice |+| Grammar/anti-pattern | 3 | Passive voice ≤10%, AI trigger words ≤5/1K, transition words 20-30%, clean prose |#### SEO Optimization (25 points)| Check | Points | Pass Criteria |@@ -197,7 +197,7 @@ Default output format (Markdown):### Quick Stats- Word count: [N]-- Paragraphs: [N] (X over 100 words)+- Paragraphs: [N] (X over 150 words)- H2 sections: [N] (X as questions, X with answer-first formatting)- Statistics: [N] sourced / [N] unsourced- Images: [N] (X with alt text, formats: ...)diff --git a/skills/blog-audit/SKILL.md b/skills/blog-audit/SKILL.mdindex 2ba59f7..b7a2d40 100644--- a/skills/blog-audit/SKILL.md+++ b/skills/blog-audit/SKILL.md@@ -52,7 +52,7 @@ discovered blog files:#### Content Quality Agent- Score each post on the 30-point content quality scale-- Check paragraph length (target 40-55 words, hard limit 100)+- Check paragraph length (target 40-80 words, hard limit 150)- Check sentence length (target 15-20 words)- Evaluate heading structure and question-format headings- Assess readability (Flesch Reading Ease 60-70 target)diff --git a/skills/blog-brief/SKILL.md b/skills/blog-brief/SKILL.mdindex 9236520..f8abe78 100644--- a/skills/blog-brief/SKILL.md+++ b/skills/blog-brief/SKILL.md@@ -122,7 +122,7 @@ what the searcher wants]## Content Parameters- **Word count**: [2,000-2,500] words-- **Reading level**: Flesch 45-60 (expert-accessible)+- **Reading level**: Flesch 60-70 (expert-accessible)- **Format**: [Markdown/MDX/HTML]- **H2 sections**: [6-8]- **Images**: 3-5 from Pixabay/Unsplashdiff --git a/skills/blog-rewrite/SKILL.md b/skills/blog-rewrite/SKILL.mdindex 6acfedf..021b923 100644--- a/skills/blog-rewrite/SKILL.md+++ b/skills/blog-rewrite/SKILL.md@@ -42,7 +42,7 @@ and AI citation platforms. Preserves the author's voice while applying the- Count fabricated vs sourced statistics- Check answer-first formatting (H2 -> stat in first sentence?)- Count images and charts (type diversity?)- - Measure paragraph lengths (any > 100 words?)+ - Measure paragraph lengths (any > 150 words?)- Check heading hierarchy (H1 -> H2 -> H3, no skips?)- Look for FAQ schema- Check freshness signals (lastUpdated, dateModified)@@ -142,8 +142,8 @@ Every H2 section MUST open with a 40-60 word paragraph containing:- Ensure keyword appears in 2-3 headings naturally#### 4f. Fix Paragraph Length-- Split any paragraph > 100 words-- Target 40-55 words per paragraph+- Split any paragraph > 150 words+- Target 40-80 words per paragraph- Ensure each paragraph starts with its most important sentence#### 4g. Add Visual Elements@@ -232,7 +232,7 @@ After rewriting, verify all quality gates pass:#### Core Quality Gates1. Every H2 opens with a statistic + source-2. No paragraph exceeds 100 words+2. No paragraph exceeds 150 words3. Zero fabricated statistics4. Heading hierarchy is clean5. FAQ section present with schemadiff --git a/skills/blog-write/SKILL.md b/skills/blog-write/SKILL.mdindex c728140..e9f82d5 100644--- a/skills/blog-write/SKILL.md+++ b/skills/blog-write/SKILL.md@@ -299,7 +299,7 @@ Target 5-10 internal link zones per 2,000-word post. Use descriptive anchor textanchor text rules and linking strategy.#### 5g. Paragraph Rules-- Every paragraph: 40-55 words (never exceed 100)+- Every paragraph: 40-80 words (never exceed 150)- Every sentence: max 15-20 words- Start each paragraph with the most important information- Target Flesch Reading Ease: 60-70@@ -379,7 +379,7 @@ Before delivering, verify:#### Structure and Content1. Every H2 opens with a statistic + source-2. No paragraph exceeds 100 words+2. No paragraph exceeds 150 words3. All statistics have named tier 1-3 sources4. 2-4 charts with type diversity5. 3-5 inline images with descriptive alt text