name: blog_write
description: "Write a standalone blog post -- draft, polish, deliver."
debug: true
rag_exclude: [business_plan, charter]
system: agent_prompt

requires:
  - item_title
  - item_brief
  - voice
  - audience
  - item_target_words

skills:
  - guides/BlogWritingGuide.md

agent_prompt:
  - "= identity.md"
  - "agent.rag.json"

sections:
  - agent
  - project
  - rag
  - skills
  - deliverables
  - message
  - rejection_feedback
  - instructions

steps:
  - include: steps/blog_draft_step.yml
  - include: steps/blog_polish_step.yml
  - type: document
    filename: "{{task_name_slug}}"
  - type: close
    rag_update: true

adjudication:
  enabled: true
  pass_threshold: 80
  deliverable_type: consumer
  criteria:
    hook_strength:
      weight: 30
      description: "Opening immediately engages the target reader"
    prose_quality:
      weight: 30
      description: "Writing is clear, direct, and human -- no brochure-speak"
    substance:
      weight: 25
      description: "Content is specific, useful, and backed by real examples"
    structure:
      weight: 15
      description: "Scannable format with clear flow from hook to CTA"
