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
release(v1.9.1): security hardening pass
Danielc383f0631199
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 6855b8c..bf64539 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"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).",- "version": "1.9.0",+ "version": "1.9.1","author": {"name": "AgriciDaniel","url": "https://github.com/AgriciDaniel"diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fac19d2..d44d6ad 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,9 +7,62 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]-### Changed+_No unreleased changes._++## [1.9.1] - 2026-05-18++### Security hardening pass (11 commits)++A comprehensive 8-agent cybersecurity audit (OWASP Top 10:2021, CWE Top 25:2024, MITRE ATT&CK) ran on 2026-05-18 against the v1.9.0 surface. Score: 90/100 (Exceptional band). This release closes every HIGH and MEDIUM finding from the audit.++**Added**++- `scripts/generate_hero.py`: SSRF guard with scheme allowlist (`http`, `https`), private/loopback/link-local/ULA refuse via `ipaddress`, 25 MB response cap, no-redirect opener. New module constants `ALLOWED_SCHEMES`, `MAX_IMAGE_BYTES`. Closes **VULN-801** (HIGH) and the **CHAIN-801** AWS-IMDS-via-og:image attack path.+- `scripts/blog_preflight.py`: code-enforced per-draft iteration counter at `<draft>/.iteration-count` with `MAX_ITERATIONS = 3`. Exit code 2 = cap exceeded. New CLI flag `--reset-iterations`. Closes **VULN-802** (HIGH); was previously orchestrator-prose-only.+- `scripts/blog_preflight.py`: nonce-bound `review.md` provenance. `_init_review_nonce(draft)` writes a `secrets.token_hex(16)` value to `<draft>/.review-nonce`; Gate 4 verifies `review.md` contains a matching `Nonce:` line. Backwards-compat soft-pass with deprecation warning when nonce file absent (v1.10.0 will make mandatory). New CLI flag `--init-review-nonce`. Closes **VULN-803** (MEDIUM, agent provenance) and **CHAIN-802** (counterfeit reviewer pass).+- `uv.lock`: 142-package hash-pinned dependency lock generated by `uv 0.10.2`. Reproducible-install path documented in `docs/INSTALLATION.md`. Closes **VULN-401** (HIGH) supply-chain non-determinism.+- `scripts/blog_preflight.py`: `_PreflightNoRedirectHandler` + `_PREFLIGHT_NO_REDIRECT_OPENER` for Gate 5 link checks. `_http_head` now refuses non-http(s) schemes inline and refuses to follow 30x redirects. Closes **VULN-804** (MEDIUM) and **VULN-002** (LOW).+- `agents/blog-reviewer.md`: new "Nonce-bound provenance (v1.9.1)" section and `Nonce: <32-hex>` line in the Output Format template.+- `tests/`: 27 new test cases across `test_generate_hero_ssrf.py` (9), `test_iteration_counter.py` (6), `test_review_nonce.py` (8), `test_preflight_http_head_no_redirect.py` (3), and 1 new case in `test_load_untrusted_root.py`. Total suite: **187 tests** (up from 160).+- README "Verify installer integrity" section publishing SHA-256 hashes for `install.sh` and `install.ps1`. Closes **VULN-IAC-001** (MEDIUM).++**Changed**-- Refreshed brand kit: new animated banner (`assets/banner.svg`) and 5 SVG diagrams under `assets/diagrams/` replacing the purple-era artwork. Same visual system as claude-ads and claude-seo. Old `branding/` assets kept for reference; regenerator at `branding/scripts/generate_diagrams.py`.+- `pyproject.toml`: tightened upper bounds for `weasyprint` (`>=60.2,<65` was `>=60,<70`), `google-genai` (`>=1.0.0` was `>=0.5.0`), `sentence-transformers` (`>=4.0.0,<5.0.0` was `>=2.5.0,<5.0.0`). Bumped `setuptools` build-floor to `>=70.0.0` to close CVE-2024-6345 (RCE in `package_index`). Closes **VULN-404 / VULN-405 / VULN-406 / VULN-411**.+- `skills/blog-google/scripts/google_auth.py`: OAuth `client_secret` no longer stored in `oauth-token.json`. `_exchange_code` and `_refresh_oauth_token` strip `client_secret` from the token blob on save. `get_oauth_credentials` re-reads `client_secret` from `config["oauth_client_path"]` on token construction. Backwards-compat fallback to legacy token-file `client_secret` if `oauth_client_path` is unset (will be removed in v1.10.0). Closes **AUTH-001** (MEDIUM).+- `skills/blog-image/scripts/setup_image_mcp.py`: API-key echo in `--project` setup is masked via new `_mask_api_key` helper (`AIza****WXYZ` style). Closes **VULN-S01** (LOW).+- `install.sh`: defense-in-depth `skill_name` regex validation (`^[a-z0-9-]+$`) before `mkdir`/`cp` so a tampered repo with `..`-style directory names cannot escape the install target. Closes **VULN-IAC-003** (LOW).+- Branding kit refreshed earlier in 2026-05-18: new animated banner (`assets/banner.svg`) and 5 SVG architecture diagrams under `assets/diagrams/` replacing the purple-era artwork. Same visual system as claude-ads and claude-seo. Regenerator at `branding/scripts/generate_diagrams.py`.+- `tests/test_load_untrusted_root.py`: new `test_cli_refuses_path_traversal_attempts` locks in the basename-allowlist behavior for traversal-style inputs. Closes **AUTH-003** (INFO).+- `docs/INSTALLATION.md`: new "Reproducible install via uv" subsection covering `uv sync --frozen` and lock-file regeneration.++**Audit findings closed by this release**++| ID | Severity | Status |+|---|---|---|+| VULN-801 / CHAIN-801 | HIGH (CRITICAL on cloud) | Closed (SSRF guard + IMDS refuse) |+| VULN-802 | HIGH | Closed (code-enforced counter) |+| VULN-803 / CHAIN-802 | MEDIUM | Closed (nonce-bound provenance) |+| VULN-401 | HIGH | Closed (`uv.lock` hash-pinned) |+| VULN-804 / VULN-002 | MEDIUM / LOW | Closed (no-redirect + scheme check) |+| VULN-404 / 405 / 406 / 411 | MEDIUM x3 + INFO | Closed (dep bound tightening) |+| AUTH-001 | MEDIUM | Closed (OAuth secret split) |+| VULN-S01 | LOW | Closed (API key echo mask) |+| VULN-IAC-003 | LOW | Closed (`skill_name` regex) |+| AUTH-003 | INFO | Closed (traversal test locked in) |+| VULN-IAC-001 | MEDIUM | Closed (SHA-256 published) |++Not in scope (acceptable as-is): **AUTH-002** (PKCE). Installed-app OAuth flow with explicit `client_secret.json` does not require PKCE; CSPRNG state + fixed loopback redirect cover the CSRF case.++**Quality gates final state**++- Tests: 160 → **187** (+27 new tests, all targeted at the fixes)+- Prose-hygiene violations: 0+- Plugin manifest: valid+- Version coherence: all 14 surfaces at `1.9.1` (4 canonical + 10 sub-skill SKILL.md)+- Dependency lock file: present (`uv.lock`, 142 packages, SHA-256 pinned)++**Projected security score after this release:** ~95/100 security composite, ~94/100 overall (security 30%, privacy 20%, data 15%, references 15%, files 20%). Up from 87 / 90 in the pre-fix audit.## [1.9.0] - 2026-05-18diff --git a/CITATION.cff b/CITATION.cffindex a0e96d0..3208a7a 100644--- a/CITATION.cff+++ b/CITATION.cff@@ -11,7 +11,7 @@ authors:repository-code: "https://github.com/AgriciDaniel/claude-blog"url: "https://claude-blog.md"license: MIT-version: 1.9.0+version: 1.9.1date-released: "2026-05-18"keywords:- claude-codediff --git a/pyproject.toml b/pyproject.tomlindex f24ed46..089c61b 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -15,7 +15,7 @@ py-modules = [][project]name = "claude-blog"-version = "1.9.0"+version = "1.9.1"description = "AI-powered blog creation and optimization skill for Claude Code"readme = "README.md"license = {text = "MIT"}diff --git a/skills/blog-audio/SKILL.md b/skills/blog-audio/SKILL.mdindex 0b99941..390c9af 100644--- a/skills/blog-audio/SKILL.md+++ b/skills/blog-audio/SKILL.md@@ -14,7 +14,7 @@ argument-hint: "[generate|voices|setup] [file-or-text] [--mode summary|full|diallicense: MITmetadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"---# Blog Audio: Gemini TTS Narration for Blog Postsdiff --git a/skills/blog-cluster/SKILL.md b/skills/blog-cluster/SKILL.mdindex e9c1bd8..6eb9e4e 100644--- a/skills/blog-cluster/SKILL.md+++ b/skills/blog-cluster/SKILL.md@@ -15,7 +15,7 @@ license: MITcompatibility: Requires Claude Code and claude-blog (provides blog-write, blog-chart, blog-image)metadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"category: bloguser-invokable: trueargument-hint: "[plan|execute] [seed-keyword|cluster-plan.json]"diff --git a/skills/blog-flow/SKILL.md b/skills/blog-flow/SKILL.mdindex bfba198..86a67ea 100644--- a/skills/blog-flow/SKILL.md+++ b/skills/blog-flow/SKILL.md@@ -12,7 +12,7 @@ license: MITcompatibility: Requires Claude Code and Python 3.11+ for the sync scriptmetadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"category: blog---diff --git a/skills/blog-google/SKILL.md b/skills/blog-google/SKILL.mdindex f7bfd0e..59e27af 100644--- a/skills/blog-google/SKILL.md+++ b/skills/blog-google/SKILL.md@@ -15,7 +15,7 @@ argument-hint: "[setup|pagespeed|crux|crux-history|gsc|inspect|index|ga4|nlp|youlicense: MITmetadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"category: blog---diff --git a/skills/blog-image/SKILL.md b/skills/blog-image/SKILL.mdindex dc1ea4d..f4f2cd4 100644--- a/skills/blog-image/SKILL.md+++ b/skills/blog-image/SKILL.md@@ -17,7 +17,7 @@ argument-hint: "[generate|edit|setup] [description-or-path]"license: MITmetadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"mcp-package: "@ycse/nanobanana-mcp"---diff --git a/skills/blog-locale-audit/SKILL.md b/skills/blog-locale-audit/SKILL.mdindex f2b6fc2..d968245 100644--- a/skills/blog-locale-audit/SKILL.md+++ b/skills/blog-locale-audit/SKILL.md@@ -14,7 +14,7 @@ license: MITcompatibility: Standalone within claude-blog. Optional richer hreflang validation via claude-seo seo-hreflang.metadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"category: blog---diff --git a/skills/blog-localize/SKILL.md b/skills/blog-localize/SKILL.mdindex d1f7904..a955b9b 100644--- a/skills/blog-localize/SKILL.md+++ b/skills/blog-localize/SKILL.md@@ -19,7 +19,7 @@ license: MITcompatibility: Standalone within claude-blog. Invoked by blog-multilingual.metadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"category: blog---diff --git a/skills/blog-multilingual/SKILL.md b/skills/blog-multilingual/SKILL.mdindex 8fc867f..7dd8709 100644--- a/skills/blog-multilingual/SKILL.md+++ b/skills/blog-multilingual/SKILL.md@@ -15,7 +15,7 @@ license: MITcompatibility: Requires claude-blog (blog-write). Optional integration with claude-seo (seo-hreflang) for richer hreflang validation.metadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"category: blog---diff --git a/skills/blog-notebooklm/SKILL.md b/skills/blog-notebooklm/SKILL.mdindex dfda6c2..403b247 100644--- a/skills/blog-notebooklm/SKILL.md+++ b/skills/blog-notebooklm/SKILL.md@@ -14,7 +14,7 @@ argument-hint: "[ask|discover|library|setup|status|cleanup] [question-or-url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"source: "https://github.com/PleasePrompto/notebooklm-skill"---diff --git a/skills/blog-translate/SKILL.md b/skills/blog-translate/SKILL.mdindex 0599947..513bc7f 100644--- a/skills/blog-translate/SKILL.md+++ b/skills/blog-translate/SKILL.md@@ -18,7 +18,7 @@ license: MITcompatibility: Standalone within claude-blog. Invoked by blog-multilingual.metadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"category: blog---diff --git a/skills/blog/SKILL.md b/skills/blog/SKILL.mdindex 7d0eb3f..b765d8e 100644--- a/skills/blog/SKILL.md+++ b/skills/blog/SKILL.md@@ -16,7 +16,7 @@ license: MITcompatibility: Requires Claude Code and Python 3.11+ for quality scoringmetadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.1"user-invokable: trueargument-hint: "[write|rewrite|analyze|brief|calendar|cannibalization|strategy|outline|seo-check|schema|repurpose|geo|image|audit|factcheck|persona|brand|discourse|taxonomy|notebooklm|audio|google|update|cluster|multilingual|translate|localize|locale-audit|flow] [topic-or-file]"---