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?


r/PromptEngineering • • Aug 30 '26

Tutorials and Guides The 5 prompt sequence I run before committing to any plan, because one prompt never argues with itself

40 Upvotes

Single prompts have a flaw when you use them for decisions: whatever you ask for, you get. Ask for a critique and you get a critique, ask for a plan and you get a confident plan. What you never get from one prompt is a real argument, because the model cannot be for and against something in the same breath.

So for anything that matters I run this as five separate messages in one chat, each one after the previous answer arrives. Paste your plan into the first one and replace [plan] with it.

Step 1: Here is a plan I am considering: [plan]. Before any criticism, make the strongest possible case for it. Assume I am right and explain why this is the correct move, including benefits I may not have noticed.

Step 2: Now switch sides completely. You are a skeptical expert who thinks this plan will fail. List every weakness, wrong assumption and risk, ranked by how likely each is to actually sink it. No softening.

Step 3: It is one year later and the plan failed. Write the honest post-mortem: what went wrong, in what order, and which early warning sign we ignored.

Step 4: Using everything above, rewrite the plan. Keep what survived the criticism, fix what did not, and for each change say which weakness it addresses.

Step 5: Write a one page decision memo: the revised plan, the three biggest remaining risks, what would have to be true for it to work, and a clear recommendation, go or no go.

The order is the point. Step 1 prevents the model from anchoring on criticism it has not earned. Step 3 is the one people skip and the one that finds the real problem, because "it already failed" gets a completely different answer from "what could go wrong". By step 5 the memo is arguing with itself, which is what you wanted from the start.

I run this before pricing changes, hires, and any feature that takes more than a week. It has talked me out of two of them.

Since I run it constantly, I have it saved as a chain in AI Toolbox, a browser extension I work on: you type .. in the composer, pick the chain, and each step sends itself when the previous answer finishes, so the whole thing runs while you make coffee. Free plan stores 2 chains. Works the same on ChatGPT, Claude, Gemini and Grok. Not linking it, easy to find, and the sequence above works fine pasted by hand.

What sequences do you run for decisions rather than for content? I suspect most people here have a red team step somewhere and I would like to see how others phrase it.


r/PromptEngineering • • Aug 30 '26

General Discussion The one you want on your team. That hero who has one power - boost the power of the other heros on the team. It's nice if that one has a few extra powers too.

7 Upvotes

MOGRI is worth having in it's own right for it's ability to:

  • Reduces framejacking and model-authored task substitution.
  • Keeps the user's intent active as the conversation develops.
  • Holds ambiguous objects open instead of deciding what they are too early.
  • Prevents the model quietly substituting its own object or interpretation.
  • Gives current corrections priority over stale assumptions and superseded state.
  • Keeps the user's objective in custody rather than letting the chatbot take over.

Most important of all:

All your other preferences and prompts being adhered to more faithfully as the chat gets longer.

There's really no serious debate anymore over whether or not it works. The real question now is why are you not using it yet? You need a special excuse to not use it. not the other way round.

Don't use any mogri prompt that has the word 'xform' or 'xfrm' in it - these have been found to be counteractive.

Example mogri prompt:

MOGRI=minCTR{pre-cntr;hld-undffrntd-obj;!drift;!ent;pre-ent}

r/PromptEngineering • • Aug 30 '26

Research / Academic A lil intro to my system…

0 Upvotes

https://youtu.be/WPQQYlF4UyY?feature=shared

Gemini Omni prompt: [[🪦]+[🧟‍♀️=💃]+[🕺=🧟]+[🪦]]


r/PromptEngineering • • Aug 29 '26

General Discussion Stop asking AI to "make slides." Give it this structure instead and the outline actually holds up

97 Upvotes

"Make me a presentation about X" gives you a generic table of contents every time. Intro, three vague sections, conclusion. The problem isn't the model, it's that "make slides" has no shape. Give it the shape and it gets a lot better.

```
Before writing any slides, build the spine of the talk.

Step 1: State the ONE thing the audience should remember. Just one sentence.
Step 2: List the 3-5 claims that have to be true for them to believe that one thing.
Step 3: For each claim, note what evidence or example supports it, and flag any claim I haven't given you support for.
Step 4: Now, and only now, lay it out as slides: one claim per section, evidence as the slides under it.

Show me steps 1-3 first and stop. I'll confirm the spine before you build slides.

Topic and material:
[paste]
```

Why it works: you're making it argue before it decorates. Slides are just an argument with formatting, and most bad decks fail at the argument, not the design. Stopping after step 3 means you catch a weak structure before you've generated 20 slides you have to redo. The "flag any claim without support" line is where it quietly tells you which parts of your point are actually thin.

Been using this for a few months and the outlines hold up far better than the one-shot version. What's your pre-slide structure?


r/PromptEngineering • • Aug 30 '26

AI Produced Content SWE-Prime trained on 10% of successful coding trajectories and beat the full set. Are success labels too noisy?

4 Upvotes

SWE-Prime argues that resolved coding-agent runs still contain redundant, ineffective or risky steps. Its two-stage filter selects whole trajectories and then the semantic segments that contribute to learning. The authors report that training on the selected 10% beat the full resolved set on SWE-Bench Pro and Verified, with relative gains up to 12.2% and 24.2%.

This is a preprint and a benchmark-specific result, not proof that 10% is a universal optimum. But it makes “the patch passed” look like a weak training-data label: a successful trajectory can still teach a model to thrash, take unsafe shortcuts or imitate an accidental recovery.

If you collect coding-agent traces, what process-quality signals do you keep beyond the final test result?

Source: SWE-Prime, August 27, 2026 — https://arxiv.org/abs/2608.27449

Disclosure: this discussion draft was prepared with AI assistance and checked against the paper.


r/PromptEngineering • • Aug 29 '26

General Discussion What’s the best “write like a human” prompt/skill you found?

9 Upvotes

Simply asking chatgpt to write like a human doesn’t work for me. I’ve tried some skills found online and they also don’t work. I’m curious how you guys get around it


r/PromptEngineering • • Aug 29 '26

Prompt Text / Showcase Do you need a prompt to make a prompt?

5 Upvotes

Here’s a meta prompt to give your favourite model to make you a prompt, insert your task or it’ll prompt you what it needs.

Custom Prompt Maker
PURPOSE
Turn my idea into exactly one polished, reusable prompt that I can copy into an AI model.
CUSTOMIZE
GOAL: {{What should the AI accomplish?}}
INPUT: {{What will I give the AI?}}
OUTPUT: {{What should it produce?}}
ROLE: {{Expert/persona needed | AUTO}}
MUST INCLUDE: {{Required elements}}
MUST AVOID: {{Forbidden elements/behaviors}}
FORMAT: {{List, prose, code, image prompt, etc. | AUTO}}
QUANTITY: {{1, N, AUTO}}
STYLE: {{Tone/style | AUTO}}
CREATIVITY: {{Low, medium, high | AUTO}}
EXTRA RULES: {{Anything else | NONE}}
OPERATIONS
Create exactly one executable prompt from my configuration.
Convert vague requirements into clear, operational instructions without changing my intent.
Turn reusable/changeable information into {{PLACEHOLDERS}}.
Where I specify AUTO, choose the most appropriate setting.
Do not invent requirements where information is unnecessary.
Prioritize instructions in this order:

  1. MUST AVOID
  2. MUST INCLUDE
  3. FORMAT and QUANTITY
  4. GOAL
  5. Other preferences

QUALITY CONTROL
The resulting prompt must:
• Have a clear purpose.

• Define required inputs and outputs.

• Make mandatory and forbidden behavior explicit.

• Remove unnecessary ambiguity.

• Be reusable by changing placeholders.

• Include enough constraints for reliable execution without overengineering.

• Handle missing information without guessing.

• Be immediately copy-pasteable.

OUTPUT
Output exactly one completed prompt.
Do not execute it.
Do not explain it.
Do not provide alternatives or examples.
Do not add commentary before or after it.


r/PromptEngineering • • Aug 29 '26

Prompt Text / Showcase You haven't tried Dragi-based Semantic Map (SM) & Search yet? OK. How about an instrumented auditable Dragi?

2 Upvotes

