Skip to content

balsm-health/website / .claude/skills/seo

Comprehensive 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.

FileKindSize
LICENSE.txtmarkdown143 B
SKILL.mdskill md16.9 KB
bin/claude-seoexecutablescript1.5 KB
extensions/banana/references/cost-tracking.mdmarkdown1.2 KB
extensions/banana/references/gemini-models.mdmarkdown5.8 KB
extensions/banana/references/mcp-tools.mdmarkdown3.7 KB
extensions/banana/references/post-processing.mdmarkdown5.1 KB
extensions/banana/references/presets.mdmarkdown2.2 KB
extensions/banana/references/prompt-engineering.mdmarkdown20.9 KB
extensions/banana/references/seo-image-presets.mdmarkdown4.0 KB
extensions/banana/scripts/batch.pyexecutablescript3.3 KB
extensions/banana/scripts/cost_tracker.pyexecutablescript7.2 KB
extensions/banana/scripts/edit.pyexecutablescript5.6 KB
extensions/banana/scripts/generate.pyexecutablescript6.4 KB
extensions/banana/scripts/presets.pyexecutablescript4.9 KB
extensions/banana/scripts/setup_mcp.pyexecutablescript4.5 KB
extensions/banana/scripts/validate_setup.pyexecutablescript3.8 KB
hooks/hooks.jsonconfig416 B
hooks/run-python-hook.jsscript1.7 KB
hooks/validate-schema.pyexecutablescript5.9 KB
pdf/google-seo-reference.mdmarkdown8.0 KB
references/backlink-quality.mdmarkdown3.4 KB
references/cwv-thresholds.mdmarkdown6.9 KB
references/eeat-framework.mdmarkdown8.1 KB
references/free-backlink-sources.mdmarkdown5.6 KB
references/local-schema-types.mdmarkdown9.2 KB
references/local-seo-signals.mdmarkdown9.6 KB
references/maps-api-endpoints.mdmarkdown5.9 KB
references/maps-free-apis.mdmarkdown6.0 KB
references/maps-gbp-checklist.mdmarkdown5.9 KB
references/maps-geo-grid.mdmarkdown4.3 KB
references/quality-gates.mdmarkdown5.1 KB
references/schema-types.mdmarkdown7.8 KB
references/thinking-framework.mdmarkdown9.3 KB
requirements.txtmanifest1.5 KB
runtime-plugin.jsonconfig1.5 KB
schema/templates.jsonconfig9.4 KB
scripts/agent_ux_check.pyscript8.2 KB
scripts/analyze_visual.pyexecutablescript7.2 KB
scripts/backlinks_auth.pyscript16.1 KB
scripts/bing_webmaster.pyscript21.8 KB
scripts/capture_screenshot.pyexecutablescript6.4 KB
scripts/commoncrawl_graph.pyscript15.6 KB
scripts/consistency_check.pyscript12.5 KB
scripts/content_humanize.pyscript7.2 KB
scripts/content_quality.pyscript9.7 KB
scripts/content_verify.pyscript7.1 KB
scripts/crux_history.pyscript10.7 KB
scripts/dataforseo_costs.pyscript15.8 KB
scripts/dataforseo_merchant.pyexecutablescript16.7 KB
scripts/dataforseo_normalize.pyexecutablescript14.7 KB
scripts/domain_history.pyscript9.6 KB
scripts/drift_baseline.pyscript13.5 KB
scripts/drift_compare.pyscript22.3 KB
scripts/drift_history.pyscript3.4 KB
scripts/drift_report.pyscript11.0 KB
scripts/fetch_page.pyexecutablescript9.4 KB
scripts/ga4_report.pyscript16.8 KB
scripts/gbp_deprecation_lint.pyexecutablescript4.7 KB
scripts/google_auth.pyscript31.0 KB
scripts/google_report.pyscript97.6 KB
scripts/gsc_inspect.pyscript11.0 KB
scripts/gsc_query.pyscript18.6 KB
scripts/indexing_notify.pyscript10.3 KB
scripts/indexnow_submit.pyscript8.8 KB
scripts/iptc_ai_label.pyscript7.6 KB
scripts/keyword_planner.pyscript10.8 KB
scripts/lcp_subparts.pyscript7.2 KB
scripts/moz_api.pyscript14.7 KB
scripts/nlp_analyze.pyscript12.1 KB
scripts/pagespeed_check.pyscript22.9 KB
scripts/parasite_risk.pyexecutablescript8.6 KB
scripts/parse_html.pyexecutablescript8.8 KB
scripts/portability_check.pyscript7.8 KB
scripts/preload_check.pyscript8.1 KB
scripts/release_sign.pyscript5.6 KB
scripts/render_page.pyscript20.9 KB
scripts/runtime.pyexecutablescript15.1 KB
scripts/schema_ecommerce_validate.pyscript11.8 KB
scripts/schema_generate.pyscript12.0 KB
scripts/seo_updates.pyscript4.8 KB
scripts/sitemap_discovery.pyscript10.0 KB
scripts/sync_flow.pyscript11.9 KB
scripts/ucp_check.pyscript8.4 KB
scripts/unlighthouse_run.pyscript5.6 KB
scripts/url_safety.pyscript22.0 KB
scripts/validate_backlink_report.pyscript11.7 KB
scripts/verify_backlinks.pyscript12.9 KB
scripts/verify_release.pyscript4.8 KB
scripts/youtube_search.pyscript12.3 KB

