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(security): hotfix 5 issues caught by independent code review
Daniel96ef396ced2e
diff --git a/README.md b/README.mdindex f01fdc8..b8a64eb 100644--- a/README.md+++ b/README.md@@ -48,7 +48,7 @@ claude-blog is a Claude Code skill ecosystem for creating, optimizing, and manag```**Recommended: clone then verify before installing** (lets you inspect-install.sh and pin a release tag — closes audit VULN-005):+install.sh and pin a release tag, closing audit VULN-005):```bashgit clone https://github.com/AgriciDaniel/claude-blog.gitdiff --git a/install.ps1 b/install.ps1index 1883f3b..345e887 100644--- a/install.ps1+++ b/install.ps1@@ -123,7 +123,11 @@ function Main {$reqFile = Join-Path $ScriptDir "requirements.txt"if (Test-Path $reqFile) {$pipLog = Join-Path ([System.IO.Path]::GetTempPath()) "claude-blog-pip-$([System.Guid]::NewGuid().ToString('N').Substring(0,8)).log"- $pipCmd = (Get-Command python3 -ErrorAction SilentlyContinue) ?? (Get-Command python -ErrorAction SilentlyContinue)+ # Resolve python: prefer python3, fall back to python. Avoid the `??`+ # null-coalescing operator (PowerShell 7+ only) so this works on the+ # default Windows PowerShell 5.1.+ $pipCmd = Get-Command python3 -ErrorAction SilentlyContinue+ if (-not $pipCmd) { $pipCmd = Get-Command python -ErrorAction SilentlyContinue }if ($pipCmd) {$proc = Start-Process -FilePath $pipCmd.Source -ArgumentList @("-m","pip","install","--quiet","-r",$reqFile) -RedirectStandardError $pipLog -NoNewWindow -Wait -PassThruif ($proc.ExitCode -eq 0) {diff --git a/pyproject.toml b/pyproject.tomlindex 54f3e36..a1ccea8 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,3 +1,16 @@+[build-system]+# Required so `pip install -e ".[dev]"` works in CI. Without this, setuptools+# falls back to legacy and refuses with "Multiple top-level packages discovered+# in a flat-layout" because the repo root has assets/, skills/, agents/, etc.+requires = ["setuptools>=68", "wheel"]+build-backend = "setuptools.build_meta"++[tool.setuptools]+# This repo is a Claude Code skill bundle, not a Python package. Declare an+# empty distribution so the editable install gives us only the metadata+# (extras groups, etc.) without trying to import skill directories.+py-modules = []+[project]name = "claude-blog"version = "1.7.0"diff --git a/skills/blog-google/scripts/google_auth.py b/skills/blog-google/scripts/google_auth.pyindex 8ebdcb8..fba0d76 100644--- a/skills/blog-google/scripts/google_auth.py+++ b/skills/blog-google/scripts/google_auth.py@@ -54,8 +54,11 @@ def _write_secret_atomic(path: str, content: str) -> None:Uses tempfile in same dir + os.replace for atomicity (no partial writeson crash). Sets restrictive file mode before writing payload."""- os.makedirs(os.path.dirname(path), mode=0o700, exist_ok=True)- fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path), prefix=".tmp-")+ # Bare-filename safety: os.path.dirname returns "" if path has no dir+ # component. Pass that to mkstemp(dir="") and it errors with FileNotFoundError.+ parent = os.path.dirname(path) or "."+ os.makedirs(parent, mode=0o700, exist_ok=True)+ fd, tmp = tempfile.mkstemp(dir=parent, prefix=".tmp-")try:os.fchmod(fd, 0o600)with os.fdopen(fd, "w") as f:@@ -742,7 +745,17 @@ def main():services = Noneif args.scopes:services = [s.strip() for s in args.scopes.split(",") if s.strip()]- run_oauth_flow(args.creds, services=services)+ try:+ run_oauth_flow(args.creds, services=services)+ except ValueError as e:+ # _scopes_for raises ValueError for unknown service keys.+ # Surface a clean error instead of a stack trace.+ print(f"Error: {e}", file=sys.stderr)+ print(+ f"Valid scope keys: {', '.join(sorted(SCOPES.keys()))}",+ file=sys.stderr,+ )+ sys.exit(2)returnif args.exchange:diff --git a/tests/test_security_guardrails.py b/tests/test_security_guardrails.pyindex 9c14451..af1bc41 100644--- a/tests/test_security_guardrails.py+++ b/tests/test_security_guardrails.py@@ -484,15 +484,22 @@ def test_notebooklm_credential_files_contain_chmod_hardening() -> None:if not path.exists():pytest.skip(f"{label} not present at expected path")source = _read(path)- # Require at least one chmod 600 or chmod 700 call site, OR an- # explicit hardening helper definition + call.+ # Require either explicit chmod 600+700 calls OR at least one+ # call site of `_harden_perms(` (parenthesis distinguishes call from+ # mere definition; the helper is useless if defined-but-never-called).has_chmod_600 = "0o600" in sourcehas_chmod_700 = "0o700" in source- has_helper = "_harden_perms" in source- if not (has_chmod_600 and has_chmod_700) and not has_helper:+ # Count helper calls (paren after name). The `def _harden_perms(`+ # line counts as a call by this regex, so require >= 2 occurrences:+ # 1 for the def, at least 1 for an actual call.+ helper_uses = source.count("_harden_perms(")+ has_helper_call = helper_uses >= 2 # def + at least 1 call++ if not (has_chmod_600 and has_chmod_700) and not has_helper_call:missing.append(f"{label}: missing chmod 600/700 calls AND no _harden_perms "- "helper found. Add explicit chmod after every credential write."+ "call site found (def alone does not satisfy the gate). "+ "Add explicit chmod after every credential write.")assert not missing, (