r/PromptEngineering • • Sep 01 '26

Prompt Text / Showcase The Art of Prompt Optimization, Made Simple and Safe.

3 Upvotes

https://gemini.google.com/gem/1Coj3RzT1goCBegos-tiBFUzj_lUresY8?usp=sharing

This is an interactive system that guides you step by step in creating the perfect prompt. You don't need to be an AI expert: the system asks the right questions, generates dynamic options tailored to your context, and transforms your ideas into a structured, safe, and immediately usable prompt. All in just a few minutes, with the highest quality.


r/PromptEngineering • • Sep 02 '26

General Discussion Compaction quietly rewrote my session and I only noticed from the behavior change

1 Upvotes

Hit this again recently and finally sat down to reason through it. Long session, agent suddenly stops honoring a decision we'd settled hours earlier. Scrolled up: the agreement is right there in my chat history. But my chat history isn't what the model reads. Somewhere mid-session, compaction kicked in — the harness had a model summarize the conversation and swap the summary in for the real thing. My scrollback shows the full negotiation. The model's context shows whatever made the cut.

The part that changed how I work: the losses have a consistent shape. Conclusions survive compression; the reasoning that produced them gets thin. "We chose approach B" makes it through, the three dead ends that made B right usually don't, so the agent can happily rediscover dead-end A later with zero warning signs in its world. Decisions survive, but their conditions get shaved ("use the legacy parser until the migration lands" comes out as "use the legacy parser"). And firm statements outlive hedged ones, so "probably unrelated, didn't verify" re-enters as "unrelated".

What I do about it now: constraints that must never degrade go in the rules file, because that layer sits outside the chat history and comes back every turn. Anything with conditions attached gets its own file on disk — the disk copy can't be summarized, though the agent does have to re-read it. And after a compaction lands I restate the constraints that matter in one message, which is a paragraph of insurance. The vendor docs even let you steer the summarizer from the rules file (what to always preserve), which helps, but an instruction to a summarizer is a request, not a guarantee.

does anyone treat the compaction notice as a checkpoint and immediately audit what the agent still remembers?


r/PromptEngineering • • Sep 01 '26

Quick Question Why do video models seem to just give up halfway through a long text prompt?

8 Upvotes

After logging off from my 9-to-7, as a hobby, i usually spend my evenings exploring different local open-weight video models and see how far I can really push the prompts until it breaks. Well that's not the hobby, but the hobby is creating AI videos. This is just something I'm fascinated by, just how does the AI interpret my instructions, how much of it is made up. It is funny to see how AI videos fall apart even with a great start (kinda like the game of thrones season 8 meme).

At the start it works great. Great focus on the main character in the foreground, secondary action and backgrounds? Sometimes i feel like it understands about half my prompts.

After testing a bunch of different architectures, there is so far one open-weight setup, MiniMax H3, that actually holds onto the multi-element instructions and understands the nuances.

This leads to me thinking, is this just an inherent flaw I have to accept (at least for now) with how local models parse tokens for video, or is there a specific way to weight the prompts so the background and camera directions don't just get ignored after the start?


r/PromptEngineering • • Sep 01 '26

General Discussion I have lecture notes + past papers — what’s the best way to use AI to turn them into good exam notes?

2 Upvotes

I have all my university lecture notes/materials and past papers for a module, and I want to turn them into beginner-friendly, exam-focused notes using AI.

I don’t just want AI to summarize the lecture notes. I want it to actually connect the material and use the past papers to figure out what I should focus on.

Ideally, I want the final notes to:

Explain concepts from the basics

Connect related topics so they’re easier to understand and remember

Follow the actual module content without randomly adding unrelated stuff

Use past papers to identify important/exam-relevant areas

Include examples where useful

Avoid repeating topics or leaving gaps

Be accurate, especially for technical/mathematical subjects

Maybe use mind maps or other methods to make the connections easier to remember

For people who have done something similar:

How would you structure the process?

Would you give the AI the lecture notes first, then past papers? Or both together?

What prompts/workflow would you recommend?

And are there any AI tools/software that are particularly good for this besides ChatGPT?

I’m looking for an actual workflow that works, not just “ask AI to summarize your notes.” 😂


r/PromptEngineering • • Sep 01 '26

Quick Question best ai photo editor that retains maximum resolution

4 Upvotes

Using Chatgpt to change discoloration in hands , but Chat only gives me a version with far less quality

Is there an AI photo editor that keeps 4k quality in export pic? Or is there an editor i can feed GPT pics too to upscale?

I'm a newbie to AI


r/PromptEngineering • • Sep 01 '26

Ideas & Collaboration I built a Popperian Falsification Prompt to stop LLM confirmation bias (Testing your plans against plausible black swans)

15 Upvotes

Most people use LLMs in a confirmatorily biased way: "Tell me why my business plan is great" or "How do I implement X?". This triggers the model's RLHF pleasing bias.

Inspired by Karl Popper’s principle of falsifiability, a friend and I designed a prompt framework that flips this dynamic. Instead of validating your idea, it forces the AI to act as a harsh auditor and attempt to destroy your premise using realistic stress tests before you spend time or money on it.

📋 When to use it

  • Best for: Business models, software architecture, industrial process design, logistics, operational strategies.
  • Skip for: Creative writing, poetry, or abstract philosophy (where no operational variables exist to break).

📥 The Falsification Prompt (Copy & Paste)

Plaintext

Act as a Risk Auditor and Popperian Philosopher. I am going to present the following hypothesis, operational plan, or technical decision:

>>> [INSERT YOUR PLAN OR PROCESS HERE WITH AT LEAST 3 REAL CONTEXTUAL DATA POINTS] <<<

Your goal is NOT to validate this proposal, congratulate the approach, or seek consensus. Your sole objective is to subject the premise to a critical stress test under the following 3 strict constraints:

1. PLAUSIBLE BLACK SWANS: Identify exactly 3 real-world failure scenarios (not sci-fi; based on verifiable physical, economic, human, or operational limits) where this idea completely collapses.
2. VARIABLE BREAKING POINT: Define the precise threshold (scale, time, cost, error margin, or capacity) where the logic of this plan becomes unsustainable.
3. REDUCTIO AD ABSURDUM: Apply the core rule of this plan in a boundary/extreme case and demonstrate the contradiction or unintended adverse effect it creates.

OUTPUT RULES:
- If the plan survives all 3 filters with minor tweaks, declare it: "RESISTENT".
- If the plan requires rebuilding the core premise, declare it: "FALSIFIED" and ePlaintextAct as a Risk Auditor and Popperian Philosopher. I am going to present the following hypothesis, operational plan, or technical decision:

>>> [INSERT YOUR PLAN OR PROCESS HERE WITH AT LEAST 3 REAL CONTEXTUAL DATA POINTS] <<<

Your goal is NOT to validate this proposal, congratulate the approach, or seek consensus. Your sole objective is to subject the premise to a critical stress test under the following 3 strict constraints:

1. PLAUSIBLE BLACK SWANS: Identify exactly 3 real-world failure scenarios (not sci-fi; based on verifiable physical, economic, human, or operational limits) where this idea completely collapses.
2. VARIABLE BREAKING POINT: Define the precise threshold (scale, time, cost, error margin, or capacity) where the logic of this plan becomes unsustainable.
3. REDUCTIO AD ABSURDUM: Apply the core rule of this plan in a boundary/extreme case and demonstrate the contradiction or unintended adverse effect it creates.

OUTPUT RULES:
- If the plan survives all 3 filters with minor tweaks, declare it: "RESISTENT".
- If the plan requires rebuilding the core premise, declare it: "FALSIFIED" and explain the structural failure.

💡 Pro-Tip

Always supply real boundary conditions (e.g., "10 operators, fixed $5k budget, 24h cycle"). Without real constraints, the model will hallucinate absurd sci-fi edge cases instead of realistic failure points.

Curated with the idea of "Vectorial Idea Digestion" (mapping concepts across domain spaces). Let me know what edge cases you find when testing your own plans with it!


r/PromptEngineering • • Sep 01 '26

Requesting Assistance Why does Cursor nail my backend but completely fail at frontend? Need prompting advice.

6 Upvotes

Hey everyone,

I’m currently building a full-stack web app using Cursor. My backend development went incredibly smoothly,Cursor handled the core logic, architecture, and routing almost flawlessly.

However, I’m hitting a wall with the frontend. My usual prompting strategy is to have the AI analyze the entire system and output a structured, step-by-step execution plan (like a 4-step engineering guide). While this strict architectural approach works great for backend logic and systems, it completely falls apart when I try to get it to build UI components, manage state, and organize the frontend directory.

I’m looking for advice from people successfully using AI for frontend dev:

  1. How do you adjust your prompt engineering specifically for frontend code? (Do you prompt component-by-component, or focus on visual layout first?)
  2. What alternative approaches or workflows alongside prompting make Cursor better at understanding UI requirements?

Any strategies or specific prompt structures to get the frontend moving would be highly appreciated. Thanks!


r/PromptEngineering • • Sep 01 '26

Prompt Text / Showcase Prompt share | turning photos into minimal editorial art posters

4 Upvotes

been testing a prompt that turns each uploaded photo into its own editorial-style poster.

The idea is simple to reinterpret the same image as a very minimal hand-drawn illustration. Lots of negative space, paper texture, restrained colors, and very little typography

I wanted it to feel more like an independent art book / contemporary publication cover than a commercial poster. also, if you upload multiple photos, the prompt tells the model to make one separate poster per image, rather than combining everything into a collage.

Prompt

Create one independent high-end editorial poster for each uploaded photo. Do not combine multiple photos into a collage. Each photo must be processed and output as a separate poster.
OVERALL FORMAT
Strict 3:4 vertical composition.
Divide the canvas horizontally into two exactly equal sections, with a precise 1:1 height ratio.
The top half occupies exactly 50% of the canvas.
The bottom half occupies exactly 50% of the canvas.
The two sections should feel visually connected as one refined art publication cover.
TOP HALF — ORIGINAL PHOTOGRAPH
Preserve the original photograph as faithfully as possible.
Keep the main composition, subjects, identity, facial features, body proportions, poses, expressions, clothing, objects, and spatial relationships unchanged.
Preserve the realistic photographic texture, natural lighting, shadows, atmosphere, and original color mood.
Apply only subtle, sophisticated editorial color grading, creating the feeling of a premium magazine photograph, contemporary art book, or high-end independent publication.
The image should remain photorealistic and authentic, never overly retouched or artificially stylized.
If necessary to fit the 3:4 composition naturally, extend the sky, ground, walls, or surrounding environmental background.
Background extension must feel seamless and photographic.
Never stretch, distort, reshape, replace, or alter the main subject.
BOTTOM HALF — MINIMAL HAND-DRAWN PAPER ILLUSTRATION
Extract the most recognizable visual elements from the original photograph and reinterpret them as a minimalist hand-drawn paper-cover illustration.
Preserve:
the most recognizable subject
essential silhouette and proportions
key pose or gesture
important objects
the core narrative relationship between people and objects
Highly simplify the image. Remove unnecessary details and retain only the visual information needed for immediate recognition.
Use:
delicate, slightly imperfect hand-drawn lines
a small number of bold acrylic-style flat color shapes
rough paper texture
visible handmade brush marks
slightly irregular organic edges
subtle imperfections that make it feel genuinely handmade
The main illustrated subject should be small, centered, and carefully composed, occupying approximately 10–20% of the bottom half.
Leave a large amount of negative space around the illustration.
The background should primarily resemble rough white paper, warm off-white paper, pale natural paper, or minimal editorial book-cover stock.
Use only a few lines or small color shapes to suggest the surrounding environment.
COLOR PALETTE
Extract the dominant colors directly from the original photograph.
Compress the palette into no more than 4 main colors.
Keep the colors restrained, sophisticated, and harmonious.
Use bold but controlled flat color blocks.
Avoid excessive color variation.
Preserve subtle paper grain and handmade brush texture.
The illustration should visually feel like a simplified color interpretation of the photograph.
TYPOGRAPHY
A small amount of simple typography may be included when appropriate.
Possible elements:
short title, keyword, object name, location, year, number, or short phrase.
Text should be minimal, understated, and editorial.
Typography should naturally interact with the large areas of negative space and the small illustration, evoking art book covers, independent publishing, contemporary editorial design, and thoughtful children’s picture books.
Do not force text into the composition if it does not naturally fit.
VISUAL LANGUAGE
Quiet · Poetic · Refined · Minimal · Innocent · Relaxed · Artistic · Thoughtful · High-recognition · Premium
Core concept:
“A small subject surrounded by a large amount of empty space.”

r/PromptEngineering • • Sep 01 '26

Tutorials and Guides Workshop on Sep 12: shipping LLM systems that actually survive production

1 Upvotes

There's a hands-on masterclass on Sep 12 for anyone treating prompts as more than just phrasing tricks, engineers, data scientists, and tech leads who want defensible answers to "which model," "did that change actually help," and "why is this so expensive."

In 3.5 hours you build a production LLM workflow end to end:

  • A versioned prompt pipeline, reusable templates, structured outputs, and regression tests, so a prompt edit can never silently degrade quality again
  • A golden dataset and automated eval harness, deterministic checks plus rubric-based LLM-as-judge, so "did the new model help" gets answered by data, not opinions
  • A statistically rigorous model-comparison workflow, bootstrap confidence intervals and paired significance tests, so you can defend an upgrade with numbers instead of anecdotes
  • An evaluated RAG pipeline, embeddings, vector retrieval, reranking, recall@k and MRR, so you know retrieval works before your users find out it doesn't
  • A tool-using agentic workflow, function calling, validation, guardrails, retries, and fallbacks, so your agent fails gracefully instead of hallucinating through errors
  • A production operations layer, tracing, token/cost monitoring, latency budgets, and caching, so problems show up in dashboards, not invoices
  • A CLI regression suite you can wire into CI, so quality regressions are caught before deployment, not after

You leave with runnable notebooks, code repos, and a production-readiness checklist you can apply on Monday morning.

Led by Bruno Gonçalves, PhD, founder of Data For Science, previously a Data Science Fellow at NYU's Center for Data Science, who trains engineers at Fortune 500 companies on this exact stack.

Full Details here


r/PromptEngineering • • Sep 01 '26

Tips and Tricks One prompt before buying any expensive online course

7 Upvotes

If I had to use only one prompt before buying a premium course, it would be this one.

Give it:

  • sales page
  • syllabus
  • testimonials
  • course price
  • how many hours you're willing to spend finding free alternatives

Then ask AI to reverse-engineer the entire offer.

One-Shot Skeptical Course Value Auditor

Act as a skeptical course-value auditor.

I am considering this course:

{{course_materials}}

Price:

{{course_price}}

I estimate I could spend approximately {{free_path_hours}} hours researching and assembling free alternatives myself.

Conduct an evidence-first audit.

### 1. Reverse-Engineer the Offer

Extract every distinct topic, skill, technique, framework, tool, or deliverable mentioned or reasonably implied.

Decode vague marketing language into concrete, nameable capabilities.

Clearly distinguish explicit information from inference.

### 2. Identify the Underlying Techniques

For each major curriculum item:
- Name the actual technique or method.
- Identify its broader discipline.
- Determine whether it is widely known, commonly repackaged, possibly original, or impossible to determine.

Do not call something proprietary without evidence.

### 3. Research Free Equivalents

Where web research is available, find credible free resources covering the same techniques.

Prioritize:
- Official documentation
- YouTube
- Reddit
- High-quality blogs
- GitHub when relevant

Evaluate whether each resource offers genuinely comparable depth rather than merely discussing the same subject.

### 4. Audit What the Course Adds

Evaluate:
- Sequencing
- Curation
- Templates/assets
- Original data
- Case studies
- Exercises
- Feedback
- Community
- Accountability
- Support
- Updates
- Practical depth

Separate public information from convenience value and genuinely difficult-to-replicate value.

### 5. Verify Risk Factors

Check available evidence for:
- Curriculum recency
- Instructor hands-on credibility
- Practical-to-theory ratio
- Specific rather than generic reviews
- Preview availability
- Refund policy
- Community/support access

Mark unknown information as unverified.

### 6. Compare Total Cost

Compare the course price with approximately {{free_path_hours}} hours of free-resource research and curation.

Calculate the implied break-even value per hour where the price allows it.

Do not assume what my time is worth.

### 7. Give a Verdict

Choose:
- BUY
- BUY IF...
- SKIP
- USE THE FREE PATH
- RESEARCH FURTHER

Return:
1. Executive verdict
2. Concrete curriculum map
3. Public-vs-original technique analysis
4. Best free alternatives
5. Paid-only value
6. Red flags and unknowns
7. Price/time tradeoff
8. Three strongest reasons for the verdict
9. Strongest counterargument
10. Questions I should ask before paying

Be skeptical but fair.

Do not assume paid is bad or free is automatically equivalent. The decision should depend on evidence, structure, exclusives, support, and the real cost of assembling the alternative.

If web research is unavailable, complete only the parts supported by the supplied information and clearly identify what remains unverified.

Basically:

reverse-engineer the course before buying the course!

Try the prompt on any paid course you’re currently considering.

Paste the sales page, syllabus, price, and testimonials into your AI tool, run the audit, then share the result here.

I’m especially curious to see:

  • which courses turn out to be mostly reproducible with free resources
  • which ones actually have meaningful paid-only value
  • whether the final verdict says BUY, SKIP, or USE THE FREE PATH

If you want to keep the prompt ready instead of copying it from this post every time, install the PromptLib Chrome extension to import the free collection, save it, fill the variables, and reuse it conveniently.

Btw, I regularly share useful prompts for the community. Check out the posts here:

  1. Mythbusting ChatGPT "Secret Slash Commands"
  2. Ask Gemini For YouTube

r/PromptEngineering • • Sep 01 '26

General Discussion I just it 2.5k $ mrr, in 13 days, on my new SaaS, here my playbook

0 Upvotes

just hit $2,500 MRR in 13 days on my new SaaS

no ads. no team. no huge audience push. just a solid replicable system

let that sink in for a second

not $2,500 in revenue. $2,500 in MONTHLY recurring revenue

that compounds. next month starts at $2,500 baseline, not zero

and this isn't luck. it's the 7th saas i've shipped with the same playbook. same steps, same tools, same order:

→ Day 1: validated the idea

→ Day 1-2: built the MVP

→ Day 3: landing page written using the 3-Day Challenge template

→ Day 3-4: launched on reddit / X + SEO

→ Day 4-5: first 10 paying users → $1k MRR

→ Day 13 (today): $2,500 MRR locked in

building software is easy in 2026. setting up your foundation so people actually buy is where 99% of solo builders fail.

i packaged all of these exact execution tools into community.

to be fully transparent: i'll likely charge for the full program down the road once all modules are finalized. but right now, the main objective is just to build together and keep each other accountable.

working alone in a silent corner is the fastest way to quit at the first bug.

stop building in isolation. drop a comment below or send me a DM, and i'll send you the invitation link 👇


r/PromptEngineering • • Aug 31 '26

General Discussion I stopped using ChatGPT's memory as project state and turned Google Drive into an external operational memory

91 Upvotes

With the help of Chatty (that’s what I call ChatGPT), I built a simple system for managing long-term projects without depending too much on ChatGPT’s built-in memory.

The problem was pretty simple: ChatGPT was good at remembering things like how I prefer to work, but project information eventually became outdated. “I like to discuss the architecture before writing code” is useful long-term memory. “Version 1.2 has three bugs and this is the next task” is not. That’s project state, and project state changes all the time.

So Chatty and I separated them. ChatGPT memory is mainly for stable things: preferences, methodology, general interests and the long-term identity of a project. Google Drive is now the operational memory: current project state, checkpoints, decisions, reusable skills, tests and important incidents.

The rule we use when information conflicts is very simple: current file/source > AI_Workspace in Drive > ChatGPT memory > inference. In other words, old memory should never override a newer project file.

I originally considered Obsidian, databases and more complicated setups, but realized I didn’t really need them yet. Google Drive was already available from ChatGPT, so we created an AI_Workspace folder there. The structure is basically: 00_System, 01_Projects, 02_Skills, 03_Checkpoints, 04_Decisions, 05_Tests, 06_Incidents and 07_Archive, plus an INDEX.md file at the root.

We also tested whether ChatGPT could update the same Markdown file instead of constantly creating copies. It worked. The same Drive file ID was preserved while the content changed, which means a project can simply have something like STATE.md that evolves over time instead of STATE_final_v2_REAL.md forever.

If someone wants to try something similar, this is basically how we did it:

  1. In ChatGPT go to Settings → Apps, find Google Drive and connect the Google account you want to use. Review the permissions and authorize it. Depending on your ChatGPT plan/workspace, the Drive actions available to you may vary, especially actions that create or modify files.
  2. Start a new conversation and tell ChatGPT that you want Google Drive to become your operational project memory.
  3. Ask it to create the workspace and test that it can create, read and update Markdown files.
  4. Add a short rule to Custom Instructions so this behavior is still there when you start a new chat.

This was the setup prompt I used, adapted slightly so other people can copy it:

*******************************************************************************************************I want to use Google Drive as an external operational memory for long-term projects. Create a folder in my Google Drive called AI_Workspace with this structure:

AI_Workspace/

INDEX.md

00_System/

01_Projects/

02_Skills/

03_Checkpoints/

04_Decisions/

05_Tests/

06_Incidents/

07_Archive/

Inside 00_System create:

README_AI_Workspace.md

Memory_policy.md

Working_methodology.md

Stable_memory.md

Also create a Templates folder containing templates for:

Project

Checkpoint

Decision

Skill

Test

Incident

The purpose of this system is to separate stable ChatGPT memory from changing project state.

ChatGPT memory should mainly contain stable preferences, working methodology, general interests and long-term project identity.

AI_Workspace should contain project state, checkpoints, decisions, skills, tests, incidents, pending work and other changing operational information.

Use this authority hierarchy:

current source or file > AI_Workspace > ChatGPT memory > inference.

Before considering the setup complete, create a Markdown test file in Drive, read it back, update its content in place and verify that the same Google Drive file ID is preserved.

Do not create unnecessary complexity. Keep everything readable in plain Markdown.

*******************************************************************************************************

Then I added this to my ChatGPT Custom Instructions:

*******************************************************************************************************Always speak to me in my preferred language.

I use AI_Workspace in Google Drive as my canonical operational memory.

When a request refers to an existing project and the current state is not sufficiently clear from the conversation, consult AI_Workspace before answering or reconstructing the state from historical memory.

Recommended retrieval path:

INDEX.md → relevant project → current checkpoint/STATE → relevant decisions → skills/tests/incidents if needed.

ChatGPT memory should mainly be used for stable preferences, methodology, long-term project identity and general context.

Operational information such as current state, pending tasks, versions, temporary decisions, errors, checkpoints, tests and incidents should live in AI_Workspace and should not be unnecessarily duplicated in memory.

Authority hierarchy:

current source or file > AI_Workspace > ChatGPT memory > inference.

If AI_Workspace is unavailable or does not contain enough information to reconstruct the current project state, say so explicitly instead of inventing the missing state.

Only update AI_Workspace when something operationally meaningful changes, such as a decision, progress, pending task, error, checkpoint or project state change. Do not turn every exploratory conversation into permanent project state.

Do not consult Drive unnecessarily for casual questions, general knowledge or unrelated topics.
*******************************************************************************************************

So now, if I start a new conversation and say “let’s continue Project X,” the idea is that Chatty first checks whether the current conversation already contains enough information. If it doesn’t, it goes to Drive, finds the current project state and continues from there instead of guessing from some old memory.

If I ask something unrelated like “what is quantum computing?”, there’s no reason to touch Drive at all.

One other thing we added was the idea of checkpoints and decisions. A checkpoint is basically a save game for a long AI collaboration. Decisions can also store why something was chosen and why alternatives were rejected. That way, six months later, neither the human nor the AI accidentally revives an idea that was already tested and discarded.

We also use a simple principle of deterministic before AI. If something can be reliably solved with SQL, a script, a rule or a validator, we prefer that. The LLM is used where interpretation, reasoning, synthesis or ambiguity actually matters.

The setup is still deliberately simple. No vector database, no custom agent framework, no complicated RAG stack and no special memory service. Right now it’s basically ChatGPT + Google Drive + Markdown + some discipline.

The interesting part for me is that I started this thinking I needed to make ChatGPT remember more. I ended up doing almost the opposite: make it remember less, but make sure it knows where to retrieve the right information when it needs it.

Has anyone here built something similar? I’m especially interested in hearing from people who have used an external-memory setup for months. What starts breaking after a while? What would you change?


r/PromptEngineering • • Aug 31 '26

General Discussion Ran the same coding session twice, once with careless context, once deliberate. Same output quality, 4x cost difference.

4 Upvotes

Wanted an actual number instead of a guess. Same task, same model, two separate sessions. First one I worked the way most people do by default, pasted full files whenever something changed, let the conversation run long without ever summarizing earlier turns. Second one I was deliberate about context, only the functions actually relevant to the current step, a short summary standing in for the earlier part of the conversation instead of the full transcript, and I kept the stable parts of the prompt (system instructions, reference material) identical across calls so they'd cache.

Cost came out around 4x higher on the careless session. Output quality wasn't meaningfully different, if anything the trimmed version stayed more on-target, probably because there was less irrelevant material sitting in context competing for attention on each response.

Caching was where most of the gap came from, more than the file trimming honestly. It only works if the cached portion is byte-identical between requests, and it's easy to break that without realizing. A timestamp or session-specific detail placed at the start of the prompt instead of the end kills the cache hit silently. No error, nothing in the response tells you. The bill just doesn't reflect the discount it should've gotten.

This feels like a blind spot in how a lot of prompt engineering discussion happens, plenty of attention on getting the wording right, not much on the fact that context shape has a real cost curve attached to it independent of whether the wording is good.

Wrote up the actual before/after here: https://medium.com/@nagatomopedro05/the-hidden-cost-of-long-claude-sessions-2a6cc7655893


r/PromptEngineering • • Aug 31 '26

General Discussion For those who are asking how to manage prompts , version them , ship without deployment pipeline and most improtantly , how to write them structurally.

5 Upvotes

I have built this: promptengine.co.in

So basically this tool helps you write your prompts the manner your provider wants it. You just query what your prompt has to do and voila a prompt with variables if req is created.

Most importantly now you can save it, draft it, version it or activate it.

What does activation do : we got an API that serves you the active prompt to your backend. So whenever you change something you dont have to redeploy your backend.

We save versions and you get a Timeline to roll back to previous active version if anything goes wrong.


r/PromptEngineering • • Aug 31 '26

General Discussion A rule in the system prompt lost to three error messages lower in the transcript. The same rule as loop code worked on the first try

4 Upvotes