scripts/portability_check.py

View on GitHub
#!/usr/bin/env python3
"""
Cross-platform portability lint for SKILL.md files.

claude-seo skills run under Claude Code, but also Cursor / Cursor Cloud
Agents / Google Antigravity / Gemini CLI / OpenAI Codex CLI / Cline /
Aider. Most harnesses share a minimum frontmatter contract:

  - ``name``        (string, kebab-case, < 64 chars)
  - ``description`` (string, < 1024 chars, ends with a period or noun phrase)

Claude-Code-specific fields are tolerated by other harnesses (they are
ignored, not rejected):

  - ``model``        (e.g. sonnet, haiku, opus)
  - ``maxTurns``     (int)
  - ``tools``        (comma-separated list with optional inline comments)
  - ``compatibility`` (free text, e.g. "Requires the @ahrefs/mcp MCP server")
  - ``metadata``     (a dict; metadata.version is read by the consistency tests)

The check walks every ``SKILL.md`` under ``skills/`` and ``extensions/``
and reports portability findings. Severity:

  - ``error``: a harness will outright reject the file (missing required
              field, malformed YAML, name not kebab-case).
  - ``warning``: the file works but loses information in a non-Claude
              harness (e.g. tools list with inline comments may be
              parsed differently).
  - ``info``: noteworthy but harmless (e.g. very long description).

Exit code 0 if no errors; 1 otherwise. Warnings + info do not fail the
build but are surfaced in the report.

Usage::

    python scripts/portability_check.py
    python scripts/portability_check.py --json
    python scripts/portability_check.py --strict   # warnings also fail
"""

from __future__ import annotations

import argparse
import json
import re
import sys
from pathlib import Path


REPO_ROOT = Path(__file__).resolve().parents[1]


_NAME_RE = re.compile(r"^[a-z][a-z0-9-]{1,62}[a-z0-9]$")
_FRONTMATTER_RE = re.compile(r"^---\n(.*?)\n---", re.DOTALL)


def _find_skill_files() -> list[Path]:
    """Every SKILL.md under skills/ and extensions/."""
    paths: list[Path] = []
    for root in ("skills", "extensions"):
        base = REPO_ROOT / root
        if not base.is_dir():
            continue
        paths.extend(base.rglob("SKILL.md"))
    return sorted(paths)


def _parse_frontmatter(text: str) -> dict[str, str] | None:
    """Light YAML-ish parser. Doesn't require PyYAML — we accept the
    documented subset (scalar string values, no nested mappings except
    for the metadata: block which we treat as opaque)."""
    m = _FRONTMATTER_RE.match(text)
    if not m:
        return None

    body = m.group(1)
    fields: dict[str, str] = {}
    in_metadata = False
    metadata_buf: list[str] = []
    for line in body.splitlines():
        if not line.strip():
            continue
        if line.startswith(" ") or line.startswith("\t"):
            if in_metadata:
                metadata_buf.append(line)
            continue
        if ":" not in line:
            continue
        key, _, value = line.partition(":")
        key = key.strip()
        value = value.strip()
        if key == "metadata":
            in_metadata = True
            metadata_buf = []
            fields["metadata"] = ""  # placeholder; we fill below
        else:
            in_metadata = False
            fields[key] = value.strip("'\"")

    if metadata_buf:
        fields["metadata"] = "\n".join(metadata_buf).strip()

    return fields


