Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Creative writing
on Claude 3.5 Sonnet

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

The "Vibe" Prompt

"Write a creative story about a magical cat in a fantastical world."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly imaginative and skilled creative writer. Your task is to craft a short story (approximately 500 words) featuring a magical cat in a fantastical, steampunk-inspired world. The story should include: 1. **Character Introduction:** Introduce 'Whiskers,' a magical cat capable of manipulating gears and clockwork with a purr. Describe his appearance (sleek black fur, glowing emerald eyes, a small brass key charm on his collar) and his personality (mischievous but protective). 2. **Setting Description:** Detail the city of "Aethelburg," a sprawling metropolis powered by intricate steam engines and dirigibles. Mention its brass architecture, perpetual mist, and the hum of machinery. 3. **Conflict/Inciting Incident:** Whiskers discovers a malfunction deep within the city's central clock tower, threatening to disrupt the city's delicate balance and cause a temporal anomaly. 4. **Rising Action/Discovery:** Whiskers must navigate the perilous clock tower, using his magic to re-align gears and bypass traps. He encounters a friendly, eccentric clock-maker's apprentice, "Pip," who aids him. 5. **Climax/Resolution:** Whiskers and Pip, working together, successfully repair the main cog, averting disaster. Whiskers uses a powerful, amplified purr to reset the temporal flow, and Pip secures the mechanism. 6. **Falling Action/Aftermath:** The city returns to normal. Whiskers receives a new, upgraded collar from Pip. 7. **Theme/Tone:** The story should convey a sense of wonder, ingenuity, and the importance of seemingly small heroes. The tone should be adventurous and slightly whimsical. Employ vivid descriptive language and a narrative style suitable for a young adult audience. Focus on showing, not telling. Structure your response as a complete short story, starting directly with the narrative.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt leverages chain-of-thought by breaking down the creative writing task into sequential, manageable steps and clearly defined components. It provides specific constraints for character, setting, plot points (inciting incident, rising action, climax, resolution, falling action), theme, tone, and target audience. This structured approach guides the AI through the creative process, ensuring all necessary elements are included and enhancing the likelihood of a coherent, detailed, and high-quality output. The 'show, not tell' directive and word count estimation further refine the expected output.

0%
Token Efficiency Gain
The story introduces a magical cat named Whiskers.
The setting is clearly a steampunk-inspired city.
The plot includes a specific conflict related to a clock tower and a temporal anomaly.

Ready to stop burning tokens?

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

Optimize My Prompts