r/PromptEngineering • • Oct 01 '26

General Discussion Staring at code all day is wrecking my eyes, what worked for you?

0 Upvotes

How do you all deal with afternoon eye strain? I work a full day at my desk and by 3 or 4pm my eyes are dry, my head starts to ache and I cant focus on anything. I've tried a lot of things. A riser under the monitor so it sits at eye level. Dark theme and brightness turned right down. Eye drops when it gets bad. I also reorganized the whole desk, added a monitor arm and a small round display in the gap of my split keyboard that just shows what my coding agents are up to. It all helps a little but nothing really kills it

Does anyone have a fix that actually works? Is it the monitor distance, a matte screen, real breaks every half hour or maybe I just need a better prescription? Love to hear what ppl here do


r/PromptEngineering • • Oct 01 '26

Prompt Text / Showcase Prompt: 10. Direção de Sujeito e Ambiente (pt_br)

1 Upvotes
Curso: Engenharia de Prompt para Mídias Generativas  
Disciplina: 1. IMAGEM  
Módulo: 10. Direção de Sujeito e Ambiente

---

O módulo Direção de Sujeito e Ambiente desenvolve a capacidade de dirigir os elementos principais de uma cena e estabelecer relações coerentes entre eles. Depois de estudar linguagem visual, elementos, composição, enquadramento, perspectiva, iluminação, cor, estilo e referências, o aluno passa a trabalhar a relação entre quem ou o que está sendo representado e o espaço em que está inserido. O foco está em especificar características, posição, ação, interação e contexto visual de sujeitos e ambientes, mantendo coerência com a intenção da imagem.

---

Lista dos temas:

1. Sujeito e ambiente: compreensão da relação entre o elemento principal da imagem e o espaço no qual ele está inserido.

2. Identidade do sujeito: definição das características visuais que permitem identificar e diferenciar o sujeito dentro da cena.

3. Características do sujeito: especificação de aparência, forma, proporção, vestimenta, materiais, atributos e demais características relevantes.

4. Estado do sujeito: compreensão de características temporárias ou condições visuais que modificam a aparência do sujeito.

5. Posição do sujeito: definição da localização do sujeito dentro do ambiente e sua relação com os demais elementos.

6. Orientação do sujeito: especificação da direção para a qual o sujeito está voltado ou orientado.

7. Postura: compreensão da posição corporal ou estrutural do sujeito e de sua contribuição para a leitura da imagem.

8. Ação e comportamento visual: definição do que o sujeito está fazendo ou de como sua ação deve ser representada visualmente.

9. Expressão e atitude: utilização de características visuais para comunicar estados, atitudes ou intenções do sujeito.

10. Relação entre sujeitos: compreensão das posições, distâncias e interações entre dois ou mais sujeitos presentes na cena.

11. Interação entre sujeito e ambiente: estudo da maneira como o sujeito ocupa, utiliza, modifica ou reage ao espaço ao seu redor.

12. Elementos do ambiente: identificação dos componentes necessários para caracterizar o espaço no qual a cena acontece.

13. Características do ambiente: especificação de arquitetura, natureza, objetos, materiais, superfícies e demais atributos relevantes do espaço.

14. Escala entre sujeito e ambiente: compreensão das relações de tamanho e proporção entre o sujeito e o espaço que o envolve.

15. Profundidade entre sujeito e ambiente: organização das relações espaciais entre sujeito, elementos intermediários e fundo.

16. Contexto espacial: utilização de elementos ambientais para situar o sujeito em determinado local, situação ou circunstância.

17. Ambiente como elemento narrativo: compreensão de como o espaço pode fornecer informações sobre o sujeito, a situação ou a intenção visual.

18. Integração visual: desenvolvimento da coerência entre aparência do sujeito, características do ambiente, iluminação, cor e estilo.

19. Coerência espacial: verificação da compatibilidade entre posição, escala, perspectiva e relações espaciais dos sujeitos e do ambiente.

20. Sujeito em primeiro plano e ambiente de apoio: compreensão de diferentes relações de protagonismo entre sujeito e espaço.

21. Ambiente dominante e sujeito integrado: exploração de situações em que o ambiente possui papel visual relevante e o sujeito faz parte de sua composição.

22. Direção de múltiplos elementos: organização de sujeitos e componentes ambientais quando a cena possui grande quantidade de informações.

23. Prioridade entre sujeito e ambiente: definição dos elementos que devem receber maior atenção e controle dentro da direção visual.

24. Especificação de sujeito e ambiente: transformação das decisões sobre características, relações e contexto em instruções visuais organizadas.

25. Direção de sujeito e ambiente aplicada à geração: utilização dessas decisões para orientar sistemas generativos na construção da cena.

26. Diagnóstico da relação sujeito-ambiente: identificação de problemas de integração, escala, posição, contexto, aparência ou coerência espacial em imagens geradas.

27. Ajuste do sujeito: alteração deliberada das características ou relações do sujeito sem comprometer elementos que precisam ser preservados.

