AgriciDaniel/claude-blog / skills/blog-google
blog-google
VerifiedCredentialed Google API calls for a blog: PageSpeed Insights, CrUX history, Search Console performance and URL Inspection, GA4 organic traffic, Cloud NLP entities, YouTube video search, Google Ads Keyword Planner, and the Indexing API (job and livestream pages only). Uses the user's Google credentials, quotas, and sometimes billing, and asks for consent before the first call. Runs only on an explicit request: /blog google, "run PageSpeed on this blog URL", "pull my Search Console data", "inspect this URL's index status", "set up Google API credentials". Shares config with claude-seo at ~/.config/claude-seo/google-api.json.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 19.2 KB |
| assets/templates/cwv-audit-report.md | markdown | 1.6 KB |
| assets/templates/gsc-performance-report.md | markdown | 1.2 KB |
| assets/templates/indexation-status-report.md | markdown | 1.1 KB |
| references/api-reference.md | markdown | 9.3 KB |
| references/auth-setup.md | markdown | 7.1 KB |
| references/rate-limits-quotas.md | markdown | 4.6 KB |
| references/search-currentness.md | markdown | 12.5 KB |
| scripts/__init__.py | script | 0 B |
| scripts/crux_history.py | script | 11.0 KB |
| scripts/ga4_report.py | script | 17.0 KB |
| scripts/google_auth.py | script | 42.0 KB |
| scripts/google_report.py | script | 37.4 KB |
| scripts/gsc_inspect.py | script | 19.3 KB |
| scripts/gsc_query.py | script | 15.6 KB |
| scripts/indexing_notify.py | script | 15.1 KB |
| scripts/keyword_planner.py | script | 12.0 KB |
| scripts/nlp_analyze.py | script | 19.3 KB |
| scripts/pagespeed_check.py | script | 23.0 KB |
| scripts/requirements.lock | other | 103.0 KB |
| scripts/requirements.txt | manifest | 909 B |
| scripts/run.py | script | 4.2 KB |
| scripts/runtime_paths.py | script | 2.6 KB |
| scripts/setup_environment.py | script | 7.0 KB |
| scripts/youtube_search.py | script | 14.6 KB |
scripts/runtime_paths.py
View on GitHub"""Read-only runtime path policy, shipped identically with each integration.
CLAUDE_BLOG_RUNTIME_DIR is an explicit trusted absolute operator/host path.
No override means the original skill-local .venv/data layout. Resolution never
creates directories, expands shell expressions or migrates existing state.
"""
import os
from pathlib import Path
import re
from typing import NamedTuple
class RuntimePaths(NamedTuple):
root: Path
venv: Path
data: Path
def validate_absolute_override(raw: str, path_type=Path):
"""Validate native Path semantics, including Windows drive/UNC anchors."""
if not raw or raw != raw.strip() or "\x00" in raw:
raise ValueError("CLAUDE_BLOG_RUNTIME_DIR must be a nonempty absolute path")
if "$" in raw or re.search(r"%[^%]+%", raw) or raw.startswith("~"):
raise ValueError("CLAUDE_BLOG_RUNTIME_DIR must be resolved, without shell or host placeholders")
path = path_type(raw)
if not path.is_absolute() or ".." in path.parts:
raise ValueError("CLAUDE_BLOG_RUNTIME_DIR must be absolute, without parent traversal")
return path
def confined_directory(root: Path, *parts: str) -> Path:
"""Refuse linked managed directories and paths outside the selected root."""
root = root.resolve()
path = root
for part in parts:
path = path / part
if path.is_symlink():
raise ValueError("runtime directory must not be a symlink")
try:
path.resolve().relative_to(root)
except ValueError as exc:
raise ValueError("runtime directory escapes its selected root") from exc
if path.exists() and not path.is_dir():
raise ValueError("runtime directory must be a directory")
return path
def resolve_runtime_paths(skill_dir: Path, integration: str) -> RuntimePaths:
"""Return consistent venv/data roots without any filesystem mutation."""
if integration not in ("blog-audio", "blog-google", "blog-notebooklm"):
raise ValueError("unknown runtime integration")
skill_dir = Path(skill_dir)
if not skill_dir.is_absolute():
raise ValueError("trusted installed skill path must be absolute")
raw = os.environ.get("CLAUDE_BLOG_RUNTIME_DIR")
if raw is None:
root = skill_dir.resolve()
else:
selected = validate_absolute_override(raw).resolve()
if selected.exists() and not selected.is_dir():
raise ValueError("CLAUDE_BLOG_RUNTIME_DIR must be a directory")
root = confined_directory(selected, integration)
return RuntimePaths(root, confined_directory(root, ".venv"), confined_directory(root, "data"))
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |