balsm-health/website / .claude/skills/seo
seo
FlaggedComprehensive SEO analysis for any website or business type. Full site audits, single-page analysis, technical SEO (crawlability, indexability, Core Web Vitals with INP), schema markup, content quality (E-E-A-T), image optimization, sitemap analysis, and GEO for AI Overviews/ChatGPT/Perplexity. Industry detection for SaaS, e-commerce, local, publishers, agencies. Triggers on: SEO, audit, schema, Core Web Vitals, sitemap, E-E-A-T, AI Overviews, GEO, technical SEO, content quality, page speed.
extensions/banana/scripts/validate_setup.py
View on GitHub#!/usr/bin/env python3
"""
Validate that the Claude Banana MCP server is properly configured.
Checks:
1. Claude Code settings.json has the MCP entry
2. API key is present
3. Node.js/npx is available
4. Output directory exists or can be created
Usage:
python3 validate_setup.py
"""
import argparse
import json
import shutil
import sys
from pathlib import Path
SETTINGS_PATH = Path.home() / ".claude" / "settings.json"
MCP_NAME = "nanobanana-mcp"
OUTPUT_DIR = Path.home() / "Documents" / "nanobanana_generated"
def check(label: str, passed: bool, detail: str = "") -> bool:
status = "PASS" if passed else "FAIL"
msg = f" [{status}] {label}"
if detail:
msg += f": {detail}"
print(msg)
return passed
def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(
description="Validate the Claude Banana MCP server setup."
)
return parser.parse_args()
def main() -> int:
parse_args()
print("Claude Banana - Setup Validation")
print("=" * 40)
results = []
# 1. Settings file exists
results.append(check(
"Claude Code settings.json exists",
SETTINGS_PATH.exists(),
str(SETTINGS_PATH),
))
if not SETTINGS_PATH.exists():
print("\nCannot continue without settings.json.")
return 1
# 2. Load and parse settings
try:
with open(SETTINGS_PATH) as f:
settings = json.load(f)
results.append(check("settings.json is valid JSON", True))
except json.JSONDecodeError as e:
results.append(check("settings.json is valid JSON", False, str(e)))
return 1
# 3. MCP entry exists
servers = settings.get("mcpServers", {})
has_mcp = MCP_NAME in servers
results.append(check(f"MCP server '{MCP_NAME}' configured", has_mcp))
if has_mcp:
mcp = servers[MCP_NAME]
# 4. Command is npx
results.append(check(
"Command is 'npx'",
mcp.get("command") == "npx",
mcp.get("command", "(missing)"),
))
# 5. Package is correct
args = mcp.get("args", [])
has_pkg = "@ycse/nanobanana-mcp" in args
results.append(check(
"Package is @ycse/nanobanana-mcp",
has_pkg,
str(args),
))
# 6. API key present
env = mcp.get("env", {})
key = env.get("GOOGLE_AI_API_KEY", "")
results.append(check(
"GOOGLE_AI_API_KEY is set",
bool(key),
f"{key[:8]}...{key[-4:]}" if len(key) > 12 else "(empty or short)",
))
# 7. Model configured
model = env.get("NANOBANANA_MODEL", "")
results.append(check(
"NANOBANANA_MODEL is set",
bool(model),
model or "(not set, will use package default)",
))
# 8. Node.js/npx available
has_npx = shutil.which("npx") is not None
results.append(check(
"npx is available in PATH",
has_npx,
shutil.which("npx") or "not found",
))
# 9. Output directory
if OUTPUT_DIR.exists():
results.append(check("Output directory exists", True, str(OUTPUT_DIR)))
else:
try:
OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
results.append(check("Output directory created", True, str(OUTPUT_DIR)))
except OSError as e:
results.append(check("Output directory writable", False, str(e)))
# Summary
passed = sum(1 for r in results if r)
total = len(results)
print(f"\n{'=' * 40}")
print(f"Results: {passed}/{total} checks passed")
if passed == total:
print("Status: Ready to generate images!")
return 0
else:
print("Status: Some checks failed. Fix the issues above.")
return 1
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |