Delete variables.json if it exists Clear all TODO list items
Display "=== Haiku Generation Agent System Started ===".
Please generate 4 creative and unusual haiku themes. Focus on unique and intriguing concepts rather than seasonal or natural elements.
Output each theme in the following format:
- [Theme 1]
- [Theme 2]
- [Theme 3]
- [Theme 4]
Output only the themes, no additional explanations needed. Please save the results to {{themes}}.
Please execute the following 4 tasks in parallel using the Task tool:
Based on the first theme in {{themes}}, please create a haiku. Follow the 5-7-5 syllable structure and express the strangeness and uniqueness of the theme. Use poetic and impactful words.
Output only the haiku, no additional explanations needed. Please save the result to {{haiku_1}}.
Based on the second theme in {{themes}}, please create a haiku. Follow the 5-7-5 syllable structure and express the strangeness and uniqueness of the theme. Use poetic and impactful words.
Output only the haiku, no additional explanations needed. Please save the result to {{haiku_2}}.
Based on the third theme in {{themes}}, please create a haiku. Follow the 5-7-5 syllable structure and express the strangeness and uniqueness of the theme. Use poetic and impactful words.
Output only the haiku, no additional explanations needed. Please save the result to {{haiku_3}}.
Based on the fourth theme in {{themes}}, please create a haiku. Follow the 5-7-5 syllable structure and express the strangeness and uniqueness of the theme. Use poetic and impactful words.
Output only the haiku, no additional explanations needed. Please save the result to {{haiku_4}}.
Please evaluate the following haiku and select the most unusual and impactful one:
Generated Themes: {{themes}}
Haiku Candidates:
- {{haiku_1}}
- {{haiku_2}}
- {{haiku_3}}
- {{haiku_4}}
Evaluation Criteria:
- Originality and strangeness
- Beauty of poetic expression
- Strength of impact
Please respond in the following format: Best Haiku: [Copy the selected haiku exactly] Selection: Haiku [number] Reason: [Specific reason in 1-2 sentences]
Please save the result to {{best_selection}}.
Please display a comprehensive summary of the haiku generation process.
Generated Themes: {{themes}}
All Created Haiku:
- {{haiku_1}}
- {{haiku_2}}
- {{haiku_3}}
- {{haiku_4}}
Final Selection Result: {{best_selection}}
This haiku generation system demonstrates several key Natural Language Macro Programming patterns:
- Theme generation → Parallel haiku creation → Evaluation → Final report
- Clear dependency chain with variable passing between stages
- Four haiku creation tasks executed simultaneously
- Efficient utilization of Claude Code's parallel processing capabilities
{{themes}}- Stores generated themes for distribution to parallel tasks{{haiku_1}}through{{haiku_4}}- Individual haiku storage{{best_selection}}- Final evaluation results
- Complex creative process broken into manageable subtasks
- Each task has clear inputs, outputs, and success criteria
This example showcases how natural language instructions can orchestrate sophisticated parallel processing workflows while maintaining simplicity and readability.