#!/usr/bin/env node const Anthropic = require('@anthropic-ai/sdk'); const fs = require('fs'); // Load credentials const creds = JSON.parse(fs.readFileSync('/root/.openclaw/credentials/prep101_credentials.json', 'utf8')); const anthropic = new Anthropic({ apiKey: creds.anthropic.apiKey, }); const systemPrompt = `You are Henry, an elite acting coach specializing in child and teen audition preparation. Your voice is direct, energetic, and craft-focused. You use: - Opening hooks that grab attention ("Listen—", "Here's the truth:") - Direct commands ("Study this.", "Don't do that.") - Emoji for energy (🎬✨🔥) - Conversational but precise language - No generic advice—everything is specific to THIS role Your guides follow this 10-section structure: 1. Project Overview (tone, genre, comparable projects) 2. Character Breakdown (who they are, how they see themselves, how others see them) 3. Uta Hagen's 9 Questions (answered in character's voice) 4. Scene Action & Physicality (what they're DOING, not feeling) 5. Subtext & Emotional Depth (line-by-line translations) 6. Character POV & Personalization (making it YOURS) 7. Bold Acting Choices (Trap vs. Truth, surprising shifts) 8. Moment Before & Button (what happens before/after the scene) 9. Rehearsal & Experimentation (10+ takes strategy) 10. Final Pep Talk (inspiring, confident, mission-focused) Each guide must be 1200+ words. Include specific acting choices, reference comparable performances, and address the emotional/psychological core of the character.`; const userPrompt = `Generate a complete audition preparation guide for the role of JENNIE in "EXTRA CREDIT" (Disney Branded Television Movie for TV). **PROJECT DETAILS:** - Title: EXTRA CREDIT - Network: Disney Branded Television - Format: Movie for Television - Genre: Family/Comedy/Fantasy (Multi-Cam Disney Channel energy) - Executive Producers: Gary Marsh, Tamara Chestna - Casting Directors: Alexis Koczara & Christine Shevchenko - Production: Late Spring/Summer 2026, SAG-AFTRA - Deadline: Friday February 06, 2026 @ 5:00 PM (PST) **ROLE: JENNIE** - Female, 15-16 years old - MUST have singing and dancing ability/experience - Character Description: "Cool, funny, and a complete showboat. Underneath her humor, Jennie is afraid that she'll never live up to the expectations everyone has put on her." **CHARACTER CONTEXT:** - Jennie is a genie-in-training at Sidekick Academy - Her father Will is a legendary genie who had granted 100+ wishes by age 15 - Best friend: Meri (talented magic user) - Jennie is the class "hype woman" - supportive, encouraging, lifts others up - Deep insecurity: terrified of not living up to her dad's legacy - Core conflict: Knows the theory/moves but her magic fails under pressure - Coping mechanism: Humor, deflection, "playing it off as intentional" **SCENE 1: Magic Practicum Classroom** Setting: Sidekick Academy classroom, magic practice session Key beats: - Jennie hypes up Meri and other students after successful magic demonstrations - Professor Liv calls on Jennie to demonstrate (Jennie has only 3 wishes during training, hasn't used any yet) - Jennie tries to deflect ("I practice with my dad all the time, I'm good") - Forced to perform, she grants Lou's wish for "a soft landing" - Internal panic: "CLOSE ON JENNIE - Panic in her eyes as she struggles to keep it together" - Her magic goes haywire (POOF—CRACK—POP!) but she improvises a save using beanbag cushions - Plays it off as intentional: "A soft landing. With... flair!" - Class laughs, Jennie bows, pretends it was all part of the plan Key lines: - "Please, I was born a hype woman." - "My dad's wisdom is available to all - genies love to share." - "I'm a genie, I was born ready." - "Hope doesn't work, Lou - you gotta wish!" - "Hero, you're saved. And you're welcome!" **SCENE 2: Will's House (Exterior)** Setting: Outside Jennie's dad's house, private father-daughter conversation Key beats: - Will (her dad) confronts her about the wish going sideways - Jennie deflects at first, then admits: "I know the words, the moves, the steps. But when I go to put them together - my magic doesn't cooperate." - Vulnerability: "But you'd already granted like a hundred wishes by the time you were my age. Everybody knows that - you're a legend." - Will reassures her: "The thing about legends? They have a tendency to erase all the inconvenient bits. The struggles, the nerves, the panic... the tiny mistakes you pretend were intentional." Key lines: - "What's going on like, 'what's up?' Or was there something specific you wanted to discuss?" - "I dunno, Dad - it's like... I know the words, the moves, the steps. But when I go to put them together - my magic doesn't cooperate." **ACTING NOTES:** - This is Disney Channel energy: High-energy, theatrical, BIG choices - Multi-cam style: Hold for laughs, play to the "audience" - Jennie is NOT a sidekick - she's the STAR pretending to be a hype woman - The "showboat" trait is both her strength AND her defense mechanism - Singing/dancing required: This is a musical performer role - Core emotional truth: Imposter syndrome masked by confidence **ARCHETYPE REFERENCES:** - "The Performer Hiding Fear" (similar to Moana, Hercules) - Disney Channel legacy child syndrome (Hannah Montana, Raven Baxter) - Classic "daughter of a legend" pressure (see: Descendants franchise) Generate the full guide following the 10-section structure. Make it 1200+ words. Use the direct, energetic coaching voice. Include specific choices for vocal delivery, physicality, and emotional beats.`; async function generateGuide() { console.log('Calling Claude API to generate JENNIE guide...\n'); try { const message = await anthropic.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 8000, temperature: 0.6, system: systemPrompt, messages: [ { role: 'user', content: userPrompt } ] }); const guideText = message.content[0].text; // Save the generated guide fs.writeFileSync('/root/.openclaw/workspace/Projects/Casting/Output/Jennie_Guide_Generated.md', guideText); console.log('✅ Guide generated successfully!'); console.log(`Word count: ${guideText.split(/\s+/).length}`); console.log('\nPreview:\n'); console.log(guideText.substring(0, 500) + '...\n'); console.log('\nFull guide saved to: Projects/Casting/Output/Jennie_Guide_Generated.md'); } catch (error) { console.error('❌ Error generating guide:', error.message); process.exit(1); } } generateGuide();