Skip to content

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.

fix(install): PowerShell 5.1 compat + uninstall.sh agent glob + cred purge

Danielde8611d9cb39
diff --git a/install.ps1 b/install.ps1
index 345e887..8ab3126 100644
--- a/install.ps1
+++ b/install.ps1
@@ -21,12 +21,12 @@ function Main {
"@
- $SkillDir = Join-Path $env:USERPROFILE ".claude" "skills"
- $AgentDir = Join-Path $env:USERPROFILE ".claude" "agents"
+ $SkillDir = Join-Path (Join-Path $env:USERPROFILE ".claude") "skills"
+ $AgentDir = Join-Path (Join-Path $env:USERPROFILE ".claude") "agents"
$TempDir = $null
# Determine source directory (local clone or piped from irm)
- if ($MyInvocation.MyCommand.Path -and (Test-Path (Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) "skills" "blog"))) {
+ if ($MyInvocation.MyCommand.Path -and (Test-Path (Join-Path (Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) "skills") "blog"))) {
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
} else {
Write-Color White "Cloning claude-blog..."
@@ -48,23 +48,23 @@ function Main {
# Create directories
Write-Color White "Creating directories..."
- New-Item -ItemType Directory -Force -Path (Join-Path $SkillDir "blog" "references") | Out-Null
- New-Item -ItemType Directory -Force -Path (Join-Path $SkillDir "blog" "templates") | Out-Null
- New-Item -ItemType Directory -Force -Path (Join-Path $SkillDir "blog" "scripts") | Out-Null
+ New-Item -ItemType Directory -Force -Path (Join-Path (Join-Path $SkillDir "blog") "references") | Out-Null
+ New-Item -ItemType Directory -Force -Path (Join-Path (Join-Path $SkillDir "blog") "templates") | Out-Null
+ New-Item -ItemType Directory -Force -Path (Join-Path (Join-Path $SkillDir "blog") "scripts") | Out-Null
New-Item -ItemType Directory -Force -Path $AgentDir | Out-Null
# Copy main skill
Write-Color White "Installing main skill: blog..."
- Copy-Item (Join-Path $ScriptDir "skills" "blog" "SKILL.md") (Join-Path $SkillDir "blog" "SKILL.md") -Force
+ Copy-Item (Join-Path (Join-Path (Join-Path $ScriptDir "skills") "blog") "SKILL.md") (Join-Path (Join-Path $SkillDir "blog") "SKILL.md") -Force
# Copy references
Write-Color White "Installing reference files..."
- Copy-Item (Join-Path $ScriptDir "skills" "blog" "references" "*.md") (Join-Path $SkillDir "blog" "references") -Force
+ Copy-Item (Join-Path (Join-Path (Join-Path (Join-Path $ScriptDir "skills") "blog") "references") "*.md") (Join-Path (Join-Path $SkillDir "blog") "references") -Force
# Copy templates
- if (Test-Path (Join-Path $ScriptDir "skills" "blog" "templates")) {
+ if (Test-Path (Join-Path (Join-Path (Join-Path $ScriptDir "skills") "blog") "templates")) {
Write-Color White "Installing content templates..."
- Copy-Item (Join-Path $ScriptDir "skills" "blog" "templates" "*.md") (Join-Path $SkillDir "blog" "templates") -Force
+ Copy-Item (Join-Path (Join-Path (Join-Path (Join-Path $ScriptDir "skills") "blog") "templates") "*.md") (Join-Path (Join-Path $SkillDir "blog") "templates") -Force
}
# Copy sub-skills (auto-discovers all skill directories)
@@ -104,18 +104,18 @@ function Main {
}
# Create personas directory for blog-persona
- New-Item -ItemType Directory -Force -Path (Join-Path $SkillDir "blog" "references" "personas") | Out-Null
+ New-Item -ItemType Directory -Force -Path (Join-Path (Join-Path (Join-Path $SkillDir "blog") "references") "personas") | Out-Null
# Copy agents
Write-Color White "Installing agents..."
- Get-ChildItem -File (Join-Path $ScriptDir "agents" "*.md") | ForEach-Object {
+ Get-ChildItem -File (Join-Path (Join-Path $ScriptDir "agents") "*.md") | ForEach-Object {
Copy-Item $_.FullName (Join-Path $AgentDir $_.Name) -Force
Write-Color Green " + $($_.BaseName)"
}
# Copy scripts
Write-Color White "Installing scripts..."
- Copy-Item (Join-Path $ScriptDir "scripts" "analyze_blog.py") (Join-Path $SkillDir "blog" "scripts" "analyze_blog.py") -Force
+ Copy-Item (Join-Path (Join-Path $ScriptDir "scripts") "analyze_blog.py") (Join-Path (Join-Path (Join-Path $SkillDir "blog") "scripts") "analyze_blog.py") -Force
# Install Python dependencies (closes audit VULN-507/804: capture stderr
# to a logfile instead of swallowing it).
@@ -159,9 +159,9 @@ function Main {
Write-Color White "Installed:"
Write-Color Green " Main skill: blog/ (orchestrator + 14 references + 12 templates)"
- Write-Color Green " Sub-skills: 22 (21 commands + 1 internal)"
- Write-Color Green " Agents: 4 specialists"
- Write-Color Green " Scripts: analyze_blog.py"
+ Write-Color Green " Sub-skills: 28 (27 commands + 1 internal blog-chart)"
+ Write-Color Green " Agents: 5 specialists"
+ Write-Color Green " Scripts: analyze_blog.py + per-skill scripts"
Write-Color White ""
Write-Color White "Commands available:"
Write-Color Cyan " /blog write <topic> Write a new blog post"
diff --git a/install.sh b/install.sh
index 85a864e..52788e3 100755
--- a/install.sh
+++ b/install.sh
@@ -127,10 +127,10 @@ main() {
echo " ╚══════════════════════════════════════╝"
echo ""
echo " Installed:"
- echo " Main skill: blog/ (orchestrator + references + templates)"
- echo " Sub-skills: 20 (19 commands + 1 internal)"
- echo " Agents: 4 specialists"
- echo " Scripts: analyze_blog.py"
+ echo " Main skill: blog/ (orchestrator + 14 references + 12 templates)"
+ echo " Sub-skills: 28 (27 commands + 1 internal blog-chart)"
+ echo " Agents: 5 specialists"
+ echo " Scripts: analyze_blog.py + per-skill scripts"
echo ""
echo " Commands available:"
echo " /blog write <topic> Write a new blog post"
diff --git a/uninstall.ps1 b/uninstall.ps1
index c255e11..6be7c41 100644
--- a/uninstall.ps1
+++ b/uninstall.ps1
@@ -9,8 +9,8 @@ function Write-Color($Color, $Text) {
}
function Main {
- $SkillDir = Join-Path $env:USERPROFILE ".claude" "skills"
- $AgentDir = Join-Path $env:USERPROFILE ".claude" "agents"
+ $SkillDir = Join-Path (Join-Path $env:USERPROFILE ".claude") "skills"
+ $AgentDir = Join-Path (Join-Path $env:USERPROFILE ".claude") "agents"
Write-Color Cyan "=== Uninstalling claude-blog ==="
Write-Host ""
@@ -47,8 +47,8 @@ function Main {
# to VULN-805 in cybersec audit: cookies/tokens left behind post-uninstall
# is a meaningful exposure window).
$credPaths = @(
- (Join-Path $env:USERPROFILE ".config" "claude-seo" "oauth-token.json"),
- (Join-Path $env:USERPROFILE ".config" "claude-seo" "google-api.json")
+ (Join-Path (Join-Path (Join-Path $env:USERPROFILE ".config") "claude-seo") "oauth-token.json"),
+ (Join-Path (Join-Path (Join-Path $env:USERPROFILE ".config") "claude-seo") "google-api.json")
)
foreach ($credPath in $credPaths) {
if (Test-Path $credPath) {
diff --git a/uninstall.sh b/uninstall.sh
index ab42953..78bc94a 100755
--- a/uninstall.sh
+++ b/uninstall.sh
@@ -25,11 +25,27 @@ main() {
fi
done
- # Remove agents
- for agent in blog-researcher blog-writer blog-seo blog-reviewer; do
- if [ -f "${AGENT_DIR}/${agent}.md" ]; then
- rm -f "${AGENT_DIR}/${agent}.md"
- echo " Removed: ${AGENT_DIR}/${agent}.md"
+ # Remove agents via glob (closes meta-audit follow-up: prior static list
+ # missed blog-translator added in v1.7.0; mirror the install.ps1 pattern).
+ if [ -d "${AGENT_DIR}" ]; then
+ for agent_file in "${AGENT_DIR}"/blog-*.md; do
+ if [ -f "${agent_file}" ]; then
+ rm -f "${agent_file}"
+ echo " Removed: ${agent_file}"
+ fi
+ done
+ fi
+
+ # Purge credential artifacts (mirrors uninstall.ps1 audit fix VULN-805
+ # follow-up: cookies/tokens left behind post-uninstall is a meaningful
+ # exposure window).
+ for cred_path in \
+ "${HOME}/.config/claude-seo/oauth-token.json" \
+ "${HOME}/.config/claude-seo/google-api.json"
+ do
+ if [ -f "${cred_path}" ]; then
+ rm -f "${cred_path}"
+ echo " Removed credential: ${cred_path}"
fi
done