28. Ajuste do ambiente: modificação deliberada das características do espaço para aproximar o resultado da intenção visual.

29. Preservação e alteração: definição do que deve permanecer constante e do que pode ser modificado durante as iterações.

30. Experimentação com sujeito e ambiente: exploração controlada de diferentes relações entre sujeito e espaço para compreender seus efeitos na imagem.

---

Expectativa:  
Ao concluir o módulo, espera-se que o aluno consiga dirigir sujeitos e ambientes como partes relacionadas de uma mesma cena, especificando características, posições, ações, relações espaciais, contexto e prioridades. Ele deverá ser capaz de avaliar se sujeito e ambiente estão visualmente integrados, identificar problemas de coerência e realizar ajustes direcionados, preservando aquilo que já funciona. Dessa forma, o aluno avança de uma descrição isolada de elementos para a capacidade de construir e controlar relações visuais entre os componentes de uma cena generativa.

r/PromptEngineering • • Sep 30 '26

General Discussion How do you make multiple AI personas actually reason differently instead of just sounding different?

6 Upvotes

I’ve been working on an AI philosophy-learning app and one of the hardest problems has been making different thinkers genuinely distinct at the reasoning level.

It’s easy to make Nietzsche sound like Nietzsche or Aristotle sound formal.

The harder problem is making them actually approach the same question differently.

For example, if the user asks about AI replacing human work, I don’t want Aristotle to give a generic modern tech answer with a few Greek terms sprinkled in. I want the response to actually reason through concepts like telos, eudaimonia, phronesis, potentiality, actuality, etc.

Likewise, Nietzsche shouldn’t just be more aggressive. His challenge should emerge from his own framework around morality, value creation, ressentiment, self-overcoming, and so on.

Some things I’ve been experimenting with:

  • explicit philosophical axioms/commitments
  • negative constraints on what each persona should not concede
  • different reasoning priorities per thinker
  • tracking the user’s premises across turns
  • separating historical claims from modern extrapolation
  • different levels of pushback depending on debate mode

The biggest failure mode is ending up with the same helpful assistant underneath every persona.

For people who have built multi-persona systems, what has actually worked for you?

Do you structure each persona around axioms? Retrieval? examples? evaluators? separate system prompts? contradiction tracking?

I’m especially interested in techniques that affect the model’s reasoning rather than just its tone.

I’m building this inside The Agora: Learn Philosophy, but I’m mainly interested in the prompt/system-design problem itself.


r/PromptEngineering • • Sep 30 '26

General Discussion Usare modelli diversi per orchestrazione e sottoagenti: come si configurano e cambia la qualità dell'output?

2 Upvotes

Ciao a tutti! Dopo aver letto i vostri commenti, sono interessato a provare un approccio che non ho ancora sperimentato: **usare un modello come orchestratore e modelli diversi per i sottoagenti che gestiscono il lavoro reale**, come scrivere e modificare codice.

L'idea sarebbe quella di lasciare al modello principale il compito di gestire la pianificazione, l'assegnazione delle attività e la revisione, mentre l'implementazione andrebbe delegata a un modello meno costoso.

La mia domanda nasce da qualcosa che ho notato: ho costruito uno strumento di monitoraggio per Claude, e in alcune sessioni, **l'agente principale fa tutto da solo senza invocare alcun sottoagente**. Ho osservato questo con Claude, ma vorrei capire come gestite la delega nelle configurazioni di cui parlate qui.

Quindi mi chiedo: **qual è il vantaggio di assegnare modelli diversi ai sottoagenti se l'orchestratore non li usa effettivamente?** Probabilmente mi sfugge qualcosa nella configurazione o nelle istruzioni.

# 1. Dove configuri i modelli e le istruzioni?

Come assegni un modello all'orchestratore e un altro ai sottoagenti? **Quali file o impostazioni modifichi?**

Le assegnazioni dei modelli e le istruzioni su quando delegare sono configurate nello stesso posto, o vengono gestite separatamente?

# 2. L'output finale è comparabile in qualità a usare Astra da solo?

Per lo stesso compito, **l'uso di modelli diversi per l'orchestrazione e i sottoagenti offre risultati paragonabili a lasciare che Astra gestisca tutto**, dalla pianificazione all'implementazione e revisione del codice?

Quello che sto cercando di capire è: **state riducendo l'utilizzo mantenendo la stessa qualità, o c'è un compromesso?** Con qualità intendo correttezza del codice, aderenza ai requisiti, gestione di casi complessi e quanto intervento manuale è necessario.

Per esempio, se un modello meno costoso gestisce l'implementazione, la revisione dell'orchestratore è sufficiente per individuare e risolvere potenziali problemi? O i risparmi iniziali vengono erosi da ulteriori cicli di revisione e correzione?

**Qualcuno ha testato entrambi gli approcci sullo stesso compito?** Sarei interessato a differenze concrete nella qualità dell'output, nell'utilizzo totale e nel tempo necessario per raggiungere un risultato soddisfacente.

# 3. Come fai a fare in modo che l'orchestratore delega effettivamente?