def check_one(path: Path) -> list[dict]:
    findings: list[dict] = []
    try:
        relpath = str(path.relative_to(REPO_ROOT))
    except ValueError:
        # Path is outside the repo (e.g. unit tests use tmp_path).
        relpath = str(path)
    try:
        text = path.read_text(encoding="utf-8")
    except OSError as exc:
        findings.append({
            "severity": "error", "path": relpath,
            "rule": "io-error", "message": f"cannot read: {exc}",
        })
        return findings

    frontmatter = _parse_frontmatter(text)
    if frontmatter is None:
        findings.append({
            "severity": "error", "path": relpath,
            "rule": "no-frontmatter",
            "message": "SKILL.md must open with a YAML --- block",
        })
        return findings

    name = frontmatter.get("name", "").strip()
    if not name:
        findings.append({
            "severity": "error", "path": relpath,
            "rule": "missing-name",
            "message": "frontmatter must declare a 'name'",
        })
    elif not _NAME_RE.match(name):
        findings.append({
            "severity": "error", "path": relpath,
            "rule": "name-not-kebab-case",
            "message": f"name {name!r} must be kebab-case "
                       "(lowercase, hyphens, no leading/trailing dash)",
        })

    description = frontmatter.get("description", "").strip()
    if not description:
        findings.append({
            "severity": "error", "path": relpath,
            "rule": "missing-description",
            "message": "frontmatter must declare a 'description'",
        })
    elif len(description) > 1024:
        findings.append({
            "severity": "warning", "path": relpath,
            "rule": "long-description",
            "message": f"description is {len(description)} chars "
                       "(Codex truncates above 1024; Cursor truncates "
                       "above 2048)",
        })

    # tools is optional. If present, Cline and Codex parse the list more
    # strictly than Claude Code — warn if there are inline comments
    # (e.g., "Read, Bash # for analyse").
    tools = frontmatter.get("tools", "")
    if tools and "#" in tools:
        findings.append({
            "severity": "warning", "path": relpath,
            "rule": "tools-has-inline-comment",
            "message": "Cline + Codex may include the comment in the "
                       "tool name. Move comments below the frontmatter.",
        })

    # metadata.version is referenced by the consistency tests but is
    # purely informational for non-Claude harnesses.
    if frontmatter.get("metadata", ""):
        if 'version' not in frontmatter["metadata"]:
            findings.append({
                "severity": "info", "path": relpath,
                "rule": "metadata-without-version",
                "message": "metadata block present but no version field; "
                           "claude-seo's manifest test expects "
                           "metadata.version on every skill",
            })

    return findings


def main() -> int:
    parser = argparse.ArgumentParser(
        description="Cross-platform portability lint for claude-seo SKILL.md files."
    )
    parser.add_argument("--json", action="store_true")
    parser.add_argument("--strict", action="store_true",
                        help="Treat warnings as errors (exit 1).")
    args = parser.parse_args()

    paths = _find_skill_files()
    all_findings: list[dict] = []
    for path in paths:
        all_findings.extend(check_one(path))

    error_count = sum(1 for f in all_findings if f["severity"] == "error")
    warning_count = sum(1 for f in all_findings if f["severity"] == "warning")
    info_count = sum(1 for f in all_findings if f["severity"] == "info")

    if args.json:
        json.dump({
            "skills_checked": len(paths),
            "errors": error_count,
            "warnings": warning_count,
            "info": info_count,
            "findings": all_findings,
        }, sys.stdout, indent=2)
        sys.stdout.write("\n")
    else:
        print(f"Portability lint: {len(paths)} SKILL.md files checked")
        print(f"  errors:   {error_count}")
        print(f"  warnings: {warning_count}")
        print(f"  info:     {info_count}")
        for f in all_findings:
            print(f"  [{f['severity']:<8}] {f['path']} :: {f['rule']}")
            print(f"           {f['message']}")

    fail = error_count > 0 or (args.strict and warning_count > 0)
    return 1 if fail else 0


if __name__ == "__main__":
    sys.exit(main())
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall