Phiên bản
Ngôn ngữ

description: "Reference reference guide for content strategy matrices and schemas" version: "1.0"

SEO Strategy Reference — Scripts, Weights & Output Contract

Internal reference for /seo-strategy workflow. This file contains the detailed script commands, weight tables, and output schemas. The main workflow file (seo-strategy.md) references this — do NOT duplicate content.


Strategy Data Collection Scripts

Run these scripts sequentially. All output JSON to {PROJECT_DIR}/data/.

# 1. Content Coverage (25%)
python .agents/scripts/run_plugin_script.py seo-content-gap content_gap_analyzer.py <domain> \
  --competitors comp1,comp2 --json --output-file data/content_gap-{date}.json

# 2. Topical Authority (20%)
python .agents/scripts/run_plugin_script.py seo-topical-authority topical_authority_analyzer.py <domain> \
  --json --output-file data/topical_authority-{date}.json

# 3. Entity Readiness (10%)
python .agents/scripts/run_plugin_script.py seo-entity entity_extractor.py <url> --json --output-file data/entity-{date}.json

# 4. Backlink Opportunity (15%) — null score without data provider
python .agents/scripts/run_plugin_script.py seo-backlink backlink_analyzer.py <domain> \
  --competitors comp1,comp2 --json --output-file data/backlink-{date}.json

# 5. Information Gain (15%) — uses competitors from project.json
python .agents/scripts/run_plugin_script.py seo-information-gain information_gain_analyzer.py \
  analyze <url> --competitors comp1,comp2 --json --output-file data/information_gain-{date}.json

# 6. AI Answer Readiness (10%)
python .agents/scripts/run_plugin_script.py seo-answer answer_analyzer.py <url> --json --output-file data/answer-{date}.json

# 7. Agentic Readiness (5%)
python .agents/scripts/run_plugin_script.py seo-answer agentic_checker.py <url> --json --output-file data/agentic-{date}.json

Synthesizer (after all scripts)

# Windows PowerShell safe encoding pipe:
python .agents/scripts/run_plugin_script.py seo-core strategy_synthesizer.py {PROJECT_DIR}/data/ \
  --goal <goal> --industry <industry> --json | Out-File -Encoding utf8 data/strategy-{date}.json

Delta tracking (if previous strategy exists):

python .agents/scripts/run_plugin_script.py seo-core strategy_synthesizer.py {PROJECT_DIR}/data/ \
  --compare {PROJECT_DIR}/data/strategy-{prev_date}.json --json | Out-File -Encoding utf8 data/strategy-delta-{date}.json

Weight Table

CategoryScriptBase Weight
Content Coveragecontent_gap_analyzer.py25%
Topical Authoritytopical_authority_analyzer.py20%
Backlink Opportunitybacklink_analyzer.py15%
Information Gaininformation_gain_analyzer.py15%
Entity Readinessentity_extractor.py10%
AI Answer Readinessanswer_analyzer.py10%
Agentic Readinessagentic_checker.py5%

If any category is unavailable → weights auto-redistribute proportionally.

Goal & Industry Adjustments

FlagEffect
--goal trafficContent 30%, Topical 25%
--goal leadsContent 20%, Entity 15%
--goal ai_visibilityAI Answer 20%, Agentic 10%, IG 20%
--industry saasTopical 25%, Content 20%
--industry ecommerceBacklink 20%, Content 20%
--industry publisherContent 30%, IG 20%

Strategy Score Output Schema

{
  "domain": "example.com",
  "strategy_score": 62,
  "timestamp": "2026-05-14T...",
  "category_scores": {
    "content_coverage": {"score": 55, "weight": 0.25, "source_file": "..."},
    "topical_authority": {"score": 70, "weight": 0.20, "source_file": "..."}
  },
  "weights_used": {"content_coverage": 0.25, ...},
  "priority_matrix": [
    {"category": "...", "score": 55, "gap": 45, "impact": "high", "effort": "medium", "priority": 1}
  ],
  "key_findings": [
    {"category": "...", "finding": "23 missing topics vs competitors", "severity": "high"}
  ],
  "categories_available": ["..."],
  "categories_missing": ["..."],
  "comparison": null
}

Conditional Skills (AI-only analysis, not scripted)

#SkillConditionAI Action
S1seo-authorityAlwaysAnalyze cross-platform presence from entity + backlink data
S2seo-socialVN marketAudit Zalo OA, Mini App SEO-to-Social loops
S3seo-coccoc-optimizerVN marketCheck Hộp trả lời AI, dialect coverage
S4seo-competitor-pagesAlwaysGenerate comparison page templates
S5seo-prompt-researchResearch data existsFeed AI prompt patterns from /seo-research
S6seo-programmaticData-driven siteAssess pSEO template opportunities

These are handled by AI interpretation, not Python scripts.


Project Run Entry Example

{
  "date": "2026-05-14",
  "type": "strategy",
  "phase": "strategized",
  "score": 62,
  "category_scores": {
    "content_coverage": 55, "topical_authority": 70,
    "backlink_opportunity": null, "information_gain": 48,
    "entity_readiness": 65, "ai_answer_readiness": 42,
    "agentic_readiness": 30
  },
  "report": "reports/strategy-2026-05-14.md",
  "data": "data/strategy-2026-05-14.json"
}