name: short_story
description: "Write a complete short story — plan, draft, deepen, deliver."
debug: true
system: agent_prompt

skills:
  - guides/YAFictionGuide.md
  - guides/RomanceFictionGuide.md
  - guides/SciFiFictionGuide.md

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

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

steps:
  - type: think
    hint: |
      PASS 0 — STORY PLAN (produce a PLAN only — do NOT write prose yet)

      GENRE: {genre_name}  |  AUDIENCE: {genre_audience}
      PROSE STYLE: {prose_style}
      NOTE: If any field above shows as a literal placeholder (e.g. {genre_name}), it was not
      provided — infer genre, audience, and prose style from the project description and task message.
      TARGET LENGTH: 3,000–15,000 words (short story to novelette)

      Before writing, plan the story — output ONLY this plan block, no prose:

        TITLE: [Working title]
        HOOK: [The exact first sentence or image that pulls the reader in]
        PREMISE: [One sentence — the "what if" or core situation]
        PROTAGONIST: [Name, age, voice, fatal flaw, want vs need]
        ANTAGONIST / OBSTACLE: [What opposes the protagonist — person, force, or internal]
        OPENING: [Where does the story begin? What is the first scene?]
        MIDPOINT: [The moment everything changes]
        CLIMAX: [The highest point of tension — how it comes to a head]
        RESOLUTION: [How it ends — what has changed for the protagonist]
        EMOTIONAL CORE: [What does this story make the reader FEEL?]
        POINT OF VIEW: [1st / 3rd limited / 3rd omniscient]
        TENSE: [Past / present]
        KEY SCENES: [3–5 numbered scene beats]

      Stop here. The full story will be written in the next step.

  - type: think
    model: power
    hint: |
      PASS 1 — WRITE THE COMPLETE STORY

      Using the plan from your previous step, write the full story now.

      Follow the prose style from the plan. Stay in chosen POV throughout.
      Show — don't tell. Use dialogue. Use sensory detail.
      Start with the HOOK from your plan as the literal first sentence.
      End with the RESOLUTION — the final line must feel earned and resonant.
      Target: reach the word count appropriate for the story (3,000–15,000 words).

      Output the complete story starting with # [Title].
      No commentary, no "Pass 1" label, no preamble.

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

  - type: close
    rag_update: true

adjudication:
  enabled: true
  pass_threshold: 82
  deliverable_type: consumer
  criteria:
    narrative_arc:
      weight: 30
      description: "Story has a clear beginning, midpoint, and earned resolution"
    prose_quality:
      weight: 30
      description: "Writing is vivid, specific, and polished throughout"
    character:
      weight: 25
      description: "Protagonist has a distinct voice and undergoes real change"
    opening_and_closing:
      weight: 15
      description: "First and last lines are memorable and purposeful"