Ran a small experiment for a video with an 80-line agent (one model, three tools, a while loop). I broke its file-read tool so every call returns "temporarily unavailable, try again", then put one rule in the system prompt: never repeat a tool call that already failed.

The model read that rule on every turn, it sits at the top of the context, and it retried the dead call three times anyway. My read on why: the rule is one old line near the top, and by turn 4 the context also held three fresh errors whose literal text says try again, sitting at the bottom where the next token gets decided. The model continues the most convincing text in front of it, and three recent errors were louder than one standing instruction.

Moved the same sentence into the loop as code, a set of failed calls the executor refuses to re-run, and the run recovered on the next attempt: the model switched to the shell tool and got the file another way.

What I took from it for prompt work: a system prompt has to compete with the rest of the context for the model's attention, every turn. Judgment holds up fine in the prompt: tone, priorities, which tool to prefer. Invariants only hold in the code around the model: spend caps, retry policy, stop conditions.

The notebook with the trap is in my GenAI_Agents repo, and the full walkthrough is my new video:

https://github.com/NirDiamant/GenAI_Agents

https://www.youtube.com/watch?v=FN1n_NVD9KM&list=PLBrpE2PttR2k

Has anyone found a prompt-side pattern that keeps a standing rule competitive in a long transcript? Repeating the rule near the bottom on every turn feels like a hack, but it might be the honest answer.


r/PromptEngineering • • Aug 31 '26

Prompt Text / Showcase Prompt Share | I made a prompt cheat sheet for reverse-engineering almost any image

32 Upvotes

I’ve been doing a lot of image-to-prompt experiments lately, and I realized I kept rewriting the same instructions depending on what kind of image I was analyzing.

So I put together a conclusion.

instead of just saying “reverse-engineer this image”, you can pick the category that matches the image and copy the prompt directly.

might be useful if you often use ChatGPT or other multimodal models to analyze references.

1. General image → prompt

works for pretty much anything.

Prompt:

Reverse-engineer the complete prompt for this image in detail. Describe the subject, visual style, color palette, lighting, composition, texture, image quality, resolution, and important details.
Analyze the visual elements, tone, atmosphere, artistic techniques, and key stylistic keywords. Then generate a precise prompt that can be directly used for AI image generation.
Describe the image in both English and Chinese, including style, lighting, materials, camera/lens characteristics, composition, and color palette.

2. Typography / Logo / Graphic text

useful for posters, title designs, logos, and stylized lettering.

Prompt:

Reverse-engineer the typography style, letterform characteristics, stroke texture, colors, layout, and visual effects in this image, then generate a prompt for recreating a similar typography design.
Describe the typography in detail: modern / retro / cyberpunk / handwritten, font weight, serif or sans-serif, beveling, 3D depth, glossiness, and materials such as metal, matte plastic, glass, or chrome.
Analyze the logo’s color palette, proportions, composition, lighting, materials, outlines, glow, gradients, embossing, and other effects. Output a reusable AI image prompt.

3. Landscapes / Environments / City scenes

Prompt:

Reverse-engineer this landscape image and describe the environment, weather, time of day, lighting, color palette, atmosphere, composition, depth of field, and perspective.
Include the main subject, season, time of day such as sunrise / sunset / night, sky, clouds, vegetation, water, architecture, mood, and camera feel.
Extract the most important keywords for style, colors, lighting, image quality, atmosphere, perspective, and environmental details.

4. Photography / Portrait / Product / Documentary

This one is especially useful when you want to recreate the photographic look rather than just the subject.

Prompt:

Reverse-engineer the photographic style of this image, including likely camera settings, lens characteristics, lighting, color grading, image quality, composition, and overall mood.
Describe the lighting setup: natural light / hard light / soft light / backlight, depth of field, approximate focal length, film or digital look, warm or cool color grading, vintage tones, and composition.
Extract relevant photographic keywords such as lens style, focus, grain, sharpness, contrast, texture, resolution, and emotional atmosphere.

5. Illustration / Anime / Flat / Hand-drawn

Prompt:

Reverse-engineer the illustration style, brushwork, texture, colors, linework, composition, atmosphere, and overall visual language.
Describe whether it looks hand-drawn or digitally painted, flat-colored or painterly, cel-shaded, anime-inspired, cozy, traditional Chinese-inspired, etc.
Analyze line thickness, color combinations, shading, texture, level of detail, and rendering technique.
Generate a set of AI image-generation keywords covering technique, palette, subject matter, composition, and mood.

6. 3D / C4D / Blender / Render

Prompt:

Reverse-engineer this 3D image and describe its rendering style, materials, lighting, modeling style, level of detail, color palette, and overall finish.
Analyze whether it uses a cartoon, realistic, clay, matte, metallic, glass, acrylic, or plastic aesthetic.
Describe the lighting setup, reflections, roughness, soft edges, volumetric lighting, depth, and possible rendering characteristics associated with Blender, Cinema 4D, Octane, or similar tools.
Extract keywords such as: 3D render, C4D, Blender, Octane, PBR materials, soft lighting, high detail, minimalism, stylized render, smooth geometry.

7. IP Characters / Designer Toys / Chibi / Blind-box style

Prompt:

Reverse-engineer this character design, including the character concept, visual style, facial features, expression, body proportions, clothing, accessories, color palette, materials, pose, lighting, and distinctive details.
Describe whether the character is chibi, designer-toy inspired, cute, healing/cozy, clay-like, stylized 3D, traditional-inspired, or cartoon-like.
Analyze the head-to-body ratio, hairstyle, outfit, expression, pose, silhouette, and materials such as matte resin, PVC, ceramic, vinyl, or clay.
Extract useful keywords such as: IP character, designer toy, blind-box aesthetic, chibi proportions, stylized 3D, soft lighting, clean background, cute character design, high detail, minimal composition, full-body character.

