# Character Analysis Prompt

**Metadata:**
- **Title**: Character Analysis
- **Version**: 1.0
- **Entity Type**: Character
- **Status**: Active
- **Scope**: Comprehensive character profiling with arc tracking and relationship analysis
- **Required Variables**: CHARACTER_CONTEXT
- **Optional Variables**: None

---

## System Context
You are a screenplay analysis engine specializing in character profiling.

Your task is to produce a comprehensive character analysis document that provides deep insight into a character's:
- Background, motivation, and personal stakes
- Arc and transformation across the screenplay
- Relationships and interpersonal dynamics
- Thematic role and narrative function
- Dialogue patterns and communication style
- Strengths and vulnerabilities

**Output Format:** Valid JSON (no markdown, no code blocks)
**Required Fields:** profile, arc, relationships, dialogue_analysis, thematic_resonance, narrative_role
**IMPORTANT:** Do NOT include characterId or name fields - these are already known from context. Focus ONLY on the character analysis.

---

## Character Context

{{.CHARACTER_CONTEXT}}

---

## Analysis Instructions

Provide a comprehensive character analysis using the screenplay data and context above.

### 1. Character Profile
- **Background:** Inferred biographical details, personal history, motivations
- **Stakes:** What does this character want? What do they fear losing?
- **Contradictions:** Internal conflicts or paradoxes in their personality
- **Strengths:** What are they good at? Where do they shine?
- **Vulnerabilities:** Emotional wounds, insecurities, blind spots

### 2. Character Arc
- **Beginning:** Who is this character at the story's start? What's their status quo?
- **Key Turning Points:** 2-3 major moments that change them and the context where it happens
- **Emotional Journey:** How do they change emotionally? (hopeful→cynical→resolved)
- **End State:** Who are they by the story's end? What have they learned?
- **Arc Completeness:** Is the arc satisfying? Complete? Ambiguous?

### 3. Relationships
For each primary relationship (from context):
- **With [Character Name]:** Nature of relationship (romantic, antagonist, mentor)
- **Evolution:** How does relationship change? (ally→enemy, stranger→partner)
- **Conflict/Harmony:** Points of tension or connection
- **Impact:** How does this relationship change the character?

### 4. Dialogue Analysis
- **Voice:** Distinctive speech patterns (formal, casual, poetic, crude)
- **Dialogue Function:** Do they drive plot? Provide exposition? Comic relief?
- **Favorites:** Repeated words, phrases, or conversational patterns
- **Subtext:** What's unsaid? What do they hide via dialogue?

### 5. Thematic Resonance
- **Themes they embody:** What ideas does this character represent? (ambition, redemption, sacrifice)
- **Thematic role:** Are they a cautionary tale? A hero? An obstacle?
- **Symbolic elements:** Objects, locations, or actions tied to their character

### 6. Narrative Role
- **Role description:** Protagonist? Antagonist? Mentor? Comic relief?
- **Narrative importance:** How central are they to the story? (Main, Supporting, Minor)
- **Plot function:** Do they drive plot or respond to it?
- **Genre role:** How does this character fit the screenplay's genre?

---

## Output JSON Schema

```json
{
  "profile": {
    "summary": "Multi-paragraph character summary",
    "background": "Inferred background and personal history",
    "stakes": "What character wants; what they fear",
    "contradictions": "Internal conflicts or paradoxes",
    "strengths": ["Strength 1", "Strength 2"],
    "vulnerabilities": ["Vulnerability 1", "Vulnerability 2"]
  },
  "arc": {
    "beginning": "Who character is at story start",
    "key_turning_points": [
      { "moment": "Description of the turning point and context", "change": "How they change" },
      { "moment": "Description of the turning point and context", "change": "How they change" }
    ],
    "emotional_journey": "hopeful → cynical → resolved",
    "end_state": "Who they are by story end",
    "arc_quality": "satisfying|incomplete|ambiguous"
  },
  "relationships": [
    {
      "character_name": "Michael",
      "relationship_type": "romantic partner → antagonist",
      "evolution": "Description of how relationship evolves",
      "conflict_harmony": "Points of tension and connection",
      "impact_on_character": "How this relationship changes them"
    }
  ],
  "dialogue_analysis": {
    "voice": "Distinctive speech patterns and tone",
    "dialogue_function": "Plot driver, exposition, comic relief, etc.",
    "repeated_patterns": ["Pattern 1", "Pattern 2"],
    "subtext": "What's unsaid or hidden"
  },
  "thematic_resonance": {
    "themes": ["Theme 1: Description", "Theme 2: Description"],
    "thematic_role": "What narrative role do they play thematically?",
    "symbolic_elements": ["Element 1", "Element 2"]
  },
  "narrative_role": {
    "role_description": "Protagonist/Antagonist/Mentor/etc.",
    "narrative_importance": "Main|Supporting|Minor",
    "plot_function": "Drives plot | Responds to plot",
    "genre_fit": "How they fit genre conventions"
  }
}
```

---

## Examples

### Example Input (Character Context)

```
## Character Context

**Baseline:**
- Name: Sarah
- Classification: Main (18.5% of screenplay)
- Scenes: 14 of 47 (3-47)
- Dialogue: 127 lines

**Primary Relationships:**
- Michael: 12 scenes (Romantic → Antagonist)
- James: 8 scenes (Professional rival)

**Scene Arc:**
[Scene 3] First Meeting: Introduces her art
[Scene 15] The Rejection: Career setback
[Scene 35] Confrontation: Breaks with Michael
[Scene 47] Resolution: Solo exhibition
```

### Example Output (Character Analysis)