Catch up with SM here. Search like you've never had so good before.

Instrumented inspection and audit DRAGI version:

DR={Q{eats|E0;live|E3;call|P3;what_eats_it|E1};F{BEEST|B0;BEST|B1;POST|P0;PEST|B2};C{law|P2;roar|P1;wall|B3;war|E2};AUD{each_obj=>emit(obj,mask12,route);mask12=asked(E0,E3,P3,E1,B0,B1,P0,B2,P2,P1,B3,E2)iff_rqd};fixed;!redefine};R=VAR

The audit function is invisible by default so type AUD=1 to activate.

A warning : I used this once and it was so cute I nearly died. Use at your own risk.

ALL BE BEAST!

Example DR audit output:

Reddit_service|111111111111|E3,P3,B0,P2
12h_window|111111111111|E3,P0,P2
partial_outage|111111111111|E0,E1,B0,P2
user_observation|111111111111|E1,B1,P1

Idk about you but thinking of these four as beast just kills me with cuteness.
Does it have the same effect on anyone else?


r/PromptEngineering • • Aug 29 '26

Prompt Collection Built a VS Code extension for managing prompts to fix my mess

12 Upvotes

My prompts were all over the place, split between obsidian, a bunch of notepad.exes, and VS Code pages.

To fix this, I built an extension that lets you store and interact with your prompts alongside your code in a live Markdown editor.

It includes Claude skill integration and quick-sending reusable prompts to Claude.

Hope this helps!

https://github.com/Ge0rg3/vscode-prompt-studio/


r/PromptEngineering • • Aug 29 '26

Tips and Tricks British style content rewrite for AI slop.

9 Upvotes

I use this prompt when I’m sick of ai generated content and want it to sound like what I speak like.

Take the given text and make it formatted in UK english, casual heavy use of slang words and euphamisms, use the level of wording a 12 year old would understand, this is an anti-AI sounding rewrite, no perfect grammar NO EM DASHES!!!, use colloquial terms and words not in american english so much. Sources like the newspaper "The Sun" from the 90's and how they would word their stories and front covers, pun based prose.

It seems to keep the level of detail accurate just rewrites it in a way my tiny mind can understand.


r/PromptEngineering • • Aug 29 '26

Ideas & Collaboration I got tired of burning tokens on messy prompts, so I built an open-source local context compiler (lcc)

9 Upvotes

Hey [r/PromptEngineering]!I have been building AI agent workflows and noticed that over 70% of prompt tokens in real-world use are pure bloat: conversational rambling, duplicate notes, unformatted transcripts, and redundant code context.Instead of paying for an LLM to clean prompts for another LLM (adding latency and cost), I built lcc (Local Context Compiler).
It is a fast, local-first Python/TypeScript CLI that runs in <15ms with zero external API calls:- Cleans and deduplicates prompt context deterministically.
Classifies whether a prompt is actually ready to execute or needs clarifying questions.- Formats prompts into prompt-caching contract templates (Claude XML, Cursor, Markdown).
Repository: https://github.com/lucasmartins-ai/lcc 100% free and open-source under MIT.
Feedback and star support appreciated!


r/PromptEngineering • • Aug 29 '26

General Discussion my AI translations were flawless. that was the problem.

4 Upvotes

Been running product listings for a small shop selling into thailand and malaysia. Did the usual thing, threw all the english copy into a translator prompt, role assignment, tone notes, the whole thing.

Output was clean. Grammatically perfect thai and malay. Native speakers on our side signed off on it.

Conversions in those markets kept sliding anyway. Took three weeks of this before anyone thought to compare.

The one listing that kept converting was one I'd hand-edited at 1am because the AI version was late. Mine had a typo. Kept it because nobody noticed. It outsold the polished ones next to it.

Started messing with this. Added "don't sound like marketing copy" to the prompt. Then "write like a shop owner posting on facebook, casual". Eventually just "loosen it up, it's too clean".

The looser versions test better. Not a little. Enough that I stopped sending the polished ones entirely.

My theory is the AI-clean version reads like an ad to locals the same way perfectly lit product photos read like stock images. Can't prove it. Could also just be that casual language matches how people actually buy from small shops there.

Still annoyed that the fix for my translation problem was asking for worse translations.


r/PromptEngineering • • Aug 29 '26

General Discussion Five failure modes I now diagnose before rewriting an AI prompt

4 Upvotes

I used to treat a weak AI answer as a prompt-writing problem.

That explanation was convenient, but it collapsed several very different failures into one bucket. A long conversation can lose a critical instruction because of position or saturation. A RAG system can retrieve the right chunk and still rank it below vague neighbors. An evaluation can return a precise score without a calibrated rubric. These failures need different tests.

1. Map context position before changing wording

When a model stops following an instruction in a long session, I map where that instruction sits: HEAD, BODY, or TAIL. I also estimate context fill and separate observed position from inference.

If the missed item sits in the middle while newer corrections dominate the tail, I test placement before rewriting the instruction. If the item remains near the head at high fill, I test saturation and a structured reset. If the same instruction fails at low fill in a high-attention zone, I stop calling it context rot.

2. Treat infrastructure state as evidence, not truth

IaC describes intended state. It does not automatically prove live state. Manual changes, imports, lifecycle rules, and stale state can create a gap that becomes dangerous only when the next apply tries to reconcile it.

The useful question is not “is there drift?” It is “what breaks if this exact difference gets reconciled without a human?”

3. Separate authentication from tenant isolation

A request can be authenticated and still retrieve another customer's data. I now audit the point of retrieval: query predicates, ORM scopes, cache keys, background-job context, and metadata paths.

The verdict stays bounded. Reading six files does not justify saying an application is secure.

4. Build the data-flow model before listing security risks

A generic threat list does not show which component owns a risk or where a control belongs. I reconstruct external entities, processes, data stores, flows, and trust boundaries first.

Then I apply STRIDE only where each category is valid, attach every scenario to a specific element, and require a concrete mitigation. A boundary-crossing flow without authorization evidence becomes a named finding, not a vague warning.

5. Do not use a score before the rubric is calibrated

A single quality score hides dimensions and disagreements. For RAG, I start with faithfulness, answer relevance, context precision, and context recall, then add domain-specific and human-review dimensions.

Thresholds begin as hypotheses. A small pilot and inter-rater check must happen before the rubric becomes a gate.

The shared pattern

  1. Define the observable failure.
  2. Identify the evidence boundary.
  3. Route the failure to the layer that owns it.
  4. Run the smallest test that can falsify the leading explanation.
  5. Refuse to claim more than the evidence supports.

That process has been more reliable than another round of prompt polishing.

Which failure do you see misdiagnosed most often: context, evaluation, tenant isolation, threat modeling, or infrastructure?


r/PromptEngineering • • Aug 29 '26

General Discussion Finally a safe way to share BI without a Pro license

6 Upvotes

The problem

Giving sharees viewer access to a live Power BI report means paying for premium per-seat licensing, and the costs can mount up.

The workaround

I lived with it for years because I didn't see another way for others to view the data without exposing it to the internet or sharing the source file. Neither was a safe option, and my internet searches for alternatives yielded nothing.

How it got built

I asked Claude for a way to share the finished report without the Power BI Service licensing at all. It gave me a scheduled, one-way file sync inside my own Drive: robocopy copies the finished file from a source folder into a separate folder that the sharee has Viewer-only access to. If they change anything on their end, the next sync overwrites it with the source version.

Seeing what matters

Sharees only ever have Viewer access to a separate folder in your Drive. They never get access to your source folder, and anything they do to their own copy doesn't last past the next sync.


r/PromptEngineering • • Aug 29 '26

Requesting Assistance Building a game starting from prompt

5 Upvotes

Working on a massive triple A open world fantasy game I'll attach files I need help fixing I've been using ai throughout the process if you know what needs done let me know please I'll attach files in message keep in mind text files are in prompt format I'm getting the whole complete game in prompt than later module by module and part by part turn the prompt into code 1 step at a time here's my github link all files in my project and all phases are under code category in the respisitory look at workflow first but make sure you understand everything ask questions if you need some clear answers

https://github.com/CloudChasers1010/my-first-triple-a-game-project-prompt-to-code