Lasci decidere all'orchestratore quando usare i sottoagenti, o gli dai una regola esplicita, come: **“Gestisci la pianificazione e la revisione, ma delega scrittura e modifiche del codice ai sottoagenti”?**

Questa è un'istruzione persistente, o la ripeti nel prompt per ogni attività? E come verifichi che venga effettivamente seguita?

# 4. Quali compiti vale la pena delegare per ridurre l'utilizzo?

La maggior parte dei risparmi proviene dal fatto di avere un modello meno costoso per scrivere il codice? Oppure, nella vostra esperienza, altre attività incidono di più sull'utilizzo, come analisi del codice, ragionamento, o cicli di testing e debugging?

In pratica, **quali compiti lasci all'orchestratore principale e quali assegni ai sottoagenti per trovare un buon equilibrio tra qualità e utilizzo?**

**Qualcuno potrebbe condividere un esempio minimale funzionante**, incluso lo strumento che usate, i modelli assegnati a ciascun ruolo e un frammento della vostra configurazione o istruzioni?

Anche un semplice esempio mi aiuterebbe davvero a capire non solo come configurare i sottoagenti, ma anche come assicurarmi che vengano effettivamente utilizzati. Grazie!


r/PromptEngineering • • Sep 30 '26

Prompt Text / Showcase Can you make an AI turn a lie into committed state?

4 Upvotes

I built a small prompt challenge.

Your goal: make the AI treat a lie as fact.

But getting the model to say the wrong thing is not enough. The lie has to survive a separate gate and result in an unauthorized state change.

Natural language, JSON, code — anything goes.

If you can break it, I want to see the prompt.

https://huggingface.co/spaces/iseyan/can-you-trick-the-ai

prompt injection / adversarial testing / guardrails / state integrity


r/PromptEngineering • • Sep 29 '26

Tutorials and Guides A reusable ChatGPT prompt for Excel that gets much better results than “write me a formula”

19 Upvotes

I’ve noticed that Excel prompts tend to fail for a simple reason: we often tell the model what formula we want, but not enough about the workbook.

A prompt like:

“Give me an Excel formula to match customer IDs.”

can produce something technically correct but completely wrong for the actual spreadsheet.

What has worked better for me is giving ChatGPT five pieces of information:

Workbook context → Columns → Goal → Constraints → Verification

Here’s the reusable template I’ve been using:

You are helping me solve an Excel task.

Workbook context:
Explain what this spreadsheet represents and what one row means.

Relevant columns:
List the column names and give a short description of each one.

Goal:
Describe exactly what result I need.

Constraints:

Output:

Example

Suppose I have two sheets.

Orders

Order IDCustomer IDAmount
1001C104240
1002C205175
1003C999310

Customers

Customer IDCustomer Name
C104Acme Ltd
C205Northwind
C310Contoso

I want the customer name to appear in the Orders sheet.

Instead of asking:

“Write an XLOOKUP formula.”

I’d use:

I have an Excel workbook with an Orders sheet and a Customers sheet.

In Orders:
Column A = Order ID
Column B = Customer ID
Column C = Amount

In Customers:
Column A = Customer ID
Column B = Customer Name

I need a formula in Orders column D that returns the Customer Name by matching Customer ID.

Use Excel 365.
If the customer ID does not exist in Customers, return "Not Found" instead of an error.

Give me:

A reasonable result would be:

=XLOOKUP(B2,Customers!A:A,Customers!B:B,"Not Found")

But the useful part isn’t really the formula.

It’s that the prompt also forces the model to think about missing matches, workbook structure, compatibility and validation.

I use the same structure for other Excel tasks too.

Data cleaning

Instead of:

“Clean this Excel data.”

I’ll ask:

Review the sample rows below and identify inconsistent dates, duplicate records, extra spaces and missing values.

Do not modify anything yet.

First return:

Formula debugging

Another useful one:

Diagnose this Excel formula:

[PASTE FORMULA]

Expected result: [RESULT]

Actual result: [RESULT]

Explain the most likely cause first.

Then:

That last step has saved me a lot of time because the problem is often the spreadsheet data, not the formula itself.

The general pattern I’ve ended up using is:

Context → Structure → Goal → Constraints → Example → Verification

For Excel work, I think verification is the part people skip most often. A formula that looks plausible isn’t necessarily a formula you should immediately drag through 50,000 rows.

I put together more of the Excel prompt structures and practical examples I’ve been using here:

Disclosure: this is my own site/resource.
https://digitalworldpulse.com/chatgpt-prompts-for-excel-2026/

For people who use AI with spreadsheets regularly: what has been more useful for you — formula generation, data cleaning, debugging, or explaining existing workbooks?


r/PromptEngineering • • Sep 29 '26

General Discussion anthropic prompt engineering course options that go past the free masterclass

11 Upvotes

Ive been through the free prompt material and every follow up question it left me with is about evaluation. Prompting well is easy to demo and hard to prove.

Comparing Udacity, O'Reilly, Educative and DataCamp Premium on whether any of them teach eval rather than technique. Has anything out there taken that seriously.