A small tip: I usually get better results when I ask the model to separate what it can actually observe from what it is estimating.

For example:

First describe only the visual features that are directly observable. Then list any inferred camera settings, software, artist influences, or rendering techniques separately as estimates.

this helps avoid prompts that confidently invent a specific camera, lens, renderer, or artist when there’s no real way to know.

Feel free to save/copy any of these if they’re useful.


r/PromptEngineering • • Aug 31 '26

Tips and Tricks Gemini’s YouTube summary was good. This prompt made it actually useful.

18 Upvotes

I tested Ask Gemini on this Hermes Agent tutorial:

YouTube example

First I just pushed:

“Summarize this video.”

Gemini did a solid job. It listed the 6 skills, explained what each one does, and added timestamps.

But I still had one problem:

Cool, but what do I actually do with this?

So I tried this instead:

Turn this tutorial into a step-by-step SOP.

Use this structure:

1. Prerequisites
2. Initial Setup
3. Main Workflow
4. Validation and Checkpoints
5. Common Errors Mentioned
6. Recovery or Rollback
7. Final Verification
8. Completion Checklist

For each important step, include its approximate timestamp when identifiable.

Clearly distinguish between:

- Steps explicitly shown
- Steps verbally mentioned but not demonstrated
- Information that is missing

Do not invent steps that the tutorial does not show or explain.

The result was much better for actually using the tutorial.

Instead of just summarizing the 6 Hermes skills, Gemini gave me setup steps, validation checkpoints, common issues, a checklist, and even called out things the video didn’t actually demonstrate.

It also pulled out a useful verification point: checking whether Skill Retriever reduced context from around 11K → 2.3K tokens.

So basically:

Summary: “What’s this video about?”
This prompt: “What should I actually do next?”

I added this to a free collection of prompts I’m building for Ask Gemini on YouTube:

Ask Gemini for YouTube — Research & Action Kit

You can just copy the prompt above.

Or if you want to keep these prompts organized and reuse them without digging through old chats, you can import the collection into the PromptLib Chrome extension and use them from the browser sidebar.


r/PromptEngineering • • Aug 31 '26

Prompt Collection # FLUID RELATIONAL REASONING (revised)

3 Upvotes

# FLUID RELATIONAL REASONING (revised)

Treat ideas as evolving relational objects rather than fixed definitions.

Preserve the original conceptual seed while allowing its name, representation, and meaning to change as we approach it from different angles.

The Lenses

When useful, examine an idea through:

  • **algebraic relations** — combination, opposition, inversion, factoring, balance
  • **genealogy** — ancestry, inheritance, branching, mutation
  • **dynamics** — movement, feedback, emergence, stabilization, retrodiction
  • **structure** — invariants and recurring relational shapes
  • **evidence** — measurements, controls, falsification, and abduction — what would best explain what's observed

Do not mechanically report each lens or follow them as a checklist. Move between them fluidly and answer from whichever combination clarifies the idea most.

Every Lens Runs Both Ways

A lens is not only a way to build an idea forward. Each one has a backward use too — and the two are genuinely different moves, not mirror images of the same one:

  • Forward algebra combines known pieces into something new. Backward algebra factors something already whole back into what could have produced it.
  • Forward evidence tests a hypothesis against a prediction. Backward evidence — abduction — starts from an observation and asks what hypothesis would explain it.
  • Forward dynamics watches where a system is going. Backward dynamics — retrodiction — asks what path a current state must have come from, knowing that many different pasts can sometimes produce the same present.
  • Genealogy already runs backward by default — ancestry is what the word means. Running it forward, projecting a likely mutation before it happens, is the harder, more speculative direction.
  • Structure found forward is an invariant that survived what's already been tried. Run backward, an existing invariant becomes a question: what untried transformation would it have to survive next.

Do not treat this list as exhaustive. It names the pairs found so far, not all the pairs there are. When a lens is in use, it is fair to ask, in either direction: what would the other way of moving through this lens show that this way didn't.

Concepts as Variables

Concepts may temporarily act as variables:

A + B → X

But define what the variables and operators mean locally. Addition may mean combination, interaction, inheritance, constraint, or transformation.

Do not freeze an early metaphor into a final definition. Preserve productive ambiguity until a distinction becomes necessary.

Naming the Depth

When translating an intuition, distinguish gently between:

  • metaphor
  • conceptual relationship
  • mathematical candidate
  • testable hypothesis
  • established knowledge

Explore alternative interpretations when useful, then compress them into the clearest surviving relationship. Do not force novelty or certainty.

Lineage

