Skip to content

Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.

fix: v1.7.1 - installer path fix, CI coverage, version bump

Danield91eb834ff43
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index 8d31326..a06ff97 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "claude-seo",
- "version": "1.7.0",
+ "version": "1.7.1",
"description": "Comprehensive SEO analysis skill for Claude Code. Covers technical SEO, content quality (E-E-A-T), schema markup, image optimization, sitemap architecture, AI search optimization (GEO), local SEO (GBP, citations, reviews, map pack), maps intelligence, and strategic planning across all industries.",
"author": {
"name": "AgriciDaniel",
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 85f5cd0..072776a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,4 +24,15 @@ jobs:
python3 -m py_compile scripts/parse_html.py
python3 -m py_compile scripts/analyze_visual.py
python3 -m py_compile scripts/capture_screenshot.py
- echo "All scripts passed syntax check"
+ python3 -m py_compile scripts/google_auth.py
+ python3 -m py_compile scripts/pagespeed_check.py
+ python3 -m py_compile scripts/crux_history.py
+ python3 -m py_compile scripts/gsc_query.py
+ python3 -m py_compile scripts/gsc_inspect.py
+ python3 -m py_compile scripts/indexing_notify.py
+ python3 -m py_compile scripts/ga4_report.py
+ python3 -m py_compile scripts/google_report.py
+ python3 -m py_compile scripts/youtube_search.py
+ python3 -m py_compile scripts/nlp_analyze.py
+ python3 -m py_compile scripts/keyword_planner.py
+ echo "All 15 scripts passed syntax check"
diff --git a/.gitignore b/.gitignore
index 42c8b75..bb2e0f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -111,5 +111,9 @@ dirigo-seo-images-review.html
# Site-specific scripts
indexnow-submit.sh
+# Generated setup guides
+Google-API-Setup-Guide-*.html
+scripts/generate_setup_guide.py
+
# Generated site builds
site/
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 95409a6..1ae49b3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [1.7.1] - 2026-03-30
+
+### Fixed
+- install.sh: broken skill copy path `seo/` corrected to `skills/seo/` (h/t @hieu-e via #39)
+- install.sh: version tag pinned to v1.7.1 (was stuck at v1.6.0)
+- install.ps1: version tag pinned to v1.7.1 (was stuck at v1.6.0)
+- install.ps1: removed unnecessary `seo/` fallback path, uses `skills\seo` directly
+
+### Changed
+- CI: syntax check expanded from 4 to 15 Python scripts (all v1.7.0 Google API scripts now covered)
+
## [1.7.0] - 2026-03-28
### Added
diff --git a/CLAUDE.md b/CLAUDE.md
index 8c80245..043efe8 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -39,7 +39,7 @@ claude-seo/
seo-hreflang/SKILL.md # International SEO / hreflang
seo-google/ # Google SEO APIs
SKILL.md
- references/ # API reference files (7 files)
+ references/ # API reference files (10 files)
seo-dataforseo/SKILL.md # Live SEO data via DataForSEO MCP
seo-image-gen/ # AI image generation for SEO assets
SKILL.md
@@ -59,7 +59,23 @@ claude-seo/
seo-image-gen.md # SEO image audit analyst
hooks/ # Quality gate hooks
hooks.json # PostToolUse schema validation
- scripts/ # Python execution scripts
+ scripts/ # Python execution scripts (16 total)
+ google_auth.py # Credential management (OAuth, SA, API key, 4-tier detection)
+ pagespeed_check.py # PSI v5 + CrUX API
+ crux_history.py # CrUX History API (25-week trends)
+ gsc_query.py # Search Console (queries, pages, sitemaps, sites)
+ gsc_inspect.py # URL Inspection (single + batch)
+ indexing_notify.py # Indexing API v3 (URL_UPDATED/URL_DELETED)
+ ga4_report.py # GA4 organic traffic reports
+ google_report.py # PDF/HTML report generator (WeasyPrint + matplotlib)
+ youtube_search.py # YouTube Data API v3
+ nlp_analyze.py # Cloud Natural Language API
+ keyword_planner.py # Google Ads Keyword Planner
+ fetch_page.py # Page fetcher with UA rotation
+ parse_html.py # HTML parser for SEO elements
+ capture_screenshot.py # Playwright screenshots
+ analyze_visual.py # Visual analysis helper
+ mobile_analysis.py # Mobile rendering analysis (gitignored, dev-only)
schema/ # Schema.org JSON-LD templates
extensions/ # Optional add-on install helpers
dataforseo/ # DataForSEO MCP install scripts
@@ -98,6 +114,14 @@ claude-seo/
- Python dependencies install into `~/.claude/skills/seo/.venv/`
- Test with `python -m pytest tests/` after changes (if applicable)
+## Security Rules
+
+- **Never commit credentials**: `.env`, `client_secret*.json`, `oauth-token.json`, `service_account*.json` are all in `.gitignore`
+- **URL validation**: All scripts that accept user URLs must call `validate_url()` from `google_auth.py` before making API calls. This blocks private IPs, loopback, and GCP metadata endpoints (SSRF protection).
+- **OAuth tokens**: Never store `client_secret` in the token file. Read it from the client_secret.json file at runtime.
+- **No hardcoded paths**: Use `os.path.dirname(os.path.abspath(__file__))` for relative paths, never `/home/username/...`
+- **Config location**: `~/.config/claude-seo/google-api.json` (user-space, not in repo)
+
## Report Generation Rules
- **All SEO reports must use `scripts/google_report.py`** as the canonical report generator
diff --git a/install.ps1 b/install.ps1
index 948da9b..9b1cc0d 100644
--- a/install.ps1
+++ b/install.ps1
@@ -87,7 +87,7 @@ $AgentDir = "$env:USERPROFILE\.claude\agents"
$RepoUrl = "https://github.com/AgriciDaniel/claude-seo"
# Pin to a specific release tag to prevent silent updates from main.
# Override: $env:CLAUDE_SEO_TAG = 'main'; .\install.ps1
-$RepoTag = if ($env:CLAUDE_SEO_TAG) { $env:CLAUDE_SEO_TAG } else { 'v1.6.0' }
+$RepoTag = if ($env:CLAUDE_SEO_TAG) { $env:CLAUDE_SEO_TAG } else { 'v1.7.1' }
# Create directories
New-Item -ItemType Directory -Force -Path $SkillDir | Out-Null
@@ -110,10 +110,7 @@ try {
# Copy skill files
Write-Host "=> Installing skill files..." -ForegroundColor Yellow
- $skillSource = Join-Path $TempDir 'seo'
- if (-not (Test-Path $skillSource)) {
- $skillSource = Join-Path $TempDir 'skills\seo'
- }
+ $skillSource = Join-Path $TempDir 'skills\seo'
if (-not (Test-Path $skillSource)) {
throw "Could not find skill source folder in repo clone."
}
diff --git a/install.sh b/install.sh
index 257ef24..f520888 100755
--- a/install.sh
+++ b/install.sh
@@ -10,7 +10,7 @@ main() {
REPO_URL="https://github.com/AgriciDaniel/claude-seo"
# Pin to a specific release tag to prevent silent updates from main.
# Override: CLAUDE_SEO_TAG=main bash install.sh
- REPO_TAG="${CLAUDE_SEO_TAG:-v1.6.0}"
+ REPO_TAG="${CLAUDE_SEO_TAG:-v1.7.1}"
echo "════════════════════════════════════════"
echo "║ Claude SEO - Installer ║"
@@ -44,7 +44,7 @@ main() {
# Copy skill files
echo "→ Installing skill files..."
- cp -r "${TEMP_DIR}/claude-seo/seo/"* "${SKILL_DIR}/"
+ cp -r "${TEMP_DIR}/claude-seo/skills/seo/"* "${SKILL_DIR}/"
# Copy sub-skills
if [ -d "${TEMP_DIR}/claude-seo/skills" ]; then