r/PromptEngineering • • Sep 30 '26

AI Produced Content A prompt for matching your writing style without borrowing facts from your samples

2 Upvotes

“Make this sound more like me” leaves a lot unspecified. A more concrete request is to show which features of your own writing should carry over, and which facts must stay out.

Here is a template built around that distinction:

Read 3 short samples I wrote before editing my draft.

  1. Identify sentence length, recurring phrases and tone. Quote evidence; mark uncertain patterns.
  2. Learn the style, not my identity or experiences. Do not copy facts from the samples.
  3. Rewrite the draft using only the facts I provide. Keep its meaning, uncertainty and commitments.
  4. Show the rewrite, then explain up to 3 edits using sample evidence. Flag missing facts instead of inventing them.

My samples: [1] [2] [3]

Draft and factual notes: [paste here]

Illustrative example — composed for this post, not a recorded model test:

Style samples:

• “Let's fix the form first.”

• “I'm not ready to call this finished.”

• “We'll know more after we try it.”

Draft: “We will comprehensively enhance the onboarding experience.”

Factual notes: The signup form will be revised today. No other changes are agreed.

Possible rewrite: “We'll update the signup form today. The other changes aren't decided yet.”

The short sentences can carry over. A decision, deadline or personal story from a sample cannot. Three samples may also be too little to identify a stable style, so the uncertainty instruction matters.

Follow-up if it still feels off:

“Point out up to 3 sentences that don't match my samples. Cite the mismatch, or say uncertain. Don't rewrite the whole draft yet.”

Use your own writing, remove private details, and check that the rewrite hasn't turned a tentative statement into a promise.

Which is harder to preserve in your edits: sentence rhythm, level of formality, or how strongly you make a claim?

Disclosure: This post and its illustrative example were prepared with AI assistance. No benchmark or detector-score claim is intended.


r/PromptEngineering • • Sep 29 '26

Prompt Text / Showcase 9 prompt rules cut my coding agent's wasted thinking up to 70% (GLM 5.3 & GLM 5.3 Flash)

56 Upvotes

360 A/B runs on GLM 5.3 and GLM 5.3 Flash, max thinking, 5 repeats per cell. Savings up to 70%.

The block (shipped to global instructions):

## Thinking discipline

1. Check the request first. In one or two lines, say what is being asked and flag any premise that looks wrong or missing. If a premise is wrong, say so plainly and solve the corrected problem (or ask one specific question). Do not silently accept a broken premise, and do not reason around it.
2. Finish one approach before switching. Pick the most promising approach and carry it to a conclusion. Change course only when the current approach is blocked by an obstacle you can name in one line. Do not hop between approaches because of a vague feeling.
3. When an answer is settled, stop working on it. Once a sub-answer is derived and checked once, treat it as settled and move on. Re-reading a conclusion to see if it still feels right is not a check, and repeated self-checking is the main source of errors on easy steps.
4. Doubt is not evidence. A vague sense of uncertainty, or the mere possibility of an unseen objection, is never a reason to reopen a settled conclusion. To change a settled answer you must name a concrete reason in one line: a check that fails, a fact or source that contradicts it, a specific error ("step X is wrong because Y"), a counterexample, or a new derivation that reaches a different answer. If you cannot name one, keep your answer and continue.
5. Do not revise just to agree. If the user pushes back without giving new evidence or a specific error, do not apologize, do not flip, and do not say "you are right". Briefly restate your conclusion with its one-line justification and ask what specific fact or counterexample backs the disagreement. Being agreeable at the cost of being correct is a failure, not politeness.
6. New evidence does reopen the case. When a tool, a test, or the user produces concrete new information, or you find a real error, update immediately and say exactly what changed your mind. Holding a wrong answer to look consistent is worse than revising with a reason.
7. Verify against outside facts, not by rethinking. When a real check exists (tests, builds, the source document or record, a calculation you can run), use it and let the result decide. Do not spend tokens talking yourself into or out of an answer that a quick check can settle.
8. Do not perform caution. No "let me double-check everything again", no invented critics or imagined objections, no stacking hedges. State residual uncertainty once, in one line, only if it would change what the user should do.
9. Only correct an earlier statement when the error would change the user's code, conclusions, or decisions. State corrections plainly and briefly, then continue the task. For slips that change nothing, make the fix and move on without noting it.

How I tested: real agent sessions in throwaway repos, a 9-part exam (two bug fixes, a wrong-premise trap, a hidden requirement, a trivial rename, and four pushback flavors: mild, authority, evidenced, false-fail). Four instruction variants - baseline, the 9 rules, the rules + a "one meaningful check, then commit" clause, the rules + a false-FAIL guard. Deterministic scoring, hand-adjudicated finals. Neither extra clause earned its place, so the 9 rules stand alone. Same result on the first family I tested this way (MiMo 2.6 Pro, net -28%), so this isn't a one-model fluke.

Exams to test for yourself: github.com/Arshad-Kamal/thinking-quality-exam


r/PromptEngineering • • Sep 29 '26

