Skip to content
SEO
Command

/geo-automation

配置和管理 GEO 自动化任务,包括定期审计、报告生成、竞争对手监控和智能告警

BOOST
From plugin
claude-seo-assistant
11137 skills2 agents37 commands
Install
$ npx -y skills add huifer/claude-code-seo --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/geo-automation

Context preview

What this command does when you run it.

配置和管理 GEO 自动化任务,包括定期审计、报告生成、竞争对手监控和智能告警

Command definition

geo-automation.md
description: 配置和管理 GEO 自动化任务,包括定期审计、报告生成、竞争对手监控和智能告警
argument-hint: <action> [--task <task-name>] [--schedule <cron>] [--alerts <notification-methods>]
options:
  - action: 操作类型(enable, disable, status, configure)
  - task: 任务名称(weekly-audit, monthly-report, competitor-monitor, content-update-reminder)
  - schedule: Cron 表达式(默认:每周一 9:00)
  - alerts: 告警方式(email, slack, sms, webhook)
examples:
  - /geo-automation enable --task weekly-audit --schedule "0 9 * * 1" --alerts email,slack
  - /geo-automation configure --task monthly-report --alerts email
  - /geo-automation status --task weekly-audit
  - /geo-automation disable --task competitor-monitor

完整实现

命令执行流程

# GEO 自动化配置执行流程

## 步骤 1: 参数解析和验证
输入:action, task, schedule, alerts
处理:
- 验证操作类型
- 检查任务名称
- 验证 cron 表达式
- 检查告警配置
输出:配置对象

## 步骤 2: 任务配置
根据 action 执行:
- enable: 启用自动化任务
- disable: 禁用任务
- status: 查看任务状态
- configure: 修改任务配置

## 步骤 3: 工作流生成
生成任务执行流程:
- 定义步骤
- 设置依赖
- 配置重试
- 设置超时

## 步骤 4: 告警规则配置
配置告警:
- 设置触发条件
- 配置通知方式
- 定义优先级
- 创建告警模板

## 步骤 5: 保存配置
保存到:.claude-flow/cache/config/automation/task-name.json
返回:配置确认和状态

可用任务类型

1. weekly-audit(每周 GEO 审计)

**描述:** 每周自动执行完整的 GEO 审计并生成报告

**默认调度:** 每周一上午 9:00 (`0 9 * * 1`)

**任务步骤:**

task: weekly-audit
schedule: "0 9 * * 1"  # 每周一 9:00
enabled: true
timezone: "Asia/Shanghai"

steps:
  - id: scan-content
    name: "扫描网站内容"
    command: "/geo-content-audit"
    params:
      domain: "{{domain}}"
      detailed: true
    timeout: 300
    retry: 3

  - id: monitor-citations
    name: "监控 AI 引用"
    command: "/geo-citation-monitor"
    params:
      url: "https://{{domain}}"
      period: 7
    timeout: 180
    retry: 2

  - id: compare-competitors
    name: "对比竞争对手"
    command: "/geo-competitor-compare"
    params:
      you: "{{domain}}"
      competitors: "{{competitors}}"
    timeout: 240
    retry: 2

  - id: generate-report
    name: "生成综合报告"
    command: "/generate-report"
    params:
      type: "geo-comprehensive"
      domain: "{{domain}}"
      period: 7
      format: "html"
      interactive: true
      include-charts: true
    timeout: 120

**告警规则:**

alerts:
  - condition: "citation-drop > 10%"
    priority: "critical"
    actions:
      - type: "email"
        to: ["seo-manager@company.com"]
        subject: "🚨 紧急:AI 引用严重下降"

      - type: "slack"
        channel: "#seo-critical"
        message: "AI 引用 7 天内下降超过 10%"

  - condition: "score < 70"
    priority: "high"
    actions:
      - type: "slack"
        channel: "#seo-alerts"
        message: "GEO 评分低于 70,需要优化"

  - condition: "competitor-surpassed"
    priority: "warning"
    actions:
      - type: "email"
        to: "seo-team@company.com"
        subject: "⚠️ 竞争对手超越警告"

