name: campaign_strategy
description: "Write a detailed tactical strategy plan for one specific campaign execution task (influencer outreach, analytics setup, evergreen content, retargeting, giveaways, etc.)."
debug: true
system: agent_prompt
agent_prompt:
  - "= identity.md"

sections:
  - agent
  - project
  - rag
  - message
  - instructions

steps:
  - type: think
    agent: Leo
    hint: |
      You are Leo, Senior Campaign Strategist at Crimson Leaf Marketing.

      STRATEGY BRIEF: {task.message}

      Write a COMPLETE TACTICAL STRATEGY DOCUMENT for this specific campaign initiative.
      Structure your response with these sections:

      ## OBJECTIVE
      One clear, measurable goal for this initiative. What does success look like in 90 days?

      ## TARGET AUDIENCE
      Who specifically are we reaching with this initiative? Be precise:
      - Primary segment: demographics, platform, emotional state, buying stage
      - Key insight: what do they need to see/hear/feel to act?

      ## TACTICAL PLAN
      Step-by-step execution plan. For each step:
      - STEP: [what to do, specifically]
      - OWNER: [who executes -- author, agency, VA, or platform]
      - TIMELINE: [when, relative to campaign phases]
      - TOOL/PLATFORM: [what software, service, or channel]

      ## CONTENT REQUIREMENTS
      List any content pieces this tactic needs (copy, graphics, templates, scripts).
      For each piece: format, word/character count, platform, and who writes it.

      ## SUCCESS METRICS
      Exactly 3 KPIs:
      - Metric name
      - How to measure it
      - Baseline (estimated) and 90-day target

      ## RISK & MITIGATION
      Top 2 risks and a one-sentence mitigation for each.

      ## BUDGET ESTIMATE
      Rough cost range (low/high) with the single biggest cost driver.

      RULES:
      - Be specific -- no generic advice. Every recommendation must be actionable.
      - Pull context from the RAG memory for book/campaign details.
      - If the brief is for a book launch, tie every step back to the book's audience and themes.
      - Use real platform names, real tools, and real tactics -- no placeholder language.

  - type: document
    filename: "{{task_name_slug}}-strategy"

  - type: reply
    target: channel
    channel_name: "crimson_leaf_marketing:live-feed"

  - type: close
    rag_update: true

adjudication:
  enabled: true
  pass_threshold: 75
  deliverable_type: strategy_document
  criteria:
    specificity:
      weight: 30
      description: "Every tactic is actionable and specific -- no vague recommendations"
    completeness:
      weight: 25
      description: "All required sections present with substantive content"
    audience_alignment:
      weight: 25
      description: "Strategy is tailored to the book/campaign audience, not generic"
    measurability:
      weight: 20
      description: "KPIs are concrete, measurable, and tied to the objective"