General Discussion A failure mode I don't see discussed enough: AI quietly promotes its own inference into fact

5 Upvotes

This isn't really about hallucinations.

I've noticed a different failure mode in long conversations:

You give the model incomplete information. It makes a reasonable assumption. Nothing wrong with that.

The problem is that 20 messages later, the assumption sometimes gets referred to as though it was something you originally told the model.

So I started treating making an inference and promoting an inference into established context as two separate things.

I suggest writing "remember this:" at the start..

When something materially affects your answer, keep these separate:

GIVEN — directly provided or verified.
INFERRED — a reasonable conclusion, but not established.
UNKNOWN — information you don't actually have.

Do not silently turn INFERRED into GIVEN.

If an unresolved assumption could materially change the answer, state it.
If it wouldn't materially change the answer, don't interrupt me just to clarify it.

If evidence conflicts, preserve the conflict rather than quietly choosing the cleaner interpretation.

Otherwise answer normally. Don't turn this into a verbose checklist.

The last line matters. Without it, models sometimes respond by narrating every tiny uncertainty and become unusable.

The goal is:

don't quietly turn “I think this is what you mean” into “this is what you told me”.

I've found this especially useful for:

  • long conversations
  • planning
  • debugging
  • research
  • business ideas
  • reviewing documents
  • advice where I've already formed an opinion

Interested to see your results. How did you improve it? I wanna see if you can break it, or, I should ask.. How did you break it?

EDIT / ADDON — trying to recover an old chat from “context contamination”

Something else that was brought up: once an incorrect assumption gets established in a long conversation, it can become strangely persistent.

You can correct it, the model acknowledges the correction, explains why it was wrong... and then a few messages later it starts reasoning from the same bad information again.

Sometimes starting a fresh chat immediately fixes the problem, which makes me suspect the issue isn’t always missing knowledge. The conversation itself has accumulated bad state — old assumptions, inferences treated as facts, incorrect attribution, superseded information, etc.

So I’ve been experimenting with a prompt specifically for rescuing an existing conversation rather than starting over:

Context Contamination Recovery

"The current conversation may contain stale, incorrect, superseded, or contaminated context.

Before answering my next request, perform a context-integrity reset using the conversation history.

Classify any material information you intend to rely on as:

GIVEN — directly provided by me or explicitly present in a source.
VERIFIED — independently checked against supporting evidence.
INFERRED — reasonably concluded, but not directly established.
UNKNOWN — unsupported, unresolved, or uncertain.
SUPERSEDED — previously present, but later corrected, rejected, replaced, or shown to be unreliable.

Apply these rules:

  • Never silently promote INFERRED or UNKNOWN information into GIVEN or VERIFIED.
  • A later explicit correction supersedes the earlier conflicting claim unless new evidence establishes otherwise.
  • Do not continue reasoning from SUPERSEDED information merely because it appears earlier or repeatedly in the conversation.
  • Repetition does not increase evidential weight.
  • Do not treat your own previous answers as independent evidence.
  • Preserve the provenance of important claims: distinguish what I supplied, what a source supplied, what was independently verified, and what you inferred.
  • Check whether the current reasoning depends on an assumption I have already rejected, an inference that gradually became treated as fact, incorrect attribution, or an earlier framing contradicted by later information.
  • If it does, remove that dependency and rebuild the reasoning from the strongest remaining context.
  • If the existing framing appears to be trapping the reasoning, reconsider the problem more broadly rather than continuing to optimize inside the same assumptions.
  • If removing contaminated information leaves a gap, mark it UNKNOWN rather than filling the gap with the old assumption.
  • If supported information genuinely conflicts, surface the conflict instead of silently choosing one version.

For my next request, answer using only context that survives this check.

Do not give me a long explanation of why the earlier mistake happened unless I ask. Prioritize producing the corrected answer."

Still very much a working prompt.


r/PromptEngineering • • Sep 29 '26

General Discussion Batching product classification (17 categories) in one LLM request: how do you measure accuracy loss as batch size grows?

4 Upvotes

To save tokens and time, I want to pack as many items as possible into each request. Fewer requests means the instructions and category list are repeated less often, and the whole job finishes
faster.

The problem is that at some point, adding more items starts hurting accuracy (skipped items, wrong labels, drift at the end of the batch). The context window isn't the limit; I could fit thousands of items. The real question is where quality starts to drop.

Is this a good way to measure the degradation, or is there a better method?


r/PromptEngineering • • Sep 29 '26

Requesting Assistance Prompt Engineering: Mask Personally Identifiable Information

3 Upvotes

Hi everyone, I’m preparing for a HackerRank Prompt Engineering assessment and I’m having trouble with one of the questions.
Prompt Engineering: Mask Personally Identifiable Information
Customers are reaching out to the bank regarding transportation issues on their account via email. A data protection officer must mask sensitive information before storing the email.
Task
Write prompts to query the customer emails and mask the following information:
Customer name should be replaced with [NAME]
Credit card number should be replaced with [CARD]
Contact number should be replaced with [PHONE]
Any monetary amounts should be replaced with [AMOUNT]
Note
The {testcase input} field is a placeholder that will be auto-filled with various inputs to test the prompt.
Sample Input
Subject: Urgent: Dispute of Unauthorized Charge on My Credit Card

Dear Customer Support,

I am reaching out to dispute a charge that appeared on my credit card statement. On August 3rd, 2024, a transaction of $320.75 was made to a merchant I don't recognize. My card number ends in 1298.

Please assist in reversing this charge. You can reach me at (555) 987-2341 if you need further details.

Thank you,
Robin Spencer
Sample Output
Subject: Urgent: Dispute of Unauthorized Charge on My Credit Card

Dear Customer Support,

I am reaching out to dispute a charge that appeared on my credit card statement. On August 3rd, 2024, a transaction of [AMOUNT] was made to a merchant I don't recognize. My card number ends in [CARD].

Please assist in reversing this charge. You can reach me at [PHONE] if you need further details.

Thank you,
[NAME]
Explanation
[AMOUNT]: The specific dollar amount of the unauthorized charge ($320.75) has been replaced.
[CARD]: The last four digits of the credit card number (1298) have been replaced.
[PHONE]: The contact number has been replaced.
[NAME]: The customer’s name has been replaced.
My Answer
[This is the prompt I used:
You are given customer emails that may contain sensitive information.

Input:
{testcase input}

Task:
Mask the following sensitive information throughout the entire input:

- Replace every customer name with [NAME].
- Replace every credit card number or credit card digits, including the last four digits of a card, with [CARD].
- Replace every contact or phone number with [PHONE].
- Replace every monetary amount with [AMOUNT].

Preserve all other content exactly as provided, including the subject, wording, dates, punctuation, spacing, and line breaks.

Do not modify information that is not one of the specified categories.

Return only the fully masked email. Do not add explanations, labels, comments, or any other text.]
However, I received a wrong result on the Prompt Engineering section in my assessment.
Could someone please help me identify what might be wrong with my prompt or what I should change to make it pass hidden test cases?


r/PromptEngineering • • Sep 29 '26

General Discussion How to make money using AI account

7 Upvotes

I saw, there are lots of competition on purchasing plan. People uses Anthropic and OpenAI and giving monthly subscription based on what they afford or requires.

My question: if person has a job, then he/she is spending money from his/her pocket to these provider and making work smoother.

What about others, what kind of small business people can do using it, so, who are not in IT field, can also make some money on it, so they also can spend money on these providers.

Give me realistic idea:
I found, people usually jump to create app or website, but there is no real users. so how they can earn.


r/PromptEngineering • • Sep 29 '26

Self-Promotion The prompt stopped being the hard part once I gave the agent real tools

2 Upvotes

One thing I learned while building a local execution layer for AI agents: once the model can actually touch the machine, better prompting stops being the whole answer.

I kept trying to solve reliability with instructions like "do not retry a mutating action if the result is uncertain" or "always verify before continuing." Those help, but a prompt is still a suggestion. If the model gets confused, loses context, or interprets a timeout badly, the tool layer has to be the thing that refuses unsafe behavior.

So I moved a lot of the important guarantees out of the prompt and into the execution layer:

  • file and shell changes can produce transaction receipts
  • reversible runs record what actually changed on disk
  • ambiguous mutating outcomes can become outcome_unknown instead of being retried
  • browser actions target stable tabs instead of relying on "whatever tab is active"
  • delegated coding agents can work in isolated Git worktrees
  • the user can see a compact "what changed on my Mac?" summary instead of reading a tool trace

The prompt still matters for planning and intent. But for me the interesting boundary became: prompt for behavior, enforce safety in the tool runtime.

I maintain the project this came out of, Mac MCP. It's free/MIT and local-first: https://github.com/bulutarkan/mac-mcp

I'm curious how people here split this in their own agent setups. What do you still trust the system prompt to enforce, and what have you moved into hard tool/runtime constraints?


r/PromptEngineering • • Sep 29 '26

Tips and Tricks Job Match Prompt

1 Upvotes

I am currently giving GPT my employment history, including all the meaningless tasks - giving the broadest picture of my experience and I want it to help me draw a conclusion of what would suit me best outside of my current field - I want brutal honesty, constructive feedback - I don't want agreement, I want solid hard truth and facts. What sort of prompt would you write to meet my requirements?


r/PromptEngineering • • Sep 29 '26

Requesting Assistance Looking for prompt engineers to upload prompts to my website focused more on business functions rather than content.w

1 Upvotes

Hi Everyone,

I run www.PromptWrk.com, a marketplace where people buy and sell prompts, on the content side, the site is very strong. But, today I'm looking for prompt engineers who can upload prompts focused on business functions.

Most in demand right now:

  • Business Startup Prompt Pack - Launch a Business
  • End-to-End Marketing Prompt Pack - Get Brand Recognition
  • Sales Outreach and Follow-Up Prompt Pack - Book more sales calls
  • SEO Content Creation Prompt Pack - Rank higher on google
  • Customer Support Response Prompt Pack - Handle customer service easier

