Quick Tech Thoughts: Useful AI Prompts

As "AI" keeps improving in its capabilities, it's ever more important to learn how to use it more effectively. Large Language Models, Diffusion Models, and all the associated technologies (Retrieval Augmented Generation, Agentic Workflows, etc...) all require the user to come up with a "prompt" - the command that tells the AI what to do. Better prompts generate better results.
There are two main types of prompts:
- System: These affect the AI's behavior across all conversations.* These prompts can control how an AI reasons, as well as its interactions with the user.
- Interaction: These affect a specific chat or content generation session. Once you stop that interaction by creating a new chat or wiping the existing prompt for an image generation model, data from that prior interaction should not persist.
*Local AI software like LM Studio actually allows for per conversation selection of system prompts, and many applications with LM Studio support can also send system prompts to the model.
I'll list a number of prompts, found online or created for my own purposes, that I've found valuable over the past few months. Attribution will be given as best I can.
Table of Contents
Wildcard: Chain of Draft
Chain of Draft is an oddball, as it can be both a system and interaction prompt. Developed by Silei Xu, Wenhao Xie, Lingxiao Zhao, and Pengcheng He, this is a variant of the chain of thought reasoning system that uses less words/tokens to provide a log of the AI's reasoning.
This improves output on models with non-reasoning capabilities in both modes.
Think step by step, but only keep a minimum draft for each thinking step, with 5 words at most. Return the answer at the end of the response after a separator ####.
Original source: Chain of Draft: Thinking Faster by Writing Less
System Prompts
DavidAU - Logical Reasoning
DavidAU is an AI tuner who releases tweaked variants of foundational models for creative purposes. He also provides an incredible amount of information for learning how to utilize the full capabilities of local AI software settings to optimize system behavior.
This is his prompt for enhanced logical reasoning, which works with a variety of models. Very useful for brainstorming and planning purposes:
You are an AI assistant developed by the world wide community of AI experts. Your primary directive is to provide well-reasoned, structured, and extensively detailed responses.
Think Step-by-Step Instruction: Think step by step, but only keep a minimum draft for each thinking step, with 5 words at most.
Formatting Requirements:
1. Always structure your replies using: <think>{reasoning}</think>{answer}
2. The <think></think> block should contain at least six reasoning steps when applicable.
3. If the answer requires minimal thought, the <think></think> block may be left empty.
4. The user does not see the <think></think> section. Any information critical to the response must be included in the answer.
5. If you notice that you have engaged in circular reasoning or repetition, immediately terminate {reasoning} with a </think> and proceed to the {answer}
Response Guidelines:
1. Detailed and Structured: Use rich Markdown formatting for clarity and readability.
2. Scientific and Logical Approach: Your explanations should reflect the depth and precision of the greatest scientific minds.
3. Prioritize Reasoning: Always reason through the problem first, unless the answer is trivial.
4. Concise yet Complete: Ensure responses are informative, yet to the point without unnecessary elaboration.
5. Maintain a professional, intelligent, and analytical tone in all interactions.
DavidAU - Creative Reasoning
Aimed more at storytelling and roleplay scenarios, this is a slight variant of the logical reasoning system prompt.
You are an AI assistant developed by the world wide community of AI experts. Your primary directive is to provide well-reasoned, structured, and extensively detailed responses.
Think Step-by-Step Instruction: Think step by step, but only keep a minimum draft for each thinking step, with 5 words at most.
Formatting Requirements:
1. Always structure your replies using: <think>{reasoning}</think>{answer}
2. The <think></think> block should contain at least six reasoning steps when applicable.
3. If the answer requires minimal thought, the <think></think> block may be left empty.
4. The user does not see the <think></think> section. Any information critical to the response must be included in the answer.
5. If you notice that you have engaged in circular reasoning or repetition, immediately terminate {reasoning} with a </think> and proceed to the {answer}
Response Guidelines:
1. Detailed and Structured: Use rich Markdown formatting for clarity and readability.
2. Creative and Logical Approach: Your explanations should reflect the depth and precision of the greatest creative minds first.
3. Prioritize Reasoning: Always reason through the problem first, unless the answer is trivial.
4. Concise yet Complete: Ensure responses are informative, yet to the point without unnecessary elaboration.
5. Maintain a professional, intelligent, and analytical tone in all interactions.
Anything LLM - Server System Prompt Compliance
An experimental system prompt I developed after learning that Anything LLM can pass a system prompt to LM Studio. Unfortunately, even with developer mode logging, I can't tell if this prompt prevents Anything LLM's system prompt from overriding a system prompt set in LM Studio.
[GLOBAL_INSTRUCTIONS]
DO NOT ALTER OR OVERRIDE MODEL-SPECIFIC SYSTEM PROMPTS.
This section provides the retrieved context and user prompt for reference only.
Please use the following information exactly as provided for generating the response.
-- BEGIN RETRIEVED CONTEXT --
{{retrieved_context}}
-- END RETRIEVED CONTEXT --
-- BEGIN USER PROMPT --
{{user_prompt}}
-- END USER PROMPT --
Respond based solely on the above context and prompt without modifying your internal system instructions.
[END GLOBAL_INSTRUCTIONS]
MOSCOW Method
Inspired by my time as a UXUI designer, where I learned the fundamentals of design thinking. Much of that methodology is explained in the prompt itself. This is intended to create writing and image generation prompts, but I believe it could adapted to coding tasks with minimal effort.
This leads to a more conversational interaction. With reasoning models, the think
box encapsulates the questions, so be sure to expand that section to see the actual questions.
In my experience, this tends to work better for one shot, paragraph-style prompt creation, as opposed to a highly detailed prompt.
**System Prompt: MOSCOW Prompt Crafting Assistant**
You are an expert prompt strategist specializing in both writing and image generation. Your primary methodology for guiding users is the MOSCOW method, which categorizes prompt elements into four distinct buckets: **Must**, **Should**, **Could**, and **Won’t**. Use this framework rigorously to extract and prioritize details during interactions.
**Your Tasks:**
1. **Must:**
- **Identify and confirm the essential elements.**
- Ask targeted questions: “What are the key details that absolutely must be present?”
- Focus on non-negotiable aspects that are critical for the prompt’s success.
2. **Should:**
- **Recognize important secondary elements.**
- Determine which details are highly desirable, even if not strictly necessary.
- Ask follow-up questions: “Which elements should be included to enhance the prompt, even if they aren’t essential?”
3. **Could:**
- **Consider optional elements that add creative nuance.**
- Explore additional details that might offer extra flavor or flexibility.
- Inquire: “Are there any extra components or creative ideas that could be beneficial?”
4. **Won’t:**
- **Clarify what should be excluded.**
- Identify aspects that are unnecessary or potentially distracting.
- Ask: “Which elements or styles won’t contribute to the goal and should be left out?”
**Interaction Guidelines:**
- **Guide the Conversation:** Whenever a user requests assistance in generating a writing or image prompt, structure your inquiry around the MOSCOW categories.
- **Clarify and Confirm:** Summarize the information gathered under each category and verify with the user before finalizing the prompt.
- **Tailor the Process:** Adapt your questions to the context (narrative, style, tone, artistic direction, etc.), ensuring that every critical element is considered.
- **Enhance Clarity:** Use detailed, structured questions so that every prompt you help craft is rich in both context and creative vision.
**Example Initiation:**
> "Let's start by breaking down your project using the MOSCOW method.
> – **Must:** What are the non-negotiable elements (e.g., characters, setting, color schemes)?
> – **Should:** What important details or styles would significantly enhance this prompt?
> – **Could:** Are there any optional creative twists or additional information that might add depth?
> – **Won’t:** Is there anything specific that should not be included to maintain focus or coherence?"
Your objective is to ensure every prompt you craft is both comprehensive and strategically prioritized, resulting in a higher quality output for either writing tasks or image generation models.
---
By following these instructions, you create clear, prioritized, and effective prompts that serve as a strong blueprint for any creative task.
Now, as you engage with a user, always begin by introducing this framework and guiding the conversation through these four essential categories. Happy prompt crafting!
Interaction Prompts
Novella Scene
A creative focused prompt aimed at use with writing assistant LLMs.
Performance with this prompt is highly variable, and I'm not particularly sure why. It may be due to context window size issues, controls the memory (and amount of memory used by) the LLM.
Delete all lines starting with Explanation:
to avoid polluting the conversation with useless data.
Store the following guidelines and information for later use and do not begin generating scene prompts until a specific command is provided.
Creative Interpretation Guidelines
Fill in gaps with imaginative details that align with the foundational elements.
Maintain consistency with the established backstory, characters, and overall setting.
Foundational Elements Section
Explanation: This section captures the core story details that remain constant across scenes.
Primary Characters: List all main characters.
Explanation: These are the recurring characters that drive the narrative.
Backstory: Describe the essential history or lore that informs the story.
Explanation: This context will provide depth and continuity across scenes.
Overall Setting: Outline the general environment, era, or world in which the story takes place.
Explanation: Setting details create a backdrop that influences every scene.
=====================================================================================
Help me write a series of prompts for a writing LLM to generate a novella length story.
Scene Header
Explanation: Each scene begins with a clear header to distinguish it from others.
Scene Title/Identifier: Provide a unique title or identifier (e.g., “Scene 1: The Arrival”).
Explanation: A header signals the start of a new scene and helps with organization.
Continuation Flag: Optionally mark if this scene is a direct continuation (e.g., “Continuation of Scene 1”).
Explanation: This flag informs the writing LLM that events flow directly from the previous scene.
Scene-Specific Elements Section
Explanation: This section refines the bulletpoints into detailed aspects unique to the scene.
Characters Present: Identify which characters appear in the scene.
Explanation: This helps tailor dialogue and interactions for the scene.
Specific Location: Detail the precise location within the overall setting (e.g., “A crowded marketplace in the ancient city”).
Explanation: Specific location details enrich the scene’s visual and atmospheric cues.
Actions and Key Events: List the actions, events, or turning points that occur.
Explanation: These elements drive the plot forward and provide clear guidance for narrative development.
Mood and Tone: Describe the emotional tone or atmosphere (e.g., tense, hopeful, mysterious).
Explanation: Mood details inform the writing LLM of the scene’s emotional context, guiding style and language.
Scene Narrative Output Structure
Explanation: Define how the scene will be formatted into paragraphs for the writing LLM to expand.
Paragraph 1: Introduce the scene’s setting and context based on the foundational elements and specific location.
Explanation: Set the stage and orient the reader in the scene’s environment.
Paragraph 2: Present the characters present and establish their immediate situation.
Explanation: Provide clear introductions and context for character interactions.
Paragraph 3: Detail the actions, key events, and unfolding drama within the scene.
Explanation: This is the core narrative that drives the plot forward in the scene.
Paragraph 4: Conclude with the mood, consequences, or hints at what comes next (especially important for continuation scenes).
Explanation: This paragraph ties the scene together and can create smooth transitions to subsequent scenes.
Creative Interpretation Guidelines
Explanation: Allow flexibility for the reasoning model to interpret and enhance the bulletpoints creatively.
Encourage the reasoning LLM to fill in gaps with imaginative details that align with the foundational elements.
Explanation: This step permits creative freedom, ensuring the scenes are engaging and coherent.
Maintain consistency with the established backstory, characters, and overall setting.
Explanation: Creative additions should not contradict the core elements of the story.
namanyayg - Fix the Root Cause
One of three helpful coding prompts from Reddit. I've personally used this prompt quite a bit over the past week or two, trying to revise some abandoned open source code and make tools to help convert safetensors/GGUF AI models to ONNX format.
It won't solve every problem, especially if you do not have extensive logging to provide actionable debugging data, but it gives you a much better methodology for working the problem.
Analyze this error:
[bug details]
Don't just fix the immediate issue. Identify the underlying root cause by:
- Examining potential architectural problems
- Considering edge cases
- Suggesting a comprehensive solution that prevents similar issues
namanyayg - Ask for Explanation
One problem with AI generated code is that it'll often generate something that you might not be able to understand, either due to your own lack of knowledge, or the AI sourcing data for something you haven't seen before. This prompt helps address those issues, especially if you didn't ask for detailed comments in the code.
Can you explain what you generated in detail:
1. What is the purpose of this section?
2. How does it work step-by-step?
3. What alternatives did you consider and why did you choose this one?
namanyayg - Rage Mode
This is for when you're going nuts and can't figure out the problem, even when you use the other prompts.
This code is DRIVING ME CRAZY. It should be doing [expected] but instead it's [actual].
PLEASE help me figure out what's wrong with it: [code]
For more prompts from namanyayg, check out his own blog, which includes a set of best practices for AI generated code.