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(costs): correct LLM mentions price and report env credentials in check
Agrici Daniel02ae3fa8e648
diff --git a/scripts/dataforseo_costs.py b/scripts/dataforseo_costs.pyindex 59963f5..9d62690 100644--- a/scripts/dataforseo_costs.py+++ b/scripts/dataforseo_costs.py@@ -107,7 +107,9 @@ COST_TABLE = {"business_data_business_listings_search": 0.05,# AI / GEO"ai_optimization_chat_gpt_scraper": 0.05,- "ai_opt_llm_ment_search": 0.05,+ # The official response example for /v3/ai_optimization/llm_mentions/search/live+ # reports cost 0.103 (checked 2026-09-23); the old 0.05 understated it.+ "ai_opt_llm_ment_search": 0.103,"ai_opt_llm_ment_top_domains": 0.05,"ai_opt_llm_ment_top_pages": 0.05,"ai_opt_llm_ment_agg_metrics": 0.05,@@ -307,6 +309,10 @@ def cmd_estimate(args):json.dump(result, sys.stdout, indent=2)+def _credentials_in_env():+ return bool(os.environ.get("DATAFORSEO_USERNAME") and os.environ.get("DATAFORSEO_PASSWORD"))++def cmd_check(args):"""Check if an API call should proceed (cost + approval logic)."""cfg = _load_config()@@ -366,6 +372,11 @@ def cmd_check(args):"total_cost_usd": round(total, 4),"today_spend_usd": round(today_total, 4),"daily_remaining_usd": round(daily_limit - today_total, 4),+ # Budget approval says nothing about whether the call can run. Scripts+ # read these env vars; the MCP server keeps its own copy in its config,+ # which this script cannot see, so False means "not found here", not+ # "the call will fail".+ "credentials_in_env": _credentials_in_env(),}if needs_approval:result["approval_reason"] = approval_reasondiff --git a/tests/test_dataforseo_costs.py b/tests/test_dataforseo_costs.pyindex faec5c7..1e7d549 100644--- a/tests/test_dataforseo_costs.py+++ b/tests/test_dataforseo_costs.py@@ -169,3 +169,16 @@ def test_isolated_config_dir_is_honoured(tmp_path) -> None:"""Tests must never write to the operator's real ledger."""_run(tmp_path, "log", "on_page_lighthouse", "0.02")assert (tmp_path / "dataforseo-ledger.json").exists()+++def test_check_reports_whether_credentials_are_in_env(tmp_path, monkeypatch):+ import subprocess, sys, json, os+ from pathlib import Path+ script = Path(__file__).resolve().parents[1] / "scripts" / "dataforseo_costs.py"+ env = {k: v for k, v in os.environ.items() if not k.startswith("DATAFORSEO_")}+ env["CLAUDE_SEO_CONFIG_DIR"] = str(tmp_path)+ run = lambda e: json.loads(subprocess.run(+ [sys.executable, str(script), "check", "serp_organic_live_advanced"],+ capture_output=True, text=True, env=e, check=True).stdout)+ assert run(env)["credentials_in_env"] is False+ assert run({**env, "DATAFORSEO_USERNAME": "u", "DATAFORSEO_PASSWORD": "p"})["credentials_in_env"] is True