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
docs: wire Phase-2 commands into command tables + refresh component counts
Agrici Danielea2e789d7c4f
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex b0709d9..f6d7215 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -10,7 +10,7 @@{"name": "claude-blog","source": "./",- "description": "AI-powered blog creation, optimization, and management with 30 sub-skills, 5 agents, FLOW framework integration, semantic topic-cluster execution, multilingual publishing, brand and discourse context auto-load, and 5-category scoring. Optimized for Google rankings and AI citations."+ "description": "AI-powered blog creation, optimization, and management with 32 sub-skills, 5 agents, FLOW framework integration, semantic topic-cluster execution, multilingual publishing, brand and discourse context auto-load, and 5-category scoring. Optimized for Google rankings and AI citations."}]}diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex bf64539..8fde749 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "claude-blog",- "description": "AI-powered blog skill suite with 30 sub-skills and 5 agents. FLOW framework integration (Find/Optimize/Win, 30 evidence-led prompts), semantic topic-cluster planning + execution, multilingual publishing (translate/localize/locale-audit), Google API integration (PageSpeed, CrUX, GSC, GA4, YouTube, NLP, Keywords), YouTube video embedding, persona-driven writing, two-tier AI slop detection, 0-4 editorial heuristics rubric, cognitive-load assessment, durable BRAND.md + VOICE.md context, API-free last-30-days discourse research, 5-dimension research quality rubric, 6-LAW synthesis contract, fact-checking, cannibalization detection, CMS taxonomy sync, NotebookLM research, Gemini TTS audio narration, 5-category scoring, and Gemini image generation. Optimized for Google rankings and AI citations (GEO/AEO).",+ "description": "AI-powered blog skill suite with 32 sub-skills and 5 agents. FLOW framework integration (Find/Optimize/Win, 30 evidence-led prompts), semantic topic-cluster planning + execution, multilingual publishing (translate/localize/locale-audit), Google API integration (PageSpeed, CrUX, GSC, GA4, YouTube, NLP, Keywords), YouTube video embedding, persona-driven writing, two-tier AI slop detection, 0-4 editorial heuristics rubric, cognitive-load assessment, durable BRAND.md + VOICE.md context, API-free last-30-days discourse research, 5-dimension research quality rubric, 6-LAW synthesis contract, fact-checking, cannibalization detection, CMS taxonomy sync, NotebookLM research, Gemini TTS audio narration, 5-category scoring, and Gemini image generation. Optimized for Google rankings and AI citations (GEO/AEO).","version": "1.9.1","author": {"name": "AgriciDaniel",diff --git a/CLAUDE.md b/CLAUDE.mdindex 22f6207..bcc40c8 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -4,7 +4,7 @@This repository contains **Claude Blog**, a Tier 4 Claude Code skill for blog contentcreation, optimization, and management. It follows the Agent Skills open standard and the-3-layer architecture (directive, orchestration, execution). 30 sub-skills, 5 specialized+3-layer architecture (directive, orchestration, execution). 32 sub-skills, 5 specializedsubagents, 12 content templates, and 21 reference docs are dual-optimized for Google rankings(December 2025 Core Update, E-E-A-T) and AI citations (GEO/AEO). Includes FLOW frameworkintegration, semantic topic-cluster planning + execution, multilingual publishing (Pro Hub@@ -34,7 +34,11 @@ claude-blog/scripts/load_untrusted_root.py # Code-enforced fence helper for BRAND/VOICE/DISCOURSE (v1.8.3)scripts/lint_prose.py # Fence-aware prose-hygiene linter (v1.8.4; CI-enforced)scripts/sync_flow.py # Pulls FLOW references (stdlib, sandboxed)- skills/ # 30 sub-skills (blog/ is the orchestrator)+ scripts/ai_citation_score.py # AI citation probability 0-100 per post (v1.10.0)+ scripts/content_decay.py # GSC content-decay detector: 20%+ QoQ decline (v1.10.0)+ scripts/quality_gate.py # Pre-commit gate: block posts scoring < 70 (v1.10.0)+ scripts/style_learn.py # Author voice-profile learner from sample posts (v1.10.0)+ skills/ # 32 sub-skills (blog/ is the orchestrator)blog/SKILL.md # Main orchestrator, routing, scoringreferences/ # 21 on-demand knowledge files (5 in v1.8.0, 1 in v1.9.0)templates/ # 12 content templates@@ -94,7 +98,7 @@ claude-blog/blog-seo.md # SEO validationblog-reviewer.md # Quality scoring (no Bash, post v1.7.0 hardening)blog-translator.md # Multilingual translation (no Bash, v1.7.0)- tests/ # pytest suite (160 tests) incl. test_blog_delivery_contract.py + test_security_guardrails.py+ tests/ # pytest suite (206 tests) incl. test_blog_delivery_contract.py + test_security_guardrails.py```## Commandsdiff --git a/README.md b/README.mdindex 4fcaf1f..9cd7d2f 100644--- a/README.md+++ b/README.md@@ -12,7 +12,7 @@<img src="https://img.shields.io/badge/License-MIT-green" alt="License: MIT"><img src="https://img.shields.io/badge/Python-3.11%2B-blue" alt="Python 3.11+"><img src="https://img.shields.io/badge/Sub--Skills-30-orange" alt="Sub-Skills">- <img src="https://img.shields.io/badge/Tests-187%20passing-brightgreen" alt="Tests: 187 passing">+ <img src="https://img.shields.io/badge/Tests-206%20passing-brightgreen" alt="Tests: 206 passing"></p><p align="center">@@ -36,7 +36,7 @@## Key takeaways-- **What it is**: a full-lifecycle blog engine: 30 sub-skills, 5 agents, 12 content templates, 21 on-demand references, 9 root-level Python scripts, 160 passing tests.+- **What it is**: a full-lifecycle blog engine: 32 sub-skills, 5 agents, 12 content templates, 21 on-demand references, 13 root-level Python scripts, 206 passing tests.- **Who it is for**: solo bloggers, marketing teams, agencies, and Claude Code skill builders who want production-grade content output, not one-shot drafts.- **Core promise**: every draft passes a 5-gate delivery contract (Capability, Format, Visual, Content Review, Asset Integrity) or the writer iterates up to 3 times before escalating to you.- **What makes it different**: it eats its own dogfood. Version-coherence is CI-enforced across 14 surfaces, prose-hygiene runs on every PR, three mutation-tested regression suites lock the v1.9.0 fixes, and `blog-reviewer` is a BLOCKING gate, not advisory.@@ -50,7 +50,7 @@ claude-blog serves three audiences with one engine:**Marketing teams and agencies** managing many posts across topics, languages, and platforms. The skill ships topic-cluster planning (`/blog cluster`), multilingual one-command publishing (`/blog multilingual`), cannibalization detection (`/blog cannibalization`), and persona-driven voice profiles (`/blog persona`) so the same engine produces consistent content across the team.-**Claude Code skill builders** who want a production-grade reference for skill architecture, agent dispatch, delivery contracts, and CI gating. The repo demonstrates the Agent Skills open standard at Tier 4 complexity with 160 tests, version-coherence enforcement, installer-sync regression tests, and the v1.9.0 5-gate contract pattern. Read the source for inspiration; fork the patterns into your own skills.+**Claude Code skill builders** who want a production-grade reference for skill architecture, agent dispatch, delivery contracts, and CI gating. The repo demonstrates the Agent Skills open standard at Tier 4 complexity with 206 tests, version-coherence enforcement, installer-sync regression tests, and the v1.9.0 5-gate contract pattern. Read the source for inspiration; fork the patterns into your own skills.## What does claude-blog produce?@@ -175,7 +175,7 @@ Restart Claude Code after installation to activate.</p><p align="center">- <img src="assets/diagrams/03-sub-skill-map-B.svg" alt="claude-blog sub-skill ecosystem: orchestrator hub at the center with 30 sub-skills organized into 8 thematic clusters (writing, strategy, quality, AI and search, multilingual, research, media, distribution); panel sizes auto-scale to skill counts" width="100%">+ <img src="assets/diagrams/03-sub-skill-map-B.svg" alt="claude-blog sub-skill ecosystem: orchestrator hub at the center with 32 sub-skills organized into 8 thematic clusters (writing, strategy, quality, AI and search, multilingual, research, media, distribution); panel sizes auto-scale to skill counts" width="100%"></p>| Command | Description |@@ -209,7 +209,7 @@ Restart Claude Code after installation to activate.| `/blog brand [init\|show\|update]` | Generate BRAND.md + VOICE.md context auto-loaded by all sub-skills || `/blog discourse <topic>` | API-free last-30-days discourse research; produces DISCOURSE.md |-> **30 sub-skill directories total**: 29 user-invokable (28 distinct slash commands + `/blog update` aliased to rewrite) + 1 internal-only (`blog-chart`, invoked by blog-write/blog-rewrite for inline SVG charts). `blog-image` is user-invokable AND callable internally.+> **32 sub-skill directories total**: 31 user-invokable (30 distinct slash commands + `/blog update` aliased to rewrite) + 1 internal-only (`blog-chart`, invoked by blog-write/blog-rewrite for inline SVG charts). `blog-image` is user-invokable AND callable internally.## How does claude-blog compare?@@ -334,17 +334,17 @@ Hero image ladder: Banana MCP, direct Gemini API, premium stock (Unsplash, Pexel<img src="assets/diagrams/01-architecture-B.svg" alt="claude-blog system architecture: left-to-right pipeline from user command through orchestrator routing, sub-skill execution, and agent dispatch to the 5-gate delivery contract before reaching the user" width="100%"></p>-claude-blog ships as one orchestrator plus 29 sub-skills, 5 agents, 21 references, 12 templates, and 9 root-level scripts. The orchestrator routes user commands to sub-skills, which spawn agents and call scripts via Bash.+claude-blog ships as one orchestrator plus 31 sub-skills, 5 agents, 21 references, 12 templates, and 13 root-level scripts. The orchestrator routes user commands to sub-skills, which spawn agents and call scripts via Bash.| Layer | Count | Where ||---|---:|---|-| Sub-skills (user-invokable) | 29 | `skills/blog-*/SKILL.md` |+| Sub-skills (user-invokable) | 31 | `skills/blog-*/SKILL.md` || Sub-skills (internal) | 1 | `skills/blog-chart/SKILL.md` || Specialized agents | 5 | `agents/blog-*.md` || On-demand references | 21 | `skills/blog/references/*.md` || Content templates | 12 | `skills/blog/templates/*.md` || Root-level Python scripts | 9 | `scripts/*.py` |-| Tests | 160 | `tests/test_*.py` |+| Tests | 206 | `tests/test_*.py` |Full directory tree, data flow diagrams, scoring methodology, and extension points: [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md).@@ -356,7 +356,7 @@ Full directory tree, data flow diagrams, scoring methodology, and extension poin### Quality gates (CI-enforced on every PR)-1. **pytest**: 160 tests across security, behavioral, regression, and delivery-contract suites.+1. **pytest**: 206 tests across security, behavioral, regression, and delivery-contract suites.2. **Plugin validation**: `claude plugin validate .` plus hand-rolled JSON/regex checks.3. **Stale-path lint**: catches drift in `references/` and `templates/` cross-references.4. **Prose hygiene**: `scripts/lint_prose.py` (fence-aware, backtick-aware) enforces the CONTRIBUTING.md no-em-dash, no-en-dash, no-` -- ` rule.@@ -373,7 +373,7 @@ claude plugin validate .## Frequently Asked Questions### What is claude-blog?-claude-blog is a Claude Code skill suite for writing, optimizing, and auditing blog content. It runs 30 sub-skills and 5 agents through a 5-gate delivery contract so that every article meets a 90/100 quality bar before it reaches you.+claude-blog is a Claude Code skill suite for writing, optimizing, and auditing blog content. It runs 32 sub-skills and 5 agents through a 5-gate delivery contract so that every article meets a 90/100 quality bar before it reaches you.### How is claude-blog different from prompting Claude or ChatGPT directly?Direct prompting gives you one draft from one prompt. claude-blog gives you a structured pipeline: research with sourced statistics, outline approval, draft generation, multi-pass quality scoring, AI-content detection, fact verification, schema injection, and a blocking review that iterates up to 3 times before delivery. The skill enforces what a senior editor would otherwise do manually.@@ -486,7 +486,7 @@ GitHub also surfaces the structured [`CITATION.cff`](CITATION.cff) file via "CitContributions welcome. See [`CONTRIBUTING.md`](CONTRIBUTING.md) for guidelines. Before opening a PR:-1. Run `python -m pytest tests/` (all 160 must pass).+1. Run `python -m pytest tests/` (all 206 must pass).2. Run `python3 scripts/lint_prose.py --root .` (zero violations).3. Run `claude plugin validate .` (must pass).4. Bump versions coherently if you touch user-visible counts or behavior (see [`docs/PUBLISHING.md`](docs/PUBLISHING.md)).diff --git a/branding/AGENT-PROMPT.md b/branding/AGENT-PROMPT.mdindex 309835d..69c902d 100644--- a/branding/AGENT-PROMPT.md+++ b/branding/AGENT-PROMPT.md@@ -60,7 +60,7 @@ STEP 2: Edit the three data tables in generate_diagrams.pyWAVES = [...] (around line 189)Keep total SUB_SKILLS count consistent with the product's advertised- surface (e.g. 29 sub-skills + 1 orchestrator = 30). The auto-sizing+ surface (e.g. 31 sub-skills + 1 orchestrator = 32). The auto-sizingin 03-sub-skill-map handles variable counts per category. FRAMEWORKmust have exactly 4 phase tuples for the radial wheel layout.diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 0a8ddd6..87dfe6e 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -50,7 +50,7 @@ data flow, scoring methodology, file conventions, and extension points.| |v v+------------------+ +------------------------+-| 5 Subagents | | 9 root-level Scripts |+| 5 Subagents | | 13 root-level Scripts || agents/*.md | | scripts/*.py || | | || blog-researcher | | analyze_blog |@@ -487,11 +487,11 @@ After installation, `claude-blog` occupies this structure inside `~/.claude/`:└── blog-translator.md # v1.7.0```-**Component counts (v1.9.0)**: 1 orchestrator + 29 sub-skills = 30 skill dirs+**Component counts (v1.9.0)**: 1 orchestrator + 31 sub-skills = 32 skill dirstotal, 5 agents (blog-researcher, blog-writer, blog-seo, blog-reviewer,blog-translator), 21 references in `skills/blog/references/` (plus per-sub-skillreferences and 30 synced FLOW prompts under `skills/blog-flow/references/`),-12 content templates, 9 root-level scripts (`scripts/analyze_blog.py`,+12 content templates, 13 root-level scripts (`scripts/analyze_blog.py`,`blog_preflight.py`, `blog_render.py`, `cognitive_load.py`,`discourse_research.py`, `generate_hero.py`, `load_untrusted_root.py`,`lint_prose.py`, `sync_flow.py`) plus per-sub-skill scripts underdiff --git a/docs/COMMANDS.md b/docs/COMMANDS.mdindex 3f8447c..e9f312e 100644--- a/docs/COMMANDS.md+++ b/docs/COMMANDS.md@@ -1,6 +1,6 @@# Command Reference-Complete reference for all 29 `/blog` slash commands (30 sub-skills total;+Complete reference for all 31 `/blog` slash commands (32 sub-skills total;`blog-chart` is internal-only, invoked from blog-write/blog-rewrite).Every command is invoked through the main orchestrator(`skills/blog/SKILL.md`), which routes to the appropriate sub-skill.@@ -48,6 +48,8 @@ Every command is invoked through the main orchestrator| `brand [init\|show\|update]` | blog-brand | Generate BRAND.md + VOICE.md context auto-loaded by all sub-skills (v1.8.0) || `discourse <topic>` | blog-discourse | API-free last-30-days discourse research; produces DISCOURSE.md (v1.8.0) || `update <file>` | blog-rewrite | Freshness update (alias for rewrite) |+| `style learn <paths>` | blog-style | Learn author voice profile from existing posts (v1.10.0) |+| `decay <current-gsc> <previous-gsc>` | blog-decay | Detect content decay: 20%+ QoQ decline from GSC exports (v1.10.0) |---diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.mdindex 78f15aa..7713a32 100644--- a/docs/INSTALLATION.md+++ b/docs/INSTALLATION.md@@ -324,8 +324,8 @@ chmod +x uninstall.shThis removes:- `~/.claude/skills/blog/` (main skill, references, templates, scripts)-- `~/.claude/skills/blog-*/` (all 29 sub-skills: write, rewrite, analyze, brief, calendar, strategy, outline, seo-check, schema, repurpose, geo, audit, chart [internal], image, cannibalization, factcheck, persona, taxonomy, notebooklm, audio, google, cluster, flow, multilingual, translate, localize, locale-audit, brand, discourse)-- `~/.claude/scripts/` (9 root-level scripts: analyze_blog, blog_preflight, blog_render, cognitive_load, discourse_research, generate_hero, load_untrusted_root, lint_prose, sync_flow)+- `~/.claude/skills/blog-*/` (all 31 sub-skills: write, rewrite, analyze, brief, calendar, strategy, outline, seo-check, schema, repurpose, geo, audit, chart [internal], image, cannibalization, factcheck, persona, taxonomy, notebooklm, audio, google, cluster, flow, multilingual, translate, localize, locale-audit, brand, discourse, style, decay)+- `~/.claude/scripts/` (13 root-level scripts: analyze_blog, blog_preflight, blog_render, cognitive_load, discourse_research, generate_hero, load_untrusted_root, lint_prose, sync_flow, ai_citation_score, content_decay, quality_gate, style_learn)- `~/.claude/agents/blog-*.md` (all 5 agents: blog-researcher, blog-writer, blog-seo, blog-reviewer, blog-translator)### Manual Uninstall@@ -338,7 +338,7 @@ rm -rf ~/.claude/skills/blog-*# All 5 agentsrm -f ~/.claude/agents/blog-{researcher,writer,seo,reviewer,translator}.md-# All 9 root-level scripts (only if no other plugin uses ~/.claude/scripts/)+# All 13 root-level scripts (only if no other plugin uses ~/.claude/scripts/)rm -f ~/.claude/scripts/{analyze_blog,blog_preflight,blog_render,cognitive_load,discourse_research,generate_hero,load_untrusted_root,lint_prose,sync_flow}.py```diff --git a/docs/PUBLISHING.md b/docs/PUBLISHING.mdindex 20aaaf5..4714049 100644--- a/docs/PUBLISHING.md+++ b/docs/PUBLISHING.md@@ -25,7 +25,7 @@ The two repos share git history. The private mirror runs ahead of public; public3. **Pre-release sanity check** (run locally before pushing to public):```bash- python3 -m pytest tests/ # all 160 tests pass+ python3 -m pytest tests/ # all 206 tests passpython3 scripts/lint_prose.py --root . # zero prose-hygiene violationsclaude plugin validate . # marketplace manifest valid```diff --git a/skills/blog-geo/SKILL.md b/skills/blog-geo/SKILL.mdindex 95c4928..c544420 100644--- a/skills/blog-geo/SKILL.md+++ b/skills/blog-geo/SKILL.md@@ -269,3 +269,15 @@ If blog-google credentials include Tier 1 (GSC) and the post has a published URL3. Check indexation: `python3 skills/blog-google/scripts/run.py gsc_inspect <url> --json`4. Report indexation status, canonical selection, mobile usability.5. Falls back silently if not configured.++### Optional: AI Citation Probability Score++For a per-engine likelihood that the post gets cited by AI answer engines (distinct+from the 15-point AI Citation Readiness category scored by `/blog analyze`), run:++```bash+python3 scripts/ai_citation_score.py <file> --format markdown+```++It returns a 0-100 overall score plus per-engine subscores for Google AI Overview,+Perplexity, and ChatGPT, a factor breakdown, and up to three highest-impact fixes.diff --git a/skills/blog/SKILL.md b/skills/blog/SKILL.mdindex b765d8e..ca56697 100644--- a/skills/blog/SKILL.md+++ b/skills/blog/SKILL.md@@ -1,7 +1,7 @@---name: blogdescription: >- Full-lifecycle blog engine with 30 sub-skills, 12 content templates, 5-category+ 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,@@ -61,6 +61,8 @@ Perplexity, Google AI Overviews, Gemini).| `/blog localize <file> --locale <code>` | Cultural deep-adaptation (DACH, FR, ES, JA, custom) || `/blog locale-audit <directory>` | Multilingual content QA (completeness, hreflang, parity, freshness) || `/blog flow [find\|optimize\|win\|prompts\|sync]` | FLOW framework prompts (evidence-led, 30 blog-applicable) |+| `/blog style learn <paths>` | Learn author voice profile from 5-10 posts (feeds blog-write and blog-persona) |+| `/blog decay <current-gsc> <previous-gsc>` | Detect content decay: flag 20%+ QoQ traffic decline from GSC exports |## Orchestration Logic@@ -305,7 +307,7 @@ Templates are in `templates/` and contain section structure, markers, and checkl| `blog-localize` | Cultural deep-adaptation per locale (DACH, FR, ES, JA, custom) (v1.7.0) || `blog-locale-audit` | Multilingual content QA (completeness, hreflang, parity, freshness) (v1.7.0) |-Total: 30 sub-skill directories on disk (29 listed above plus this orchestrator `blog/`). 28 are user-facing slash commands; `blog-chart` is internal-only and `blog-image` is also callable internally by `blog-write` and `blog-rewrite`.+Total: 32 sub-skill directories on disk (31 listed above plus this orchestrator `blog/`). 30 are user-facing slash commands; `blog-chart` is internal-only and `blog-image` is also callable internally by `blog-write` and `blog-rewrite`.## Agents