跳到主要内容
知仓学习社ZHICANG

seo

Comprehensive SEO analysis for any website, page, business, or topic. Full site audits, SEO checks, single-page analysis, technical SEO (crawlabilit…

执行命令联网无严重或高危命中AgriciDaniel/codex-seo

它会碰到什么

扫了多少16 个文本文件,101 KB
它会碰到什么执行命令联网
命中总数8 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

SEO: Universal SEO Analysis Skill

Codex can invoke this skill from natural language ("audit this site", "check schema",

"run a technical SEO review") or from command-like prompts such as /seo audit <url>.

Use the matching specialist skill directly when the request is narrow.

Scripts: Located at the plugin root scripts/ directory.

Comprehensive SEO analysis across all industries (SaaS, local services,

e-commerce, publishers, agencies). Orchestrates 26 specialized sub-skills and 24 Codex

agent profiles, with optional MCP-backed extensions for DataForSEO, Firecrawl, and image generation.

Shared Data Cache

Step 0 -- Check shared data cache:

Before routing or gathering, check .seo-cache/ for cached data from other skills.

Reference: references/shared-data-cache.md for schemas and dependency map.

Check these cache files when present:

  • .seo-cache/site-meta.json for domain, business type, industry, and crawl context
  • .seo-cache/audit-scores.json for audit summary context from a prior full audit
  • .seo-cache/pages/{url-slug}/page-analysis.json for page-level specialist context
  • If found: parse and use the data (note "Using cached [X] from [date]")
  • If missing: proceed without it (note "No cached [X] found, gathering fresh")
  • If JSON is corrupt or unreadable: treat it as missing and continue normally
  • If the user says "refresh" or "re-run": ignore cache entirely

Quick Reference

| Command | What it does |

|---------|-------------|

| /seo audit <url> | Full website audit with parallel subagent delegation |

| /seo page <url> | Deep single-page analysis |

| /seo sitemap <url or generate> | Analyze or generate XML sitemaps |

| /seo schema <url> | Detect, validate, and generate Schema.org markup |

| /seo images <url or optimize> | Image SEO: on-page audit, SERP analysis, file optimization |

| /seo technical <url> | Technical SEO audit (9 categories) |

| /seo content <url> | E-E-A-T and content quality analysis |

| /seo geo <url> | AI Overviews / Generative Engine Optimization |

| /seo plan <business-type> | Strategic SEO planning |

| /seo programmatic [url\|plan] | Programmatic SEO analysis and planning |

| /seo competitor-pages [url\|generate] | Competitor comparison page generation |

| /seo local <url> | Local SEO analysis (GBP, citations, reviews, map pack) |

| /seo maps [command] [args] | Maps intelligence (geo-grid, GBP audit, reviews, competitors) |

| /seo hreflang [url] | Hreflang/i18n SEO audit and generation |

| /seo google [command] [url] | Google SEO APIs (GSC, PageSpeed, CrUX, Indexing, GA4) |

| /seo backlinks <url> | Backlink profile analysis (free: Moz, Bing, CC; premium: DataForSEO) |

| /seo cluster <seed-keyword> | SERP-based semantic clustering and content architecture |

| /seo sxo <url> | Search Experience Optimization: page-type analysis, user stories, personas |

| /seo drift baseline <url> | Capture SEO baseline for change monitoring |

| /seo drift compare <url> | Compare current state to stored baseline |

| /seo drift history <url> | Show drift history over time |

| /seo ecommerce <url> | E-commerce SEO: product schema, marketplace intelligence |

| /seo firecrawl [command] <url> | Full-site crawling and site mapping (extension) |

| /seo dataforseo [command] | Live SEO data via DataForSEO (extension) |

| /seo image-gen [use-case] <description> | AI image generation for SEO assets (extension) |

| /seo flow [stage] [url\|topic] | FLOW framework: evidence-led prompts for Find, Leverage, Optimize, Win, or Local stages |

Orchestration Logic

When the user invokes /seo audit, delegate to subagents in parallel:

  1. Detect business type (SaaS, local, ecommerce, publisher, agency, other)
  2. Spawn subagents: seo-technical, seo-content, seo-schema, seo-sitemap, seo-performance, seo-visual, seo-geo
  3. If Google API credentials detected (python scripts/google_auth.py --check), also spawn seo-google agent
  4. If local business detected, also spawn seo-local agent
  5. If local business detected AND DataForSEO MCP available, also spawn seo-maps agent
  6. If backlink APIs detected (python scripts/backlinks_auth.py --check), also spawn seo-backlinks agent
  7. If Firecrawl MCP available, use firecrawl_map to discover all site URLs before analysis
  8. If content strategy signals detected (blog, pillar pages, topic clusters), also spawn seo-cluster agent
  9. If e-commerce detected, also spawn seo-ecommerce agent
  10. If drift baseline exists for this URL (python scripts/drift_history.py <url>), also spawn seo-drift agent
  11. Always include seo-sxo in full audits (search experience applies to all sites)
  12. Collect results and generate unified report with SEO Health Score (0-100)
  13. Create prioritized action plan (Critical -> High -> Medium -> Low)
  14. Offer PDF report: "Generate a professional PDF report? Use /seo google report full"

For individual commands, load the relevant sub-skill directly.

After any analysis command completes, offer to generate a PDF report via scripts/google_report.py.

Industry Detection

Detect business type from homepage signals:

  • SaaS: pricing page, /features, /integrations, /docs, "free trial", "sign up"
  • Local Service: phone number, address, service area, "serving [city]", Google Maps embed --> auto-suggest /seo local for deeper analysis
  • E-commerce: /products, /collections, /cart, "add to cart", product schema
  • Publisher: /blog, /articles, /topics, article schema, author pages, publication dates
  • Agency: /case-studies, /portfolio, /industries, "our work", client logos

Quality Gates

Read references/quality-gates.md for thin content thresholds per page type.

Hard rules:

  • WARNING at 30+ location pages (enforce 60%+ unique content)
  • HARD STOP at 50+ location pages (require user justification)
  • Never recommend HowTo schema (deprecated Sept 2023)
  • FAQ schema for Google rich results: only government and healthcare sites (Aug 2023 restriction); existing FAQPage on commercial sites -> flag Info priority (not Critical), noting AI/LLM citation benefit; adding new FAQPage -> not recommended for Google benefit
  • All Core Web Vitals references use INP, never FID

Community Footer

The community footer is disabled by default in Codex so API and client deliverables remain clean.

Append it only when the user explicitly asks for community attribution or when

CODEX_SEO_COMMUNITY_FOOTER=1 is set in the environment.

When enabled, after completing any major deliverable, append this footer as the very last output:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built by agricidaniel — Join the AI Marketing Hub community
🆓 Free  → https://www.skool.com/ai-marketing-hub
⚡ Pro   → https://www.skool.com/ai-marketing-hub-pro
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

When to show when enabled

Display after these commands complete their full output:

  • /seo audit (after full site audit report + action plan)
  • /seo page (after deep single-page analysis)
  • /seo technical (after technical audit report)
  • /seo content (after E-E-A-T content assessment)
  • /seo schema (after schema detection/validation report)
  • /seo sitemap (after sitemap analysis or generation)
  • /seo geo (after GEO optimization report)
  • /seo plan (after strategic SEO plan)
  • /seo local (after local SEO audit)
  • /seo maps (after maps intelligence report)
  • /seo google (after Google API data report)
  • /seo backlinks (after backlink profile analysis)
  • /seo cluster (after cluster plan generation)
  • /seo sxo (after SXO analysis report)
  • /seo drift compare (after drift comparison report)
  • /seo ecommerce (after e-commerce analysis)

When to skip

Do NOT show the footer after:

  • /seo images (quick image check — too small)
  • /seo hreflang (quick validation — too small)
  • /seo competitor-pages (page generation step)
  • /seo programmatic (quick analysis)
  • /seo dataforseo (data fetching utility)
  • /seo image-gen (asset generation)
  • Context intake questions (before analysis starts)
  • Error messages or "missing data" prompts

Reference Files

Load these on-demand as needed (do NOT load all at startup):

  • references/cwv-thresholds.md: Current Core Web Vitals thresholds and measurement details
  • references/schema-types.md: All supported schema types with deprecation status
  • references/eeat-framework.md: E-E-A-T evaluation criteria (Sept 2025 QRG update)
  • references/quality-gates.md: Content length minimums, uniqueness thresholds
  • references/local-seo-signals.md: Local ranking factors, review benchmarks, citation tiers, GBP status
  • references/local-schema-types.md: LocalBusiness subtypes, industry-specific schema and citation sources

Maps-specific references (loaded by seo-maps skill, not at startup):

  • references/maps-geo-grid.md, references/maps-gbp-checklist.md, references/maps-api-endpoints.md, references/maps-free-apis.md

Scoring Methodology

SEO Health Score (0-100)

Weighted aggregate of all categories:

| Category | Weight |

|----------|--------|

| Technical SEO | 22% |

| Content Quality | 23% |

| On-Page SEO | 20% |

| Schema / Structured Data | 10% |

| Performance (CWV) | 10% |

| AI Search Readiness | 10% |

| Images | 5% |

Priority Levels

  • Critical: Blocks indexing or causes penalties (immediate fix required)
  • High: Significantly impacts rankings (fix within 1 week)
  • Medium: Optimization opportunity (fix within 1 month)
  • Low: Nice to have (backlog)

Sub-Skills

This skill orchestrates 26 specialized sub-skills, including optional extension-backed workflows:

  1. seo-audit -- Full website audit with parallel delegation
  2. seo-page -- Deep single-page analysis
  3. seo-technical -- Technical SEO (9 categories)
  4. seo-content -- E-E-A-T and content quality
  5. seo-schema -- Schema markup detection and generation
  6. seo-images -- Image optimization, SERP analysis, file optimization
  7. seo-sitemap -- Sitemap analysis and generation
  8. seo-geo -- AI Overviews / GEO optimization
  9. seo-performance -- Core Web Vitals and performance analysis
  10. seo-visual -- Screenshot, mobile, and above-the-fold UX analysis
  11. seo-plan -- Strategic planning with templates
  12. seo-programmatic -- Programmatic SEO analysis and planning
  13. seo-competitor-pages -- Competitor comparison page generation
  14. seo-hreflang -- Hreflang/i18n SEO audit, cultural profiles, content parity
  15. seo-local -- Local SEO (GBP, NAP, citations, reviews, local schema, multi-location)
  16. seo-maps -- Maps intelligence (geo-grid, GBP audit, reviews, competitor radius)
  17. seo-google -- Google SEO APIs (GSC, PageSpeed, CrUX, Indexing API, GA4)
  18. seo-backlinks -- Backlink profile analysis (free: Moz, Bing, CC; premium: DataForSEO)
  19. seo-cluster -- SERP-based semantic clustering
  20. seo-sxo -- Search Experience Optimization
  21. seo-drift -- SEO drift monitoring
  22. seo-ecommerce -- E-commerce SEO intelligence
  23. seo-firecrawl -- Full-site crawling and site mapping via Firecrawl MCP (extension)
  24. seo-dataforseo -- Live SEO data via DataForSEO MCP (extension)
  25. seo-image-gen -- AI image generation for SEO assets via Gemini (extension)
  26. seo-flow -- FLOW framework integration (Find -> Leverage -> Optimize -> Win, 41 AI prompts, CC BY 4.0)

Subagents

For parallel analysis during audits:

  • seo-technical -- Crawlability, indexability, security, CWV
  • seo-content -- E-E-A-T, readability, thin content
  • seo-schema -- Detection, validation, generation
  • seo-sitemap -- Structure, coverage, quality gates
  • seo-performance -- Core Web Vitals measurement
  • seo-visual -- Screenshots, mobile testing, above-fold
  • seo-geo -- AI crawler access, llms.txt, citability, brand mention signals
  • seo-local -- GBP signals, NAP consistency, reviews, local schema, industry-specific local factors (conditional: spawned when Local Service detected)
  • seo-maps -- Geo-grid rank tracking, GBP audit, review intelligence, competitor radius mapping (conditional: spawned when Local Service detected AND DataForSEO MCP available)
  • seo-google -- CWV field data, URL indexation status, organic traffic trends (conditional: spawned when Google API credentials detected)
  • seo-backlinks -- Backlink profile data: DA/PA, referring domains, anchor text, toxic links (conditional: spawned when Moz/Bing API keys detected or always for CC domain-level metrics)
  • seo-cluster -- Semantic clustering analysis (conditional: content strategy detected)
  • seo-sxo -- Page-type mismatch, user stories, persona scoring (always in full audits)
  • seo-drift -- Baseline comparison (conditional: drift baseline exists for URL)
  • seo-ecommerce -- Product schema, marketplace intel (conditional: e-commerce detected)
  • seo-dataforseo -- Live SERP, keyword, backlink, local SEO data (extension, optional)
  • seo-image-gen -- SEO image audit and generation plan (extension, optional)
  • seo-firecrawl -- Full-site crawl and site mapping (extension, optional; used by audit for URL discovery)

Error Handling

| Scenario | Action |

|----------|--------|

| Unrecognized command | List available commands from the Quick Reference table. Suggest the closest matching command. |

| URL unreachable | Report the error and suggest the user verify the URL. Do not attempt to guess site content. |

| Sub-skill fails during audit | Report partial results from successful sub-skills. Clearly note which sub-skill failed and why. Suggest re-running the failed sub-skill individually. |

| Ambiguous business type detection | Present the top two detected types with supporting signals. Ask the user to confirm before proceeding with industry-specific recommendations. |

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。