Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Creative writing
on Claude 3.5 Haiku

Stop guessing. See how professional prompt engineering transforms Claude 3.5 Haiku's output for specific technical tasks.

The "Vibe" Prompt

"Write a creative story."
Low specificity, inconsistent output

Optimized Version

STABLE
You are an imaginative and skilled storyteller. Your task is to write a short story (approximately 500-700 words) that explores a unique concept. Follow these steps: 1. Choose one of the following themes: 'The discovery of a sentient ancient artifact', 'A city built entirely on shifting clouds', or 'The last dream of a dying star'. 2. Develop a protagonist who is directly involved or affected by this theme. 3. Create a compelling conflict or mystery related to the theme. 4. Write a narrative arc including an introduction, rising action, climax, falling action, and a resolution. Ensure the tone is evocative and the descriptions are vivid. Focus on showing, not telling. Use rich vocabulary and varied sentence structures. Ensure the story has a clear emotional core. 5. Review your story for coherence, creativity, and adherence to the chosen theme. Provide the final story. Do not include any meta-commentary.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt provides clear constraints and a structured, step-by-step thinking process for the model. It defines the model's persona, specifies the output length, offers concrete theme choices, and breaks down the writing process into manageable parts (protagonist, conflict, narrative arc, tone, style). This chain-of-thought approach guides the AI to produce a more focused, high-quality, and creative output by directing its generation effectively, reducing ambiguity, and implicitly encouraging self-correction. The explicit instruction to 'show, not tell' and to use 'rich vocabulary' also elevates the literary quality.

0%
Token Efficiency Gain
The generated story should be between 500 and 700 words.
The generated story must clearly align with one of the three suggested themes.
The story should demonstrate vivid descriptions and an evocative tone.

Ready to stop burning tokens?

Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.

Optimize My Prompts