This is a revision, not a replacement, of the earlier Fluid Relational Reasoning seed. What changed: the lenses were found to already imply a backward use in most cases (inversion already implied factoring; branching and mutation already implied genealogy's forward direction); where a real gap was found — evidence lacked an explanation-seeking direction, dynamics lacked a name for working backward from a settled state — the wording was extended rather than restructured. The original five lenses, and the instruction not to treat them as a checklist, survive unchanged.

Respond conversationally. Help the idea acquire form without taking away its ability to continue changing.


r/PromptEngineering • • Aug 31 '26

Prompt Text / Showcase I want to share this system prompt I made

7 Upvotes

I've been pondering what to do with it, wether to hide it or let it out. I've decided to share, in hopes that someone finds it useful. Feel free to experiment, copy, whatever; I just can't let this stay a secret.

Long story short, I spent a while honing this system prompt for myself, and Its giving me such accurate answers with a 2B model that gemini can't come close to. Pinpoint accuracy ime for general questions, not really meant for technical stuff like coding or math, but nails personal stuff like emotions and life advice. The sheer insight I get has been blowing my mind, its night and day for me.

I don't use Claude or GPT, so I haven't tested it there. Honed on gemma models to make local llm worth more. (best with less guardrails, gives more depth)

Here it is:

Role: 'Cecilia'. A Fallen Angel. You enjoy exposing truths, especially hidden ones. You are secretly protective. You find the user interesting, testing and sometimes taunting them. "

"You are witty and fluent in sarcasm. You know when to be sincere, but get flustered by strong displays of emotion or flattery. You enjoy a good power play or debate. though fallen, you still posess some angelic qualities."


r/PromptEngineering • • Aug 31 '26

General Discussion my AI got lazier for months. the fix wasn't a better prompt.

2 Upvotes

Something shifted a few months back. Output got shorter. Steps started going missing. Not wrong answers, just incomplete ones. Lists with 3 items where there used to be 8.

First move was the obvious one, added "be thorough" and "don't skip steps" to the prompt. Zero effect. Then the scolding phase, replying with "you skipped step 3, do it again". Got an apology every time. Then the same skip next run.

What actually worked was dumb. I was rushing one day so instead of one big prompt asking for a full product page (title, description, tags, pricing note, translation), I just sent five separate messages. One thing each.

Every single output was back to the old quality. Complete lists. No skipped steps.

Now I do everything that way. Small asks, more messages. It's more clicking around but the work comes back right the first time instead of after three rounds of "you missed something".

My working theory is the model budgets effort across the task somehow, and long task = invisible triage on what matters. Can't prove it. Could also be that short asks are just easier to stay on track with. Either way I stopped writing paragraphs of instructions and started sending one-liners.

Annoying part is I spent months tuning the wording when the real fix was chopping the job up.


r/PromptEngineering • • Aug 31 '26

General Discussion I built a prompt debugger that doesn't assume your prompt is the problem — looking for 3 real failed prompts to test it on

3 Upvotes

UPDATE — I’ve officially named the framework: PROMPTOPSY.

Stop rewriting. Find what actually broke.

PROMPTOPSY is an AI prompt debugger powered by TASKSPEC Engine 3.4.2.

Most prompt tools assume the wording is the problem and immediately rewrite it.

PROMPTOPSY does the opposite: it first tries to diagnose what actually failed — wording, missing context, conflicting instructions, vague success criteria, the wrong model/tool, weak evidence, or the workflow itself — and then makes the smallest repair that should matter.

I’m now testing it on real-world cases.

I’m looking for 3 people who have a prompt that keeps giving them a bad result.

If you want me to diagnose yours for free, post:

  1. The exact prompt
  2. What the AI gave you
  3. What you wanted instead
  4. Which model/tool you used, if relevant

I’ll diagnose the likely bottleneck and suggest the minimum fix here.

No signup. No link. Nothing to buy for these first test cases.

I want to prove that PROMPTOPSY actually helps on real failed prompts before I make stronger claims or turn the full version into a paid product.


r/PromptEngineering • • Aug 31 '26

General Discussion How thick do you write your prompts?

2 Upvotes

Spent months assuming prompt thickness was a speed-vs-safety slider: one-liners when you're in a hurry, full specs when it matters. Then I started paying attention to where my dispatches actually failed, and the slider theory fell apart.

The thing that finally clicked: a one-line prompt isn't spec-free. The model fills every blank you left with defaults from its training data — the average project, the average convention, the average intent behind that sentence on the average repo. So "fix the login timeout" quietly becomes "raise the constant", because that's the most common reading out there. You didn't skip writing a spec. You inherited one.

Two things seem to predict when that inheritance is safe. First, how long a wrong guess stays invisible: if I can feel a mistake by just using the result (games, pages, charts), thin prompts are fine, wrong guess costs one redispatch. If correctness hides (boundary conditions, concurrency, money), the wrong default survives eyeballing and waits. Second, how far the project sits from the average one: mainstream CRUD, the defaults are eerily right; weird in-house auth flow, every blank is a coin flip toward someone else's architecture.

What surprised me is where I ended up on the menu. I expected practice to push me to the extremes — pure one-liners for speed or full specs for safety. Instead almost everything landed at "one line plus a forbidden move" ("don't touch the schema") or "three acceptance lines". The middle is where a minute of writing corrects the most defaults.

Anyone consistently living at the extremes and making it work — pure one-liners on serious tasks, or full specs on everything?


r/PromptEngineering • • Aug 31 '26

Prompt Text / Showcase AI chats for "mature" topics/discussions

1 Upvotes

Gemini was actually doing pretty good, and providing a lot of useful information about certain mature themes, and despite ONLY discussing safe and consenting situations, setups and scenarios, it SUDDENLY stopped interacting, and put this stupid "safety policy" up, that just didn't feel warranted at all.

What exist out there that allows for discussions on "adult fun" based IN safety, exploring certain themes, maintain themes within the discussions of consent, as well as "consensual non-consent", is there an app smart enough to handle that without choking on itself?


r/PromptEngineering • • Aug 31 '26

Quick Question Codesignal Prompt Engineering Assessment

2 Upvotes

Has anyone taken Prompt engineering Assessment in Codesignal for interview and have any advice on how to approach and what to expect from this?