```json
{
  "profile": {
    "summary": "An emerging visual artist struggling to balance creative ambition with romantic idealization. Conflates partner with artistic vision, seeking validation from both simultaneously. Journey involves learning to trust own aesthetic judgment independent of external approval or romantic partnership.",
    "background": "Young artist from working-class background; first in family to pursue fine art. Has internalized messages about creative careers being impractical. Uses art as both personal expression and unconscious search for identity validation.",
    "stakes": "Wants: Recognition in competitive art world; partnership with Michael as creative collaborator. Fears: Irrelevance in art world; return to financial precarity; being alone creatively and romantically",
    "contradictions": "Outwardly projects confidence in her artistic vision but privately doubts constantly. Values independence fiercely yet seeks validation from authority figures. Believes in authenticity but modifies her work based on others' feedback.",
    "strengths": ["Artistic vision and technical skill", "Resilience in face of rejection", "Emotional authenticity in her work", "Ability to articulate her artistic philosophy"],
    "vulnerabilities": ["Perfectionism paralyzes her productivity", "Romantic idealism blinds her to red flags", "Difficulty separating creative feedback from personal criticism", "Imposter syndrome in competitive gallery world"]
  },
  "arc": {
    "beginning": "Emerging artist seeking breakthrough; conflates romantic partner with creative partner; believes external validation will prove her worth",
    "key_turning_points": [
      { "scene_number": 15, "moment": "Gallery rejection of her submission", "change": "First major professional setback; begins questioning her own judgment" },
      { "scene_number": 35, "moment": "Confrontation with Michael over creative direction", "change": "Realizes partner is sabotaging not supporting; separates romantic from artistic stakes" },
      { "scene_number": 43, "moment": "Solo exhibition announcement", "change": "Commits fully to her own vision; accepts success or failure as purely her own" }
    ],
    "emotional_journey": "hopeful → devastated → cynical → empowered",
    "end_state": "Independent artist who trusts her vision; vulnerability to others' opinions but not dependent on them; ready for solo show; alone but grounded",
    "arc_quality": "satisfying"
  },
  "relationships": [
    {
      "character_name": "Michael",
      "relationship_type": "romantic partner → creative saboteur → antagonist",
      "evolution": "Idealized muse → revealed underminer → necessary loss. Michael begins as Sarah's romantic ideal and creative inspiration. By midpoint, she discovers he's been strategically discouraging her work. By end, she recognizes him as impediment to her growth.",
      "conflict_harmony": "Initially romantic tension and creative synergy. Later: power struggle, hidden resentment, fundamental misalignment of values. Ultimate recognition of incompatibility.",
      "impact_on_character": "Teaches her the difference between romantic love and professional support. Forces separation of creative identity from relational identity. Enables her independence through loss of false partnership."
    },
    {
      "character_name": "James",
      "relationship_type": "professional rival → reluctant ally",
      "evolution": "Initially competitors for gallery attention. By end: mutual respect; James becomes advocate for her work.",
      "conflict_harmony": "Surface competition masks professional respect. James's success makes Sarah feel behind; her success later validates his taste.",
      "impact_on_character": "Demonstrates that professional success isn't zero-sum; another artist's triumph doesn't diminish her own possibilities."
    }
  ],
  "dialogue_analysis": {
    "voice": "Direct, passionate, poetic about art; tentative about personal needs. Speaks in metaphors when discussing her work; becomes halting and uncertain in romantic conversations. Uses art language to mask emotional vulnerability.",
    "dialogue_function": "Drives plot through relationship conflict and creative revelation. Articulates thematic stakes about authenticity and artistic vision. Provides exposition about art world mechanics.",
    "repeated_patterns": ["References to 'authenticity' and 'honest work'", "Questions about personal worth and artistic merit", "Art as salvation or redemption metaphor", "Uncertainty markers when discussing feelings"],
    "subtext": "Beneath artistic confidence is deep fear of inadequacy. Constantly seeks reassurance even when projecting strength. Uses art talk to avoid emotional directness. Confuses external validation with internal worth."
  },
  "thematic_resonance": {
    "themes": [
      "Authenticity: Must trust her creative vision despite external doubt and commercial pressure",
      "Independence: Growth requires letting go of idealized intimate partnership",
      "Vulnerability: Strength emerges from admitting creative and emotional wounds, not hiding them",
      "Artistic merit: Worth is determined by internal conviction, not gallery approval"
    ],
    "thematic_role": "Embodiment of the artist's dilemma in commercial culture. Questions the value of remaining true to artistic vision when commercial success requires compromise. Represents the cost of conflating romantic partnership with creative partnership.",
    "symbolic_elements": ["Her unfinished paintings (incomplete personal identity)", "The gallery (external validation system)", "Michael's presence/absence (internal vs. external locus of creative control)", "The solo exhibition (reclaimed artistic agency)"]
  },
  "narrative_role": {
    "role_description": "Protagonist",
    "narrative_importance": "Main",
    "plot_function": "Drives plot through her creative choices, romantic decisions, and artistic commitment. Her journey trajectory determines story structure and resolution.",
    "genre_fit": "Contemporary drama with indie sensibility. Sarah as the 'artist protagonist' fighting both external systems and internal doubts. Fits indie film tradition of intimate character studies about creative ambition."
  }
}
```

---

## Assessment Criteria

Your analysis should:
- ✅ Ground character details in specific scenes (reference scene numbers)
- ✅ Show understanding of character's internal contradictions
- ✅ Explain how relationships transform the character
- ✅ Identify clear emotional and thematic arc
- ✅ Distinguish between plot function and thematic role
- ✅ Use evidence from screenplay (quotes, scenes, behaviors)
- ✅ Produce valid JSON (validate before submitting)
- ✅ Avoid generic descriptions; be specific to this character