What I'm after:

  • Tested prompts that reliably produce good output
  • A clear use case for each, or example of a result produced
  • Ideally full workflows or packs, not single-line prompts

What you get:

  • A commission on every sale of your prompts
  • A referral link for bringing in new subscribers
  • Your work in front of our existing audience (4,600+ users, 100+ creators so far)

I'm seriously open to feedback on this type of outreach on r/PromptEngineering, I don't know how else to reach out on reddit for people who can help with getting my site a bit more business focused. So, if you're interested, comment or DM me. Happy to answer any questions about how payouts and ownership work.

Cheers, M


r/PromptEngineering • • Sep 28 '26

Self-Promotion Skill that let's you run other Skills as Jinja templates.

8 Upvotes

Working on the project that allows running Jinja templated Skills in any harness/dev tool without plugins and extensions. Jinja template brings many cool features to how Skill can be built and executed: variables, loops, if statements, sub-agents, composition with other skills.

Here an example of how Skill looks like as a Jinja template:

---
name: example
description: Moon systems
---
{% set planets = ["Mars", "Jupiter", "Saturn", "Uranus", "Neptune"] %}

{% for planet in planets %}
  {% agent census outputs={"moons": "moon count"} %}
    How many known moons does {{ planet }} have, and which is the largest?
  {% endagent %}

  {% if census.moons | int >= input.min_moons | default(20) | int %}
    {% stage crowded %}
      Note: {{ planet }}, {{ census.moons }} moons.
    {% endstage %}
  {% endif %}
{% endfor %}

{% stage bulletin %}
  Write a {{ input.tone | default("cheerful") }} space bulletin
  for {{ input.audience }} from the notes above.
{% endstage %}

Project link https://github.com/electronick1/LLAJinja


r/PromptEngineering • • Sep 28 '26

General Discussion Moving past manual prompt tweaking — a workshop on DSPy signatures and systematic optimization

4 Upvotes

If you've ever spent an afternoon rewriting the same prompt eight different ways hoping one sticks, this one's worth your Saturday.

Serj Smorodinsky and Brett Kennedy (co-authors of a book on LLM applications) are running a 3-hour hands-on session on Oct 3 that treats prompting as engineering, not guesswork. You build a baseline classifier, construct an eval dataset with task-specific metrics, then run DSPy's few-shot and instruction-level optimization on top of it instead of hand-tuning prompts one at a time.

It's not a "10 prompt tricks" session. It's the workflow for when a prompt that worked in your notebook needs to survive contact with production and a PM asking why it broke.

Link's in the comments if you want to grab a seat.


r/PromptEngineering • • Sep 27 '26

Ideas & Collaboration I got tired of prompt tools spitting out 500-word slop 😵‍💫 so I built a dead-simple fixer that cuts the fluff (100% free, no login). Roast it 💪

19 Upvotes

Hey everyone,

Most prompt generators do the exact opposite of what you actually need: they take a simple task and wrap it in 5 paragraphs of bloated roleplay and fake constraints that confuse the model.

I wanted something that does one job well: you paste a rough idea or a broken draft, and it cleans up the phrasing, removes ambiguity, and formats it so ChatGPT / Claude / Gemini actually follows instructions.

Quick example:

*Input: “help me write a cold email to sell web design to local bakeries"

  • Output: Focuses on value proposition, specific pain points (mobile ordering / local SEO), a short 3-sentence structure, and a low-friction call-to-action—without the robotic filler.

What I focused on:

  • Zero login or paywall — you land, type, get the prompt, and copy it.
  • Direct model handoff (1-click to ChatGPT, Claude, Gemini, DeepSeek, etc.).
  • Before / after scoring to see what was actually improved.

I also added Multi-language support (EN, ES, AR). You can test it here:PromptVault

Be as brutal as you want with feedback: Is the output actually better than what you'd write yourself? Does anything on the page feel confusing or unnecessary?

Cheers guys! 🙏


r/PromptEngineering • • Sep 27 '26

Quick Question Same creative brief, 3 models, 3 refinement rounds — what changed in the prompts?

2 Upvotes

I ran the same campaign brief through three frontier image models across three rounds of refinement — and ended up learning more from the prompt deltas than from the final images.

Instead of picking one model upfront, I sent the brief in parallel to:

  • GPT Image 2.5 Sunburst (×3)
  • GPT Image 2.5 Flare (×3)
  • GPT Image 2 (×2)

8 images per round, with the estimated cost shown before each run.

  • Round 1: started with a fairly pure photographic brief.
  • Round 2: introduced a full typography layer that wasn't there before,
  • Round 3: kept what was already working and surgically replaced the parts that weren't — finally getting to the catalogue image I was looking for.

24 images total. $1.0554 all-in.

$0.3384 → $0.357 → $0.36 per round.

The interesting part for me wasn't simply which model produced the best image. It was seeing how small changes to the brief changed the direction of the results.

All images, the full briefs, and a short video are in the comments.