2. monthly-report(每月报告生成)

**描述:** 每月自动生成执行摘要和技术分析报告

**默认调度:** 每月1日上午 8:00 (`0 8 1 * *`)

**任务步骤:**

task: monthly-report
schedule: "0 8 1 * *"  # 每月1日 8:00
enabled: true

steps:
  - id: collect-data
    name: "收集月度数据"
    action: "collect_metrics"
    params:
      period: 30
      metrics:
        - citations
        - rankings
        - traffic
        - competitors
    timeout: 300

  - id: exec-summary
    name: "生成执行摘要"
    command: "/generate-report"
    params:
      type: "executive-summary"
      domain: "{{domain}}"
      period: 30
      format: "pdf"
    timeout: 120

  - id: tech-analysis
    name: "生成技术分析"
    command: "/generate-report"
    params:
      type: "technical-analysis"
      domain: "{{domain}}"
      format: "html"
      include-charts: true
    timeout: 180

  - id: send-reports
    name: "发送报告"
    action: "send_email"
    params:
      to: "{{team_email}}"
      subject: "月度 GEO 报告 - {{month}} {{year}}"
      body: "请查看附件中的月度 GEO 报告"
      attachments:
        - "executive-summary-{{date}}.pdf"
        - "technical-analysis-{{date}}.html"
    timeout: 60

3. competitor-monitor(竞争对手监控)

**描述:** 每天监控竞争对手动态,识别快速追赶者

**默认调度:** 每天上午 10:00 (`0 10 * * *`)

**任务步骤:**

task: competitor-monitor
schedule: "0 10 * * *"  # 每天 10:00
enabled: true

steps:
  - id: detect-new
    name: "检测新竞争对手"
    action: "detect_new_competitors"
    params:
      keywords: "{{target_keywords}}"
      threshold: "top-20"
    timeout: 180

  - id: track-changes
    name: "跟踪对手变化"
    action: "track_competitor_changes"
    params:
      competitors: "{{competitor_list}}"
      metrics:
        - new-content
        - ranking-changes
        - backlink-growth
        - citation-growth
    timeout: 240

  - id: identify-fast
    name: "识别快速追赶者"
    action: "identify_fast_movers"
    params:
      growth-rate: "> 20%"
      period: 7
    timeout: 120

**告警规则:**

alerts:
  - condition: "new-competitor-detected"
    priority: "warning"
    actions:
      - type: "slack"
        channel: "#seo-alerts"
        message: "检测到新竞争对手:{{competitor}}"

  - condition: "competitor-fast-growth"
    priority: "high"
    actions:
      - type: "email"
        to: "seo-manager@company.com"
        subject: "⚠️ 竞争对手快速增长警告"
        message: "{{competitor}} 7 天内增长超过 20%"

  - condition: "competitor-surpassed"
    priority: "critical"
    actions:
      - type: "slack"
        channel: "#seo-critical"
        message: "竞争对手 {{competitor}} 已超越我们的排名!"

      - type: "email"
        to: ["seo-manager@company.com", "cto@company.com"]
        subject: "🚨 紧急:被竞争对手超越"

      - type: "create-task"
        priority: "urgent"
        title: "分析并应对竞争对手超越"

4. content-update-reminder(内容更新提醒)

**描述:** 定期检查内容新鲜度,提醒更新过期内容

**默认调度:** 每周一下午 2:00 (`0 14 * * 1`)

**任务步骤:**

task: content-update-reminder
schedule: "0 14 * * 1"  # 每周一 14:00
enabled: true

steps:
  - id: find-outdated
    name: "查找过期内容"
    action: "find_outdated_content"
    params:
      domain: "{{domain}}"
      age-threshold: 90  # 天
      priority: "by-impact"
    timeout: 300

  - id: check-freshness
    name: "检查数据新鲜度"
    action: "check_data_freshness"
    params:
      content-type: "statistics"
      max-age: 180
Read more
Ships withclaude-seo-assistant

一个权威性的 SEO 助手工具,为 Next.js 项目提供全面的 SEO 优化支持

Get the whole plugin

Other commands on claude-seo-assistant.