name: geo_full_pipeline
description: "GEO 端到端工作流：检测→分析→优化→Schema→内容生成→去AI化→追踪"

steps:
  - name: detect
    skill: citation_detector
    input_mapping:
      brand: $.input.brand
      platforms: $.input.platforms

  - name: analyze_competitor
    skill: competitor_analyzer
    input_mapping:
      brand: $.input.brand
      detection_result: $.steps.detect.output
    depends_on: [detect]

  - name: analyze_trend
    skill: trend_agent
    input_mapping:
      brand: $.input.brand
    depends_on: [detect]

  - name: optimize
    skill: geo_optimizer
    input_mapping:
      brand: $.input.brand
      analysis: $.steps.analyze_competitor.output
    depends_on: [analyze_competitor, analyze_trend]

  - name: schema
    skill: schema_advisor
    input_mapping:
      brand: $.input.brand
      optimization: $.steps.optimize.output
    depends_on: [optimize]

  - name: generate_content
    skill: content_generator
    input_mapping:
      brand: $.input.brand
      optimization: $.steps.optimize.output
      schema: $.steps.schema.output
    depends_on: [schema]

  - name: deai
    skill: deai_agent
    input_mapping:
      content: $.steps.generate_content.output
    depends_on: [generate_content]

  - name: monitor
    skill: monitor
    input_mapping:
      brand: $.input.brand
    depends_on: [optimize]