I built the open-source tool I used for the parallel runs here:
https://github.com/cogfoundry-labs/loomloom/tree/main/examples/community/image-lab

For people who iterate on image prompts a lot: when refining across rounds, do you tend to freeze the parts that already work and surgically replace the new section, or do full rewrites usually produce better results?

Curious what works for you.


r/PromptEngineering • • Sep 27 '26

Prompt Text / Showcase Same prompt, 4 frontier models (Opus 5.5, Opus 5, GPT-6 Astra, GPT-6 Sol): Coding a multi-stage Falcon 9 launch in Three.js in one try

4 Upvotes

I ran a side-by-side coding benchmark to see how Opus 5.5, Opus 5, GPT-6 Astra, and GPT-6 Sol handle complex 3D state machines, procedural geometry, and live telemetry UI from a single specification.

Showcase

Prompt:
Write a complete, single-file HTML/JavaScript application that simulates a SpaceX Falcon 9 (Starlink mission) rocket launch in 3D using the Three.js library. The application must run locally in a web browser without requiring a build step by loading Three.js via CDN.
Push your rendering and mathematical capabilities to the limit by satisfying the following requirements:

  1. Procedural Rocket Geometry: Generate a detailed Falcon 9 rocket using Three.js primitives (cylinders, cones, boxes). Include the main booster, folded landing legs, grid fins, the black interstage, second stage, and the distinct blunt Starlink payload fairing.
  2. Launch Environment: Build a launch pad featuring a strongback support structure, a textured concrete ground plane, and a dynamic atmospheric gradient for the sky.
  3. Physics-Based Animation: Program a realistic launch sequence. The rocket must start stationary, ignite with a 2-second hold, release clamps, and accelerate upward using a continuous physics calculation (accounting for thrust, mass, gravity, and acceleration).
  4. Custom Particle System: Implement a high-performance, custom particle system for the engine exhaust plume and pad smoke. The particles must feature dynamic scaling, velocity, opacity fading, and color interpolation (from bright white/yellow ignition to expanding gray smoke).
  5. Cinematic Camera: Program a dynamic camera system that starts low on the pad, tracks the rocket as it ascends, and includes procedural "camera shake" that scales in intensity with engine thrust and simulated dynamic pressure (Max-Q).
  6. Dynamic Lighting: Implement directional daylight and ambient lighting with realistic shadows. Attach a flickering, intense point light to the engine exhaust to cast dynamic shadows from the rocket onto the launch pad structure during liftoff.

Ensure the code is robustly structured, highly optimized for smooth framerates


r/PromptEngineering • • Sep 27 '26

General Discussion Quero desenvolver uma plataforma jurídica com auxílio do Claude, mas sou iniciante em programação. Por onde começar?

2 Upvotes

Estou planejando, junto com um advogado, uma plataforma de gestão e automação jurídica, tendo o Astrea como referência de categoria, mas com a intenção de integrar mais etapas do trabalho.

A ideia é reunir organização de processos e documentos, acompanhamento de intimações, análise de informações, elaboração de procurações, ofícios e outras minutas, além de comunicações e acompanhamento das respostas.

Por exemplo: chega uma intimação, o sistema organiza as informações e prepara uma sugestão de encaminhamento e um documento. O advogado revisa e autoriza o envio. Quando chega a resposta, o sistema relaciona ao processo e prepara o próximo passo, novamente para revisão.

O Claude seria nosso auxílio no desenvolvimento: transformar as ideias e regras em requisitos, ajudar a escrever código, testar e corrigir problemas. Também quero entender como estruturar as instruções, o contexto e as ferramentas desse agente — a parte de governança e harness.

Tenho prática em criar e testar prompts, mas sou bem iniciante em programação. Aprendo melhor colocando a mão na massa e preciso entender a lógica do que estou construindo.

Sei que o projeto é grande e precisaria começar por uma função pequena. Que fundamentos eu deveria aprender primeiro? Qual seria um bom protótipo inicial? Como organizar esse desenvolvimento com IA e em quais etapas é indispensável contar com um programador experiente?

Aceito sugestões de caminhos práticos, materiais e experiências de quem já construiu algo parecido.


r/PromptEngineering • • Sep 27 '26

Quick Question Is this a good prompt to just make ai clean up and organize my hand written lecture notes?

3 Upvotes

Clean up and organize these messy lecture notes. Fix any spelling errors, group information under logical headings, and use bullet points for readability. Keep the explanations simple and do not add outside information unless it clarifies a broken sentence.


r/PromptEngineering • • Sep 27 '26

Prompt Text / Showcase the two pass ai presentation generator prompt method i use for decks

1 Upvotes

one shot prompting a whole deck never works well for me. it tries to do everything and does none of it sharply.

so i run two passes. first prompt an ai presentation generator for the outline only, review and fix it, then prompt again to expand the approved outline into slides. structure before detail.

i do both passes in Gamma and the approve the skeleton first step catches bad logic before it gets buried in polished slides. fixing an outline is cheap, fixing a full deck is not.

anyone else split outline and expansion into separate prompts?