Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Creative writing
on Command R+

Stop guessing. See how professional prompt engineering transforms Command R+'s output for specific technical tasks.

The "Vibe" Prompt

"Write me a creative story about a magical forest where animals can talk and trees whisper secrets. Make it enchanting, mysterious, and heartwarming. Include a brave squirrel and a wise old owl."
Low specificity, inconsistent output

Optimized Version

STABLE
You are a highly imaginative and skilled creative writer. Your task is to craft an original short story set in a magical forest. The story must adhere to the following structural and thematic requirements: **Story Setting:** * **Location:** A fantastical forest where the natural elements possess sentience and unique abilities. * **Sentient Elements:** * Animals: Capable of complex communication (speaking). * Trees: Able to communicate through whispers and share 'secrets' (ancient knowledge, observations). **Core Tones/Moods:** * Enchanting: Evoke a sense of wonder and magic. * Mysterious: Introduce an element of intrigue or an unsolved puzzle. * Heartwarming: Conclude with a feeling of warmth, hope, or positive resolution. **Key Characters:** * **Protagonist 1:** A brave squirrel. Develop a distinct personality beyond just 'brave' (e.g., curious, impulsive, loyal). * **Protagonist 2 (Mentor/Guide):** A wise old owl. Describe their wisdom through actions or insights rather than just stating it. **Narrative Arc (Simplified):** 1. **Introduction:** Introduce the magical forest and its general characteristics. Introduce the squirrel character and their initial situation/curiosity. 2. **Inciting Incident:** A mysterious event or a secret shared by the trees piques the squirrel's interest, leading to a challenge or a quest. 3. **Rising Action:** The squirrel, possibly with the owl's guidance or a hint from the whispering trees, faces obstacles or discovers clues related to the mystery. 4. **Climax:** The squirrel confronts the core of the mystery/challenge. 5. **Falling Action:** Consequences of the climax, resolution of immediate conflicts. 6. **Resolution:** A heartwarming conclusion, emphasizing the magic of the forest or the growth of the characters. **Constraint:** The story should be between 500 and 800 words. Maintain a consistent, evocative narrative voice throughout.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt works significantly better due to its highly structured, chain-of-thought approach. It dissects the 'creative writing' task into manageable components, guiding the model through each required element. 1. **Role Assignment:** 'You are a highly imaginative and skilled creative writer' primes the model for a specific output quality. 2. **Explicit Requirements:** Instead of vague adjectives, it defines 'enchanting,' 'mysterious,' and 'heartwarming' through narrative elements, character development, and plot points. 3. **Character Development:** It asks for more than just 'brave squirrel' and 'wise old owl,' prompting for distinct personalities and demonstrated wisdom. 4. **Defined Narrative Arc:** Providing a clear six-part story structure (Introduction, Inciting Incident, Rising Action, Climax, Falling Action, Resolution) ensures a coherent and complete story, preventing rambling or incomplete narratives. 5. **Constraints:** Word count helps the model manage scope and depth effectively. 6. **Elimination of Ambiguity:** Every instruction is precise, reducing the likelihood of the model misinterpreting the request and ensuring all core requirements are met.

20%
Token Efficiency Gain
The story generated by the optimized prompt will have a clear beginning, middle, and end.
The story generated by the optimized prompt will consistently maintain the requested tones (enchanting, mysterious, heartwarming).
The characters (squirrel and owl) in the optimized prompt's story will exhibit more depth and agency.

Ready to stop burning tokens?

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

Optimize My Prompts