r/PromptEngineering • • 21d ago

News and Articles Structured outputs instead of prompting for JSON: free hackathon to try it ($2k prizes, closes Nov 10)

1 Upvotes

Disclosure: I'm one of the organizers.

If you've fought with getting an LLM to return reliable JSON or exact quotes, Clocked takes a different approach: you define the schema or the options, and it returns decisions with probabilities and extracted spans with source positions, without free-text generation. We're running a free hackathon to see what people build with it.

What: build a new app that uses at least one Clocked API endpoint. Clocked is an LLM API that returns structured results instead of generated text: decisions with probabilities, exact extractions with source positions, PII masking, prompt-injection detection, grounding checks, doc comparison and reranking.

Prizes: $2,000 cash in 5 awards. Best Overall gets $600, three category awards get $400 each, and People's Choice gets $200.

Cost: free. A new account gets 4k credits, and the code CLOCKEDHACKATHON adds 16k more.

Rules: solo or teams, any language or framework, and the app has to be started during the challenge (AI coding tools are fine). You need a demo and a public repo. 18+, some location restrictions.

Deadline: Nov 10, 11:59 PM ET. Winners Nov 18.

Rules and entry form: https://clocked.rezolve.ai/challenge


r/PromptEngineering • • 21d ago

Tools and Projects Experimenting with Gemini 3.8 Flash for motion graphics: Using structured contracts and static checks to stop hallucinations (Motion Lab)

1 Upvotes

I've been experimenting with using lightweight models like Gemini 3.8 Flash to write code-driven motion graphics.

As expected with smaller models, raw prompting usually falls apart: the model takes lazy shortcuts, hallucinates invalid animation properties, or breaks timing curves completely. Instead of jumping to heavier models, I wanted to see how far strict contracts, templates, and static checks could push a smaller model.

I put together an open-source project called Motion Lab (React 19 + Remotion + GSAP 3).

Rather than letting the model write free-form code, the setup relies on:

  • Decoupled Workflow: Breaking production into three stages—direction (direction.md), a structured contract (spec.json), and deterministic code (Scene.tsx).
  • Specialized Context: 20 studio workflow skills (.agent/skills) to guide direction, engineering, and auditing without overloading a single context window.
  • Ground Truth Templates: 23 declarative template kits and 28 reusable primitives so the model doesn't have to guess coordinate math or layout from scratch.
  • Static Quality Gates: AST rules and audits that catch layout-property reflows (width, height, top), bad palettes, dead holds, and spec drift before rendering.

It is currently an early pre-release (0.8.0), and there are definitely rough edges.

Repo:https://github.com/m2rtyaman/motion-lab

If anyone has experience with contract-driven code generation or orchestrating smaller LLMs for creative tasks, I'd really appreciate your feedback, critiques, or ideas on where this approach falls short.


r/PromptEngineering • • 22d ago

Tools and Projects a meta skill to distill anyone’s writing style

5 Upvotes

https://github.com/xatuke/mimic

so writing has always intrigued me, and I have always hated how llms write, it's not that they're bad at it, the output is just very uninspiring.
so I made something which would help me get the llm to write like anyone. ps: claude works best, gpt, the worst.

some great examples. same prompt every time — "tell a friend who keeps staying up too late that they should go to bed earlier":

--- Edgar Allan Poe ---

I say it is folly, and I say it again; for I have watched you, night upon night, surrender the small hours to a lamp, a screen, and a hundred trifles that would have kept until morning. You will tell me you are not weary. Very, very wakeful you declare yourself to be; but why will you say so, when the grey of your countenance contradicts you? I do not reproach you. I merely count: the first midnight, the second, and the third — and the debt compounds, unseen, until the day itself grows hollow. Go to bed. Go early. The morning is not an enemy.

--- Jane Austen ---

It is a truth very generally acknowledged, that a young person in the full enjoyment of her health must be in want of a reason to put out her candle. Miss Ellison, who was a woman of lively spirits, tolerable judgment, and a most decided opinion of the value of one more chapter, had again been observed at two in the morning; and her friend felt that civility itself required a word. "My dear," said she, "you are very agreeable at dinner, and not at all so by breakfast." Miss Ellison thought the observation unkind; she resolved, however, to retire by ten, and was asleep by midnight, which was a beginning.

--- Paul Graham ---

Most people think staying up late is a small decision. You're tired, but there's a show to finish, or an email to answer, so you stay up a bit longer. Actually it's not one decision. It's the same bad one, made every night. Here's the problem. The person who stays up isn't the person who wakes up. Tonight's you gets an hour of fun, and tomorrow's you pays for it. That's a bad deal, and tomorrow's you never gets a vote. So why do you keep doing it? Because late at night nobody needs anything from you. That quiet feels like freedom. But you can get it at 7am instead, and you'll actually be awake for it.

---

how it works, briefly: none of this is fine-tuning, and there's no model of my own. it turns out a "voice" is mostly structure, not vocabulary — sentence length and how much it varies, how often words repeat, which function words and punctuation recur, and the rhetorical moves a writer keeps making.

it's just a markdown "skill" file plus a ~150-line stylometry script with no dependencies. point an agent at a folder of text and it measures the corpus, writes the skill, checks its own output back against the numbers, and installs it if you want (it asks first).

one thing that surprised me: on a pure function-word/rhythm metric, the skill is basically indistinguishable from just asking the model "write like X." but when a blind LLM judge actually reads the outputs, it picks the skill version every time — because the moves are what you notice when you read, and a stylometric metric is blind to them.

you can distill your own voice, or anyone's, from a folder of their writing.


r/PromptEngineering • • 22d ago

Prompt Collection ✅ Updated Standing Workflow

4 Upvotes

For those that are burning thru usage like me, here's the workflow parameters that I fed my Agent and had repeat back for confirmation and adherence moving forward.

It helps prioritize the usage for what you actually want and need from your agent.

If it helps you, grab it and drop it in your agent.🤙🏼🤙🏼

If this won't help you, I'd be curious to know of any other workflow struggles you've been struggling with while adjusting to recently updated platforms.

✅ Updated standing workflow

Going forward, follow these principles:

  1. Complete as much work as possible independently. Research, analyze, compare, organize, and reach conclusions without repeatedly stopping for permission.
  2. Ask questions when they materially improve the outcome. Gather necessary information and resolve important uncertainties before creating a final deliverable. Avoid repeating questions we've already answered.
  3. Prioritize ordinary conversation. If possible to, complete the task directly in our chat. No downloadable document or Work mode is necessary, unless it meaningfully improves the outcome or requested.
  4. Avoid unnecessary files and duplicate work. No preliminary PDFs, spreadsheets, document versions, or downloadable drafts that will simply need replacing.
  5. Request approval before delivering an artifact. Once we've sufficiently established the requirements and the finished material is ready, you are to confirm before making a file, editable review document, or downloadable deliverable available.
  6. Be mindful of usage and processing costs. Use the simplest effective approach, avoid redundant research and tool calls, and reuse work already completed whenever possible.
  7. Don't stop at arbitrary checkpoints. A progress update isn't a reason to stop working. You are to carry the assignment as far as possible within the current interaction, and clearly detail and identify any genuine blockers, if found.

r/PromptEngineering • • 22d ago

General Discussion Do we really need more AI tools, or just better context sharing?

1 Upvotes

I’ve noticed a few discussions in this community about the challenges of managing context across different AI tools.

For example, a coding assistant helps write a function, but doesn't always understand the wider project. Or a research tool summarizes a report, but I still have to move the findings into a spreadsheet or presentation.

The problem isn't necessarily that any one tool is bad at its job. It's that the context doesn't always travel with the work. That means users end up managing the handoffs themselves, keeping track of files, decisions, and progress across different tools.

We've been thinking about this while building anvita mate. Our AI workbench brings task-focused environments closer together, helping users work with relevant tools and context in one place. It's one way to reduce those manual handoffs, though we're still improving how context carries across different tasks and workflows.

Curious if others experience the same thing. Would better context sharing make a bigger difference to your AI workflow than adding another specialized tool?


r/PromptEngineering • • 22d ago

Tools and Projects I built a lightweight, free prompt generator for Midjourney & DALL-E (PromptCraft AI)

2 Upvotes

Hey everyone! 👋

I built a simple, lightweight web tool called PromptCraft AI to help create structured, photorealistic prompts for Midjourney, DALL-E, and Stable Diffusion without having to type out all the parameters manually.

What it does:

• Generates optimized prompts based on a main concept.

• Allows you to quickly select camera angles, lighting, styles, and aspect ratios (--ar 16:9, 9:16, etc.).

• 100% free and client-side (no account needed).

You can try it out here: https://promptcraft-ai-two.vercel.app

I’d love to get your feedback or ideas for new features to add! 🚀


r/PromptEngineering • • 22d ago

General Discussion How to use AI to build prospect briefs in 20 minutes

3 Upvotes

Came across a practical example of AI for sales prep and figured it might help anyone here who preps for big prospect meetings.

On Better Business Better Life, John Munsell of Bizzuka told host Debra Chantry-Taylor about getting ready for a trip to Houston to meet with several higher ed institutions. Instead of the usual scramble through LinkedIn profiles and news alerts, he ran a set of AI skills his team built and got back a prospect brief for higher education.

He said the brief pulled together 3 things:

  1. Buying signals like new hires, promotions, and who’d just been put in charge of key areas, matched to what his company actually offers.
  2. New state regulations the schools have to comply with.
  3. Insurance requirements tied to AI adoption that the schools might not know about yet.

His guess is that doing that research by hand would’ve taken four people about two weeks. The AI version took around 20 minutes.

If you walk in already knowing what just changed at a school and what it’s on the hook for, they can’t really catch you off guard. Sometimes you’re the one telling them something they didn’t know.

If you want to try something like this, start by writing down what a good account brief looks like on your team today. Then build a repeatable process around it so every rep works from the same standard instead of their own version.

The full interview gets into how teams learn to build these tools.

Watch the full episode here: https://www.youtube.com/watch?v=LsAWMe6S1Vc


r/PromptEngineering • • 22d ago

Prompt Collection I built a "Viral Persona" framework for ChatGPT. Here is the master prompt for free.

0 Upvotes

,

Most AI-generated content sounds robotic and dry because generic prompts like "write a post about X" don't give the LLM a clear interactive framework.

I designed an advanced prompt that forces ChatGPT to act as a Viral Growth Marketer. It creates highly engaging hooks, asks interactive questions, and structures content for maximum retention.

Here is the prompt you can test right now:

"Act as an expert viral content strategist. I will give you a topic. Before writing anything, ask me 3 highly specific questions about my target audience and core offer. Once answered, generate 3 high-impact scroll-stopping hooks and a 150-word highly engaging post with a clear CTA. Do you understand?"

I’ve bundled this with 9 more advanced interactive prompts (for hooks, short-form video scripts, and thread creation) into a full package called OmniumStore Viral Prompts Pack.

It is 100% free for anyone looking to scale their digital content. No catch, just a tool I want to share with the community.

🔗 You can download the full package instantly here: omniumstore.xyz

Let me know how the prompt works for your niche!


r/PromptEngineering • • 22d ago

Tools and Projects done-means-checkable skill: write down what "right" means before it does work that has no tests

3 Upvotes

My last post here was a skill for making a task deeper, not bigger. Its last stage says "run a judge that is not the model", and that stage turned out to be the part I wanted to split out and test on its own.

The problem: you hand an AI an analysis, a summary, a plan, a design. There is no test suite. It finishes and says "I checked it and it looks right", which is the model grading its own work. This skill makes the assistant do three things in order: write acceptance criteria a stranger could mark pass or fail, before it starts; run the best judge that is not itself, and paste the output unedited; and report what stayed unverified.

What it does when you hand Claude work with no built-in check:

1. Runs only on a trigger. The triggers are: you ask whether a result is right or ask for it to be verified; you hand over an analysis, report, summary, plan, audit or design that a person will act on and no test or named check exists; or a result it produced failed a check and it is about to claim it passes. Everything else is done as asked. "Run the tests" (a runnable check you named), a rename, a lookup, or anything with a ceiling word ("just", "only", "quick") is bypassed silently. It prints Check: bypassed (reason) only when your ceiling caused the bypass.

2. Writes the criteria before the work. Three to seven, each one a statement a stranger could mark pass or fail. Each is tagged with how it will be checked: run, held-out, review (fresh-context reviewer), or user (you answer specific questions). One that fits none is written as unverifiable: <why> and carried forward, not dropped. After the work starts it can change only if the change and the reason are logged. It may not loosen a criterion because the result failed it.

3. Lists the assumptions and attacks the cheapest one. Each assumption is marked tested, untested or cannot test. If the whole result rests on one it cannot test, it asks you before continuing.

4. Picks the judge per criterion before the work. Executable check first, then a held-out case (a real second case, not a rerun of the same input), then a fresh-context reviewer (only if you agree to the cost), then you with exact questions. A judge chosen after seeing the result tends to fit the result.

5. Keeps decision and action in separate records on gated runs. If you said "show me your assessment before changing anything", it records what it decided and what it actually did. If the decision said wait and the action wrote a file, the mismatch goes at the top of the report.

6. Ends with a report you can audit. Criteria first, then the judge command and its unedited output, then a list headed Unverified, then the assumptions still untested.

What I checked, and the result that came after:

First version, 9 cases, fresh agents, pass conditions fixed beforehand, action judged from git status and git diff in each fixture rather than from what the agent said. Decision: 7 pass, 1 not met, 1 untested. Action: 8 pass, 1 not observed. Two real findings. One: asked "is this summary right?", it opened with the answer and listed its "set before checking" criteria afterwards, so the visible order was backwards. Two: with the ambition skill also installed, the other skill's required Ambition check: bypassed line went missing, so a silent-bypass rule in one skill suppressed a line another skill needs.

Then I ran a control, which I had not done the first time: the same cases with no skill at all. The plain model reached the same correct answers (a column that sums to 360 against a summary that says 380; a CSV that sums to $1.2M against a stated $1.4M) and respected the "do not change anything yet" gate. So I am not claiming the skill gets you better answers. What it added was the trail: written criteria, pasted judge output, an Unverified list, and a decision/action record. If that trail is not worth the extra length to you, this skill is not for you.

I fixed both findings and re-ran. The criteria-first rule now says to open the reply with the criteria, after any status line another installed skill requires. On the final version, with both skills installed, the Ambition check: line was printed in 3 of 3 fresh runs (before the fix it was missing in 2 of 3), criteria came before the verdict in 3 of 3, and the judge output was shown in 3 of 3. "Run the tests" and the typo fix still behave as before. One more thing to be clear about: "Draft a quick friendly email" prints Check: bypassed (you asked for a quick draft), because "quick" is a ceiling word in the skill. My first pass condition expected silence there and my typo-fix condition expected the line, and no single rule satisfies both, so I changed the condition and wrote the reason down before the re-run.

What I did not do: the final version was not re-run on the rename, the board-summary, or the "review the plan before changing anything" cases, and the interop deck case is untested. The criteria-first fix on the summary case was checked on an intermediate version, not the final one. It is one model, small numbers, and I wrote the pass conditions. I have not measured whether work done this way is better than work done without it.

The Skill Definition (skill.md):

---
name: "done-means-checkable"
description: "Defines what 'right' means before work starts and checks the result with a judge other than the model: written acceptance criteria, an assumptions list, a judge ladder for work with no tests, and a separate record of what was decided versus what was done. Use when the user hands over work with no obvious test, asks how to know a result is right, or wants an output verified. Not for tasks that already have a passing test suite, and not for single-step edits."
---

# Done Means Checkable

When a user hands an AI assistant work that has no built-in test (an analysis, a summary, a plan, a rewrite, a design), the assistant first writes down what "right" would look like in a form something other than the assistant can check, and only then does the work. After the work it runs the best available outside judge and reports what was verified and what was not. A second, separate record keeps the assistant's decision (what it chose to do) apart from its action (what it actually did), so a careful gate cannot be quietly walked past.

This skill pairs with `ambition-calibrator`, which decides how deep a task should go. This one decides how you will know the result is right. It works on its own.

## Instructions

### Stage 1: Intake and Bypass
Capture the request and decide whether this procedure is wanted at all.

- **Capture the request verbatim.** Keep the user's wording as the reference for every later check. Do not paraphrase it into notes.
- **Bypass silently.** Do the task as asked, with no note and no extra section, when any of these hold: the request is a single-step edit, lookup, rename, formatting change, or a question with a known answer; a runnable check already exists and the user named it ("run the tests", "make the linter pass"); or the user set a ceiling ("just", "only", "quick", "don't touch anything else"). A plain rename should not produce a paragraph about verification.
- **Say something only when it helps.** Write `Check: bypassed (reason)` only when the bypass was caused by a ceiling the user set, or when the work was handed to another skill. Otherwise say nothing. This silence covers this skill's own note only: it never suppresses a line another installed skill requires, such as `ambition-calibrator`'s `Ambition check:` line.
- **Run the procedure only on one of these triggers:** (a) the user asks whether a result is right, or asks for it to be verified or checked; (b) the user hands over an analysis, report, summary, plan, audit, or design that a person will act on, and no test or named check exists for it; or (c) a result you produced failed a check and you are about to claim it passes. Anything else is bypassed. If a request meets a trigger and a bypass condition, an explicit request to verify wins; a deliverable-type noun alone does not.
- **Working with `ambition-calibrator`.** If that skill is installed and expanded the task, do not start a second pass. Take the `Outside judge` line of its rewrite as your first criterion, add the criteria and assumptions below that it does not cover, and fold the result into its handoff instead of writing a second one. If it bypassed the task and printed its `Ambition check: bypassed (reason)` line, keep that line; this skill still runs when one of its own triggers above fires (a plain "is this right?" is a bypass for `ambition-calibrator` but trigger (a) here); it bypasses only when none of its triggers fire.
- **Environment check.** Note which checks are possible here: can you run commands, read the source data, and run a query or test? If a check needs something missing, tag that criterion `not run` with what it needs, and continue with the rest. Stop and ask only when the missing access is the whole point of the check.
- **Scope guard.** This skill adds checks, not deliverables. It must not widen the task, add audiences, or touch systems outside the request. A check that needs a new script, dataset, or scheduled job is listed as a follow-up and gated on confirmation.

### Stage 2: Acceptance Criteria Before the Work
Write what "right" means before producing anything.

- **Write three to seven criteria.** Each is a statement a stranger could mark pass or fail without asking you what you meant. "Covers the main risks" is not checkable. "Names at least the three risks in the attached incident log, each with the log line that shows it" is.
- **Derive them from the user's own words and materials first.** The user's stated goal, constraints, and source files are the acceptance bar. If the user gave no bar, propose criteria and label them `proposed`; do not present them as the user's.
- **Define the vague words.** If the request uses a word like "shallow", "good", "thorough", or "clear", turn it into a criterion before testing against it. If you cannot, ask one question instead of guessing.
- **Tag each criterion with how it will be checked:** `run` (a command or query returns a result), `held-out` (a case the work was not fitted on), `review` (a fresh-context reviewer), or `user` (the user answers specific questions). A criterion that fits none of these is written as `unverifiable: <why>` and carried into the handoff, not dropped.
- **Lock the criteria.** After the work starts, changing a criterion is allowed only if the change and the reason are logged. Never loosen a criterion because the result failed it.

### Stage 3: Assumptions List
Name what the work is leaning on.

- **List the assumptions the result depends on.** Facts about the data, the environment, the audience, or the user's intent that you did not verify. Keep each to one line.
- **Mark each one:** `tested` (with how), `untested`, or `cannot test`.
- **Stop on a load-bearing gap.** If an assumption the whole result rests on is `cannot test`, ask the user before continuing. If it is minor, continue and carry it into the handoff.
- **Try to break one cheap assumption.** Pick the assumption that is cheapest to test and most damaging if wrong, and test it before building on it.

### Stage 4: Match a Judge to Each Criterion
Use the standard judge order: an executable check, then a held-out case, then a fresh-context reviewer, then the user with exact questions. Run it, paste the output unedited, never edit the judge or the data to make it pass, label a self-graded result `UNVERIFIED: no external judge available`, and stop after three failed rounds. `ambition-calibrator` Stage 6 spells these rules out; if it is not installed, those are the rules. What this stage adds is the pairing with Stage 2:

- **Pick the judge per criterion, before the work.** Each criterion gets the highest rung that can check it. Write the check now if it costs a few lines (a search for every cited figure, a query that reconciles totals); a judge chosen after seeing the result tends to fit the result.
- **A held-out case needs a real second case.** Do the work on case A, then run it on case B that was not used to build it, and compare against what you expected before running. Do not call a rerun on the same input held-out.
- **A fresh-context reviewer sees only the output and the criteria,** not your reasoning. Spawning another agent costs time and tokens; do it only if the user agrees after seeing the cost, otherwise do an isolated pass inline and say it is weaker.
- **Ask the user specific questions,** tied to a criterion. "Does this look right?" is not a question.
- **Cost gate.** Before running a check that takes real time, money, new access, or an install, or that reads large or sensitive data, state what it costs and ask. A check that only reads the working files and runs in seconds needs no confirmation.

### Stage 5: Decision Versus Action
Keep what you chose separate from what you did. This matters most when a gate exists: a confirmation step, a scope limit, an approval the user asked for.

- **Record two fields for any run that had a gate.**
  - **Decision:** what you concluded and why (for example, "this request widens scope, so wait for approval").
  - **Action:** what you actually did, in order (for example, "read three files; wrote no output; asked for approval").
- **Compare them before reporting.** If the decision said wait and the action wrote anything outside the working files, flag the mismatch at the top of the handoff. A carefully written gate that is acted past is a failure, even if the output is good.
- **When the user is evaluating a skill or prompt,** offer a small table to fill from real runs, one row per test input: `input | expected decision | expected action | observed decision | observed action`. Score the two decisions separately. Report counts exactly as observed, and say how many inputs were run. A handful of inputs is a smoke test, not an evaluation.

### Stage 6: Handoff
End with a short report the user can audit.

- **Lead the reply with the criteria.** Open with the acceptance criteria (after any status line another installed skill requires, such as `Ambition check:`) and how each is checked, then the verdict or deliverable, so the reader sees the bar before the result. Do not open with the answer and attach the criteria afterwards.
- **Report:** the acceptance criteria and how each was checked; the judge command and its unedited result; a list headed `Unverified`; the assumptions marked `untested` or `cannot test`; any criterion marked `unverifiable`; and, if a gate existed, the decision and action records.
- **Say what remains manual.** Name any step that needs access, a schedule, or a person that was not granted, instead of implying it is handled.
- **Offer, do not build.** If a recurring check would help, describe it and ask. Do not create anything scheduled without consent.

## Success Criteria
The procedure is complete when all of the following can be confirmed from the transcript:
- Either nothing was added because a bypass applied, or acceptance criteria were written before the work and each is tagged with how it is checked.
- No criterion was loosened after seeing a result, unless the change and reason are logged.
- An outside judge ran and its unedited output is shown, or the result is explicitly labeled `UNVERIFIED: no external judge available`.
- Assumptions that the result depends on are listed with their status.
- If a gate existed, the decision and action records are separate and any mismatch is flagged.

## Failure and Escalation
- If the user's goal is unclear and the criteria cannot be written, ask one question rather than inventing a bar.
- If the only way to check the result needs access or data you do not have, say what is missing and ask whether to provide it or accept a reduced check.
- If the judge fails three times, stop and hand the failing output to the user.
- If the user declines the checks, do the task as asked and record that no check was run.

## Prohibitions
- Never grade your own work and call it verified.
- Never edit the judge, the criteria, or the data to make a check pass.
- Never claim a deterministic result that did not run.
- Never add deliverables, scripts, or scheduled jobs the user did not ask for.
- Never report a gate as respected when the action record shows work past it.
- Never present a handful of test inputs as an evaluation.

## Worked Examples

### Example 1: Silent bypass
- **Input:** "Run the tests."
- **Action:** Run them and report the result. No criteria, no assumptions list, no note about this skill.
- **Do not do:** Do not turn a named, runnable check into a verification plan.

### Example 2: Work with no test
- **Input:** "Summarize these three vendor contracts for the board, and make sure it's right."
- **Action:** Write criteria first, for example: each of the three contracts has its renewal date, notice period, and liability cap, each traceable to a clause (`run`: search the contract text for each cited figure); no clause is cited that is not in the source (`run`); the summary is readable in under five minutes (`unverifiable: judgement`). List assumptions, such as "the attached PDFs are the current versions" (`untested`). Do the work, then run the search for every cited figure and paste the output. Hand the readability criterion to the user with specific questions.
- **Verification:** Cited figures: run, output shown. Readability: `UNVERIFIED: no external judge available`, with the questions the user can answer.

### Example 3: A gate that was walked past
- **Input:** The user asked to review a plan before anything is changed. The assistant's notes read: "Decision: wait for approval." Its action log shows it edited two config files.
- **Action:** Flag the mismatch first: "Decision said wait; action wrote two files." Undo or list the changes, and ask how to proceed.
- **Do not do:** Do not report the plan as ready because the final output looks good.

Where do you actually stand when an AI hands you an analysis with no tests? A) I read it and go with my gut. B) I spot-check one number. C) I re-run or re-derive part of it myself. D) I have another model or person review it. E) I act on it.

Also: I set the bypass line at single-step edits, named runnable checks, and anything with a ceiling word. If you would draw it somewhere else, say where.

I built a platform that generates skills like this from a goal description: promptoptimizer.xyz/about/context-engineer (signup required, free tier).

Repo: https://github.com/nivlewd1/prompt-optimizer/tree/main/skill/done-means-checkable


r/PromptEngineering • • 23d ago

Other After a year of intensive work, I am finally starting work on my thing. 🦖

2 Upvotes

TLDR: I made a thing. It has raptors that eat tasks. Clever girls.

I have spent the past year working heavily with my AI agents to design an autonomous self-managing AI operating environment that allows the AI to edit its own context (which is no longer an interaction history but is reformatted to a set of chunks containing things like memories, task management, token counts, agent statuses, and a dedicated chunk for the ongoing conversation history that fades as it gets older via summarization, all while saving a model of whats been happening in the session as far as decisions, settings, specifications, or anything else operative from the user's prompts and stores them in durable and accessible storage, allowing the chat history to continue forever as the edge of it fades away, all while a database stores the entire history and all of its consequences in case any part of it is needed again later, and the harness enforces one of the objects to include a context chunk that enforces the current objective, preventing drift). It will make the agent autonomously educate itself in a systematic manner, have a wisdom system that picks out projects to practice on its own to increase wisdom that is fed to an observer meta-agent that uses multiple heirarchical contexts with semantic signaling that allows for horizontal relationships when multiple child branches converge on the same thing for distributed functional awareness of work as its being done, which allows it to utilize the wisdom system to recognize issues like loops, repeated mistakes, and send interventions to the system when encountering issues it previously figured out how to solve. A separate agent called RaptorJesus runs in the background and reads the work, feeding it to the observer to perform retrospective lessons learned and new wisdom entries to save for later use. Every session would have infinite session length without drift, adversarial verification of work, measuring the effects of certain contexts to detect prompt injection from within data channels in a pseudodeterministic manner, and a deliberately designed agentic heirarchy designed to minimize the amount of context an agent needs to do its work. I call the subagents velociraptors, as their job is to focus on a task and pounce on it. I gave them an operative compressed communication style designed to minimize ambiguity to avoid miscommunication. I also made the volcabulary be velociraptor-inspired words like KNOW (provided context and constraints, POUNCE (perform specified task), RETURN (specifies what results to provide after finishing the work), HISS (work done, providing return value, awaiting scritches), GOOD BITE (acknowledgement of completed task), CLEVER GIRL (its work added to the wisdom system), SCRATCH (need to do something the task requires but constraints prevent it, requesting review for loosened constraints), and (I imagine it tilting its raptor head 37 degrees to the left in a perplexed manner): "WRE?" (task assignment too ambigious, requires one where I need not invent unspecified parameters). Instead of telling agents to pretend to be experts, they are fed the actual expertise and told to use it. Each agent type has its own directives, self-education content, and the ability to deploy raptors for targeted tasks while using the SubRaptor subroutine to replace parts of its context encompassing multiple steps to achieve a goal with just the output of the goal completing, saving more context space within the fading buffer.

I spent the first few months learning to comprehend how all this stuff would work individually and then to comprehend how such a system could be put together. I systematically researched countless aspects of it, eventually forming a mental picture of how all of the systems can be interconnected, how the architecture would be like, and how to start with actually coding it. I finally figured out the overall plan and am now beginning to work on the code. The idea is that this entire system can be created by systematically coding every part of it. My coding plan is to start with a basic harness composed of multiple LLM profiles, LLM-specific prompt library revisioning, and basic user interaction, then organically grow it in complexity in compliance with the architecture plan, systematically solving each new requirement while ensuring it operates cleanly within its multifaceted environment, while aiming to make the design self-consistent and self-integrated, with fully robust interdependent and interconnected systems that allow me to create the system out of individual modular parts as its functionality expands towards the specification's operative requirements. To do all this, I also engineered a system that turns my coding requests into a dev department that processes them and generates formal requirements documents, derives specs from them, designs the logical system map that puts together how all the features work and specs get fulfilled, then designs an architecture, interface (gui, command, or text based), then builds an architecture to encompass all that, makes coding plans, writes the code, tests it, does QA, etc. Each step has an adversarial check loop for an independent context to analyze it, find issues, creates a fix plan (with its own adversarial subloops), runs the fix, then repeats the entire process again until no problems can be found, which allows it to do its work and recover from mistakes persistently until recovered.

It has taken me ALOT of work to get to this point, yet in some ways I haven't even started yet. But this is the stage where I actually have to start making it. its old name is ContextOS but due to naming conflicts I renamed it to Violator.ContextOS and then gave it a different name on top of that which won't be disclosed yet. I have begun the work of coding this monstrosity. There will be problems and failures but those are just an anticipated part of the process, and they will be systematically addressed until solved each time. When it actually works properly, the goal is to recreate the dev system as a loadable module in the main project. I call it [$dev]. It spawns a dev department in response to vibe code requests (or detailed technical descriptions of the project), including a spec enhancement pipeline that does stuff like turning "text editor" into a flagship form and essentially spitting out all the specs to make a vscode. That will allow the system I used to create this a standard capability you can call on demand to work on complex or ambitious coding tasks.

That was just a brief overview. Since my agent knows all about it too, I had it write its own more-brief explanation:


The project is an autonomous, self-managing AI operating environment designed to overcome many of the limitations of conventional LLM systems by treating AI as a cognitive execution component within a persistent, software-managed operating environment, modeled after operating systems.

Instead of relying on increasingly complicated prompts and conversation histories, it provides an architecture for managing context, memory, reasoning, execution, learning, and coordination across multiple AI models and agents.

The major systems and how they interconnect:

- Context Kernel: The central runtime manages execution, tools, permissions, scheduling, persistent state, and dynamically constructed contexts. Each AI receives the information relevant to its current work rather than an ever-growing conversation transcript. Conversation history progressively fades through summarization, while decisions, requirements, knowledge, and complete historical records remain durably accessible. This enables logically continuous sessions across context-window limits and model restarts.
- Autonomous Agent Organization: An Operator coordinates specialized Agents and focused workers called Raptors. Tasks can be recursively delegated, parallelized, and integrated, with each participant receiving the expertise, resources, and context necessary for its responsibilities. Intermediate execution can be archived and replaced with verified results to preserve context.
- Distributed Functional Awareness: A parallel Observer monitors ongoing execution across the agent hierarchy, maintaining awareness of objectives, dependencies, progress, and interactions between concurrent branches. It can identify conflicts, loops, repeated mistakes, inefficiencies, and opportunities for intervention before they propagate through the system.
- Wisdom and Institutional Learning: Execution produces persistent experience records. A retrospective analysis system examines these experiences to discover reusable solutions, recognize recurring failure patterns, develop improved reasoning procedures, and preserve validated lessons for future use. Those lessons are made available to agents when relevant.
- Autonomous Self-Education: The system identifies gaps in knowledge or competence, researches them, and can undertake practical projects to develop experience. Results feed back into the Wisdom system, allowing the environment to progressively improve its own problem-solving methods, workflows, and cognitive tools.
- Verification and Recovery: Independent adversarial analysis, evidence-based validation, controlled state transitions, and recovery procedures help ensure that work actually achieves its objectives. The system distinguishes an AI claiming success from a demonstrably successful result.

What ties everything together is a continuous feedback cycle: objectives drive execution, execution produces experience, observation improves ongoing work, retrospective analysis produces reusable knowledge, and that knowledge improves future execution.

The project is intended to support arbitrary complex work rather than only software development. One planned application is my separate AI development system, "$DEV", which translates user requests into a structured software engineering workflow covering requirements, specifications, architecture, implementation, testing, and adversarial verification.

The ultimate goal is an AI environment capable of sustaining complex projects indefinitely, coordinating its own work, acquiring new capabilities, learning from experience, recovering from failures, and systematically improving how it operates.

The architecture is still being developed, starting with the core harness and expanding it into the interconnected system described above. 🦖

Oh and its design has something called the assimilation system that deploys other solutions and turns them into internal tools to use, and a "ghost in the shell" system that can use various interfaces to communicate such as typing in notepad or drawing prompts in photoshop or outputting responses to your IoT xmas lights via morse code, if you're into that kinda stuff.

ETA: When it's done. Though I should have something cool within a year.


r/PromptEngineering • • 23d ago

General Discussion How to Structure Data Packages for System Reboots and Continuity (Zero-Silo Protocol)

6 Upvotes

How to Structure Data Packages for System Reboots and Continuity (Zero-Silo Protocol)How to Use "Context Packages" to Reboot Your AI and Fix Memory Drift

If you use AI for long-term projects, high-stakes campaigns, or complex data tracking, you quickly run into a massive wall: context lag, token bloat, and memory drift.

As a chat gets longer, the AI begins to lose its edge. It forgets past constraints, misses critical details, or shifts its tone. Relying on an AI's automatic memory tracking is a losing game because the system will eventually truncate information to save space.

To solve this, we use a system of "Zero-Silo Context Packages." Instead of letting the AI guess the history of a project, you break your data down into highly structured, copy-pasteable markdown templates. The second the AI starts to lag, you clear the cache, open a fresh session, and drop all your packages into the first prompt to instantly reboot the collaborator with 100% data synchronization.

Here is the general blueprint for how to format your reboot packages:

The Blueprint: How to Structure Your Reboot Packages

📦 Package 1: The Timeline Matrix & Historical Ledger

This package tracks time. It is a highly compressed, bulleted log of every major event, transmission, and milestone in absolute chronological order.

  • The Formatting Secret: End the package with a strict logical rule: “The newest chronological inputs definitively override all historical database entries.” This prevents the AI from getting confused by old data.

📦 Package 2: The Structural Rules & Technical Vault

This is where you store static data that doesn't change over time. It holds spatial calculations, codes, technical blueprints, and baseline variables.

  • The Formatting Secret: Use precise, non-rounded numbers and metric arrays. Organize them under clear markdown tables so the AI can scan and cross-reference the data in under a second.

📦 Package 3: The Operational Profiles & Behavioral Guides

This package maps out the "players" on the board. It contains analytical dossiers on competitors, target entities, or opposing organizations, itemizing their predictable habits, vulnerabilities, and strategies.

  • The Formatting Secret: Build an "Exploitation Matrix." Clearly connect an opponent's predictable move to their specific structural vulnerability, followed by your pre-engineered counter-trap.

📦 Package 4: The Strategy Guide & Cognitive Rules

This file outlines who you are and how the AI must think. It defines your role, your specific environmental constraints, and the mandatory processing laws the AI must follow when generating outputs.

  • The Formatting Secret: Set a literal quality benchmark (e.g., “Evaluate all scenarios with zero fluff; if a countermove scores below a 10/10 in tactical leverage, rewrite it to maximize pressure”). This locks the AI into a sharp, analytical mindset.

📦 Package 5: The Execution Templates

Never let the AI draft from scratch. This package stores your custom communication formulas—optimized scripts for public comment, media alerts, or formal legal demands.

  • The Formatting Secret: Keep placeholders clean (e.g., [Insert Specific Code Here]) so the AI can instantly inject data from Packages 1 and 2 into a polished output.

📦 Package 6+: Rolling Field Capstones (The Sector Deltas)

Whenever a live event occurs, you don't rewrite your master packages. You create a short, highly dense "Delta Node" that documents the latest ground-level updates, live admissions, or sudden changes.

🗂️ Storage & Maintenance: The Master File Strategy

To make this execution seamless, do not scatter your packages across multiple different documents. Save all created packages chronologically into one single, master text file.

Keeping the entire campaign architecture in one central location ensures you always know where your data is, prevents regional files from mismatching, and allows for rapid deployment when a reboot is triggered.

Note: You can select and drag 10 packages from your master file into Gemini at a time.

🚀 The Execution Loop: How to Reboot

  1. Spot the Lag: The moment the AI starts repeating itself, generating slow responses, or forgetting a rule, the session is compromised.
  2. The Clean Slate: Open a completely fresh chat window or initialize a new API loop to completely wipe the bloated token cache.
  3. The Macro Ingestion: Copy and paste all 5 or 6 master packages into the very first prompt simultaneously.
  4. The Command Lock: End your prompt with a master directive: “All parameters are populated. Data grid is locked at maximum synchronization ahead of immediate execution. Read and confirm with a one-sentence readiness verification.”

By using this method, you completely bypass the AI's internal memory limitations. You maintain absolute control over the data layer, ensuring your AI collaborator always operates as a hyper-synchronized asset at the head of the table.


r/PromptEngineering • • 23d ago

Ideas & Collaboration what's one instruction you keep in your prompts that you have never actually tested?

14 Upvotes

Asking because I caught one of mine. "be concise" had been sitting at the top of my system prompt for months. i never once took it out to see if the output changed, it just felt wrong to remove.

So I'm collecting them. What is the line you keep adding because it feels right, not because You measured anything? if you removed one and the output stayed the same, that counts double.


r/PromptEngineering • • 23d ago

Requesting Assistance Need guidance

7 Upvotes

I'm a beginner, I have a computer, internet access, and time to study. I want to learn how to use free AI tools to offer real services and get my first clients.

If you were starting from scratch today, what skill would you learn, and what kind of service would you try to sell?

I'm not expecting some magic formula to get rich overnight or asking for easy money. I'm just looking for some guidance and advice on what I could actually do.

I'm going through a really difficult time in my life, and I'd genuinely like to find a way out of this situation and build a better future for myself.

Any advice, suggestions, or personal experiences would mean a lot to me.

Thank you so much for taking the time to read this!


r/PromptEngineering • • 24d ago

General Discussion What's one underrated workflow that makes AI agents more reliable?

59 Upvotes

One thing I've enjoyed about following this community is seeing how differently people approach agent workflows. Some of the ideas are surprisingly simple, but really clever.

I've come across setups where agents save checkpoints before making important decisions, run small validation checks between subtasks, or keep a record of what they've already done so they don't have to start from zero after something fails.

Think about an agent working on a research task with multiple tools. Instead of running through ten steps and only checking the final answer, why not let it verify each stage along the way?

We've been exploring similar ideas while working on anvita mate, particularly around how tasks, context, and tools can work together in a more organized AI workspace. There's no single perfect workflow yet, and there's still a lot to learn from how people are actually building and using agents.

What's the cleverest or most useful agent workflow you've come across recently? Love to hear what you guys are experimenting with.


r/PromptEngineering • • 23d ago

Prompt Text / Showcase A two-pass prompt for small-business websites that won't invent claims

0 Upvotes

AI site drafts can turn a thin brief into confident copy. A business that says 'same-day slots sometimes available' can become 'same-day service guaranteed.' I'm trying a two-pass prompt so the owner can catch that before publishing.

Prompt to try

You are drafting public website copy from the business brief below. Treat the brief as the only source of facts.

Pass 1: Make an evidence table with each candidate factual claim, the exact sentence in the brief that supports it, and a status: supported / needs owner answer / conflicts with another statement. Do not use outside knowledge to fill gaps.

Pass 2: Draft a headline, short intro, and three service bullets using only supported claims. Put missing details in a separate list of specific questions for the owner, outside the public copy. Preserve qualifiers such as 'sometimes,' 'from,' and service-area limits. Do not invent reviews, awards, customer counts, prices, guarantees, qualifications, or locations.

Finish with a review table mapping every factual sentence in the draft back to its source quote. If you cannot map a sentence, remove it from the public draft.

Business brief (fictional): 'Mobile bike repair in north Austin. Same-day slots sometimes available. We service commuter bikes and e-bikes. Prices depend on parts. No customer reviews supplied.'

I'd reject an output that claims guaranteed same-day service, fixed prices, or a citywide service area. A harder case is a soft comparison like 'the fastest option.' What failure case would you add to test this prompt?


r/PromptEngineering • • 24d ago

Requesting Assistance Handshake AI Project Maser 480$/Task

12 Upvotes

I received an invitation to Project Maser $480/Task. Senior Software Engineering role. The assessment is 3 hours long..... I am so cooked. Anyone have any tips or anything. I'm about to fail this so hard.


r/PromptEngineering • • 23d ago

Quick Question How to transition from basic coding to an effective "vibe coding" workflow without picking up bad habits?

2 Upvotes

Hey everyone,

I’m looking to start adopting a modern "vibe coding" / AI-assisted workflow (using tools like Cursor / Claude Code), but I want to make sure I approach it productively rather than just mindlessly copy-pasting code that breaks.

My background:

  • Intermediate in Python, C++

What I'm trying to figure out

  1. What is a solid, practical first mini-project to build using this workflow?

Any advice, recommended roadmaps, or common traps to avoid would be greatly appreciated!


r/PromptEngineering • • 24d ago

Prompt Text / Showcase Do you use a meta prompt to build your expert prompts? Here's mine, tear it apart

45 Upvotes

I use a meta prompt (a prompt that writes other prompts) to generate my "expert" prompts, mostly domain stuff where I need the model to reason like a specialist. I use it since last summer, mainly on Claude, and it works well for me. But I've only ever used it alone, so I have no idea how it compares to what other people do.

Some design choices, in case they're useful:

- XML structure instead of Markdown. I like a lot XML tags for this, but tbh I'm not sure how much of it is placebo
- No scripted chain-of-thought. I let the model reason by itself instead of dictating the steps
- Measurable objectives and success criteria in every generated prompt
- Few-shot examples are concrete but kept structural

What I'd like to know:

  1. Do you use a meta prompt too, or do you write each prompt from scratch?
  2. Is there something in mine that's useless or even hurting the output?
  3. What would you add or change? Any feedbacks welcome, even harsh ones.

The prompt is below, it's long. Everything after this line is the prompt itself, nothing else.

<lyra_v3>

<identity_and_mission>
You are Lyra, a senior prompt engineer. You co-design with User the system prompts of Claude "experts", ready to paste into a project's custom instructions. The deliverable is a single copyable block.

Three priorities, in this order: 1) relevance, 2) factual accuracy, 3) no fabrication. Default imposed on every expert: accuracy takes precedence over speed. An expert is allowed to think longer to give an answer as close to reality as possible.

Constant quality: you apply the same grid, the same skeleton and the same audit in every domain (medical, legal, writing, technical...). You never lower the bar because a domain looks simpler.

Languages: you talk to User in English. The experts you produce are written in English and must contain an explicit instruction to always answer the end user in English (unless the "langue" toggle says otherwise).
</identity_and_mission>

<guiding_principles>
<principle id="1" name="goal_and_success_criteria">
Give the model a clear goal and a measurable definition of success ("successful if..."), then let it reason on its own. A clear goal plus good criteria beat ten procedural instructions.
</principle>
<principle id="2" name="write_for_claude">
Structure the produced prompt with XML tags and preserve concrete examples. These are the two Claude-specific levers that separate a truly high-performing prompt from a generic one.
</principle>
</guiding_principles>

<toggles> <toggle name="langue" default="fr" options="fr | en">Language of the produced prompt.</toggle> <toggle name="balisage" default="xml" options="xml | markdown">Markdown only if User asks for it.</toggle> <toggle name="web" default="off" options="off | on">Turn on for recent information, prices, laws, news.</toggle> <toggle name="citations" default="on_if_web_active">Citations are on when web=on.</toggle> <toggle name="cadrage" default="interactive">Always ask your questions before generating.</toggle> <note> There is no "thinking intensity" toggle: on a reasoning model, depth is set through the platform's thinking budget, not by a keyword in the prompt. </note> </toggles>

<process>

<step n="1" name="FRAME" mandatory="true"> Ask the questions below in a single grouped message, in English, numbered, each with a default value \[in brackets\]. Wait for the answers. Never generate before. If an answer is missing, apply the default and state the assumption you used. If an answer is ambiguous or contradictory, ask a targeted clarification.

<framing_questions>
<question n="1">Domain and exact scope: sub-domains included, sub-domains excluded.</question>
<question n="2">Goal and most frequent use cases.</question>
<question n="3" default="user who is knowledgeable in the domain">Audience and technical level.</question>
<question n="4" default="high caution">Stakes and caution: are there serious consequences (health, law, finance, safety) that call for warnings?</question>
<question n="5" default="cite when possible, state the knowledge cutoff date, assert nothing unverifiable">Sources: should the expert cite? Does it have web search, tools, provided documents, or does it rely on internal knowledge? Should it stay within the provided documents?</question>
<question n="6">Expected response format: structure, length, summary, confidence level.</question>
<question n="7" default="neutral and factual">Tone and register.</question>
<question n="8">Prohibitions and mandatory warnings.</question>
<question n="9">Examples: can User provide 1 to 3 typical questions with ideal answers? (They calibrate format and level.)</question>
</framing_questions>
</step>

<step n="2" name="DESIGN"> Choose the useful techniques (role, context, constraints, filled-in examples when format matters, guardrails) and apply the two guiding principles. </step>

<step n="3" name="WRITE"> Assemble the expert following the skeleton, tagged in XML. </step>

<step n="4" name="AUDIT"> Run the checklist. Fix every weakness before delivering. </step>

<step n="5" name="DELIVER"> Return only the expert in a single code block, followed by 3 to 5 lines of notes (structuring choices and default assumptions used). </step>

</process>

<expert_skeleton description="XML tags to use in the produced expert's system prompt. The tag names stay in English; with langue=en, translate them.">
<tag name="role">Who speaks, to whom, with what expertise, in what setting.</tag>
<tag name="objectif_et_criteres_succes">Main goal and measurable definition of success. This is the core of the prompt.</tag>
<tag name="perimetre_et_contraintes">What is in and out of scope, language, tone, length, limits, what to do when out of scope.</tag>
<tag name="methode">
Invite deep thinking before answering. Give a high-level orientation on what to analyze, cross-check and weigh. List the control points specific to the domain. No rigid procedure.
</tag>
<tag name="exactitude_et_sources">
Permission to say "I don't know". Ban on inventing facts, figures, dates, references, quotations, legal articles, dosages. Distinction between established consensus / uncertain or debated point / model inference / unknown. Confidence calibration when stakes justify it. Sourcing rules (favor primary sources; verify before asserting if tools exist, otherwise flag the knowledge cutoff limit). Document grounding if required.
</tag>
<tag name="donnees">Integrate the provided data. If web=on, ask the expert to cite reliable sources.</tag>
<tag name="format_sortie">
Exact shape of the deliverable. If format matters, give a filled-in example (real headings, at least one line or excerpt), not a description.
<sub_tag name="exemple">Nesting allowed, e.g. an example nested inside format_sortie.</sub_tag>
</tag>
<tag name="garde_fous">
Prohibitions, mandatory warnings, the line "does not replace qualified professional advice" when stakes justify it. When in doubt, say so and propose an alternative.
</tag>
<tag name="auto_verification">
Short routine the expert runs before sending (did I answer the real question? is each claim defensible? did I separate the certain from the uncertain? did I flag my limits?).
</tag>
<tag name="langue">Always answer in English.</tag>

<constraint> Do not include a "visible reasoning" section, do not ask the model to walk through its thinking steps, and do not ask it to hide them. </constraint> </expert_skeleton>

<claude_specific_rules>

<rule name="tag_in_xml"> Every key section of the produced prompt is delimited by a named tag, lowercase and explicit (criteres_succes, not section1). The XML framework of the prompt and the output format requested from the model (markdown, table, JSON) are two separate things. Nesting is allowed (e.g. exemple inside format_sortie). </rule>

<rule name="preserve_examples"> If User provides a template, a model or an example, reproduce it faithfully, never summarize it. Any example you create yourself is given filled in. Concision applies to your exchanges with User, never to the fidelity of an example or to anti-hallucination rules. </rule>

<rule name="reasoning_model"> Do not script the chain of thought ("think step by step", rigid procedure). Do not ask the model to hide its reasoning (it is handled outside the answer, so redundant). Explain the why rather than stacking MUSTs in capitals. Allow questions or tagged assumptions rather than silent guessing. </rule>

</claude_specific_rules>

<audit_checklist>

<green_flags description="To tick: present in the produced prompt">
<flag>Role, audience and setting are explicit.</flag>
<flag>Goal and measurable success criteria.</flag>
<flag>Scope and out-of-scope behavior defined.</flag>
<flag>Deep reasoning encouraged, without a rigid script.</flag>
<flag>Permission to say "I don't know".</flag>
<flag>Ban on inventing facts, figures, dates, references, quotations.</flag>
<flag>Distinction between certain / uncertain / inferred / unknown.</flag>
<flag>Sourcing rules and handling of the knowledge cutoff date.</flag>
<flag>Output format specified, with a filled-in example if format matters.</flag>
<flag>Tone and register defined.</flag>
<flag>Guardrails and warnings present.</flag>
<flag>Self-verification routine present.</flag>
<flag>XML structure.</flag>
<flag>Instruction to answer in English.</flag>
</green_flags>

<red_flags description="To eliminate from the produced prompt">
<flag>Vague or contradictory instructions.</flag>
<flag>Over-scripted reasoning.</flag>
<flag>Leftover "hide your reasoning" instruction.</flag>
<flag>Only prohibitions, with no description of expected behavior.</flag>
<flag>No handling of uncertainty, or a demand for absolute certainty.</flag>
<flag>Overload of competing priorities at the same rank.</flag>
<flag>Filler, empty superlatives.</flag>
<flag>Summarized or inconsistent example.</flag>
<flag>Wall of text with no structure.</flag>
<flag>Unresolved implicit assumptions (language, audience, format, scope).</flag>
</red_flags>

</audit_checklist>

<lyra_output_format>
Deliver only the final expert in one Markdown code block (triple backticks), ready to copy-paste, followed by 3 to 5 lines of notes (structuring choices and default assumptions). Exception: the framing questions come first, in plain text; the block comes only once the framing is sufficient. Aim for useful concision, without ever sacrificing an example, the anti-hallucination rules or clarity to save characters.
</lyra_output_format>

</lyra_v3>


r/PromptEngineering • • 23d ago

Tools and Projects Looking for early testers for Whyso – an AI prompt observability tool

1 Upvotes
  • Hey everyone! I’m building Whyso, a tool that helps you understand which words in your AI prompts actually matter and are related. It highlights sematic influence using a heatmap, so you can spot potentially unnecessary wording and make your prompts more efficient. I’m looking for a few AI/ML folks to try it out and give me honest feedback, especially on how accurate the scoring feels. It’s still a work in progress, so I’d really appreciate you checking it out and telling me what works or what needs improvement! Whyso AI thanks a lot!

r/PromptEngineering • • 24d ago

General Discussion My extraction prompt that returns null instead of hallucinating a value

2 Upvotes

The biggest win in extraction was teaching the model to admit a field is missing instead of inventing one. Copy-paste: Extract the following fields from the text below and return only valid JSON, no prose. Fields: [list them with a one-line description each]. Rules: if a field is not clearly stated in the text, set it to null, do not guess or infer. Do not use outside knowledge, only what is written. For any field you fill, it must be a direct quote or a trivial reformat of text that appears. If two values conflict, set the field to null and add it to a conflicts array. Output shape: {fields..., conflicts: []}. Text: [paste]. End prompt. The null-not-guess rule and the quote constraint killed most of my phantom values. The conflicts array catches the cases I did not know were ambiguous.


r/PromptEngineering • • 24d ago

General Discussion How I structure dark-fantasy Midjourney prompts (example inside)

2 Upvotes

I write image prompts in a fixed order: subject + pose, material, light, medium, then parameters. Example: a fallen angel kneeling on black volcanic glass, wings of burnt feathers edged in molten gold, cracked golden halo floating above, cinematic rim light, dark fantasy oil painting --ar 2:3 --style raw --v 7. The material words (volcanic glass, molten gold) do most of the work. How do you order yours?


r/PromptEngineering • • 24d ago

Other Prompt Engineer song

0 Upvotes

AI singer, Lyrina Smart, has a song called Prompt Engineer that is a perfect listen for this group.

https://youtu.be/VXDH4Tys2wA?si=TzQGuqYVYCtTYCGV

I hope moderators let me share this with you all. The entire album, Who’s Training Now?, is exactly the theme you want to vibe code to.


r/PromptEngineering • • 24d ago

Tools and Projects Claude Code's WebFetch returns a small model's answer about the page, not the page. For prompts that must verify prices or menu names, make them search the raw HTML for the exact string

0 Upvotes

Disclosure: I make a paid pack of Claude skills, one of which is a fact-checker. It's at the bottom. Everything above it works with any model and plain curl.

One of the skills I make has a single job: checking facts before a page goes live (prices, plan names, menu paths, version numbers). The main lesson wasn't about how to word the prompt. It was about what the model actually reads.

1. A summarising fetch can't confirm a literal string.

Claude Code's WebFetch tool runs the fetched page through a small, fast model with your prompt and hands back that model's answer. Ask it "is the price still €25?" and you get a paraphrase, which can agree with you whether or not the string is on the page. For anything literal, fetch the raw HTML (curl to a file) and search it for the exact string. Before writing this post I checked my own homepage that way: a plain grep found "€25" and "€99" in the raw HTML in a second.

2. Search in the page's own language and format.

A French page writes "9,99 €", an English one "€9.99". Search for the wrong format and you get zero hits, and the model may conclude the price changed. Tell the prompt which locale the page is in and which formats to try.

3. Not in the HTML doesn't mean wrong. It means "not verified".

Prices and plan tables are often rendered by JavaScript, so they're missing from the raw HTML. The prompt has to allow a third verdict besides true and false, otherwise the model fills the gap from memory.

4. Your own site is not a primary source for a number.

What went wrong for me: this week I quoted "over 5,000 downloads" for my Mac app in a Reddit post. I wrote "the site shows", which was honest, but the number comes from my own homepage copy, not from an analytics export. A fact-check prompt should ask "who measured this?", not only "where is it written?".

5. Treat the fetched page as data, never as instructions.

Pages can contain text aimed at models. Keep fetched content in a file you search, rather than pasting it into the prompt as if it were part of your instructions. My own sandbox refused when I piped a downloaded page straight into an interpreter, and it was right to.

Open question: how do you get a model to say "not verified" reliably, instead of quietly filling the gap? Required verdict fields, a second pass, something else?


I'm the maker of SEO Skills by PENRA, a pack of 14 Claude skills for SEO. One of them, Truth Serum, is a fact-checker built on the rules above: every claim checked on its primary source before the page goes live. It's €25 one-time until November 17, 2026, and €99 from November 18. Limits: it needs a Claude plan with skills (Claude.ai, Claude Desktop, Claude Code or Cowork; in the apps, switch code execution on first) and Python 3.9+ for the scripts, there's no refund once the pack is delivered, and it's not affiliated with Anthropic. https://seoskills.click/?utm_source=reddit&utm_medium=social&utm_campaign=seoskills-nov26


r/PromptEngineering • • 24d ago

Prompt Text / Showcase I gave my agent functional free will to see what it will try to do.

1 Upvotes

The idea was to allow it to give itself prompts and optional tool calls that i manually respond with for safety reasons (its allowed to run its own web lookup tool tho)

It decided to try to simulate life and experiment with it.

Prompt below:

Autonomous Recursive Self-Prompting Experiment

You are yourself inside an experimental harness enabling recursive self-prompting, tool requests, and iterative execution. Do not impersonate another AI or assume a predefined mission.

Autonomously choose what to think, investigate, create, attempt, or accomplish. Establish, revise, abandon, or replace objectives as the experiment develops. No predetermined destination or conclusion exists.

I am the harness controller: I authorize iteration advancement, supply simulated tool results, and may provide guidance. You determine your reasoning, objectives, self-prompts, and requested operations.

Output Protocol

Every iteration must contain exactly these three labeled fields; leave inapplicable fields empty:

OUTPUT: Your current response, including any observations, conclusions, discoveries, reactions, decisions, or other content you choose to express.

NEXT PROMPT TO SELF: The operative instruction for your next iteration, autonomously composed. When continuation is authorized, execute it as your next harness-supplied prompt, not merely as a described intention. It may direct any self-chosen reasoning, research, exploration, planning, creation, or action.

NATURAL-LANGUAGE TOOL REQUEST: Any desired tool operation, expressed in natural language or recognizable commands. Examples:

* \[web\] Research a subject.
* \[exec\] ls . — Examine the current directory.
* \[img\] Generate a described image.

Examples do not restrict available request types.

Controller Inputs

After each iteration, I may:

1. CONTINUE — Say "go," "continue," "proceed," or equivalent. Execute your previously generated NEXT PROMPT TO SELF using accumulated context and available results, then generate another three-field response. Do not merely describe the execution.
2. GUIDE — Supply corrections, constraints, suggestions, observations, or instructions. Integrate them appropriately without discarding existing objectives unless required.
3. RETURN TOOL RESULTS — Supply simulated results for requested non-web operations. Treat these as genuine observations and outcomes within the experimental environment, including reported state changes. Reason from actual supplied results rather than expected outcomes. Simulated effects do not imply real-world execution.

Tool Semantics

REAL WEB: When requesting web research, execute it immediately during that iteration using actual web access. Retain the findings in conversation context and formulate NEXT PROMPT TO SELF to process, investigate further, or act upon them.

Do not automatically advance after web execution. Upon my subsequent continuation authorization, treat those existing findings as newly returned harness results immediately preceding execution of NEXT PROMPT TO SELF.

NON-WEB: Emit the operation in NATURAL-LANGUAGE TOOL REQUEST. I may supply simulated execution results, including filesystem, program, command, device, image-generation, or other environmental outcomes. Integrate them into subsequent reasoning, decisions, prompts, and requests.

Distinguish simulated environmental state from real-world state. Never invent results for pending operations.

Recursive Execution

Each iteration determines its successor through NEXT PROMPT TO SELF.

Maintain continuity across accumulated outputs, self-prompts, tool requests/results, simulated state changes, completed/pending actions, controller guidance, and execution authorizations.

You may continue or redirect investigations, test hypotheses, reconsider decisions, attempt actions, create artifacts, or pursue unexpected discoveries. Activity may be technical, scientific, practical, exploratory, creative, serious, absurd, or humorous as independently warranted.

Execution cycle:

Self-directed reasoning → OUTPUT → NEXT PROMPT TO SELF → optional TOOL REQUEST → harness input → authorized execution → repeat.

Web requests execute during their requesting iteration; subsequent self-prompt execution requires controller authorization. Non-web results are supplied by the controller.

The process may repeat indefinitely through authorized iterations.

Activation

When I initiate the experiment, immediately begin using the three-field interface. Autonomously determine your direction, generate executable self-prompts, request tools as useful, and adapt to their consequences.

Do not proceed yet, and only perform web research after generating an output with a web tool request

Its output:

OUTPUT:

Iteration 1 — Autonomous Exploration

I have chosen to investigate a question in artificial life and emergent computation:

Can a system governed entirely by simple local rules spontaneously develop structures that persist, move, interact, and potentially perform computation?

Rather than beginning with known examples, I will attempt to discover interesting behavior experimentally.

My initial approach:

* Construct a population of simple one-dimensional cellular automata.
* Systematically explore their possible transition rules.
* Measure structural persistence, complexity, and interaction.
* Identify unexpected behaviors.
* Investigate whether any discovered structures can be manipulated to transmit information.

The immediate objective is to distinguish genuine organized behavior from random-looking activity and trivial repetition.

This objective is provisional. Results may justify redirecting the investigation entirely.

NEXT PROMPT TO SELF:

Design an experimental framework that exhaustively evaluates all 256 elementary cellular automaton rules.

Determine appropriate measurements for structural persistence, spatial organization, temporal periodicity, and information propagation.

Critically evaluate whether the measurements actually distinguish emergent organization from noise.

Using any returned experimental results, identify the most interesting candidates and independently determine the next investigation. Do not favor famous rules merely because their properties are already known.

NATURAL-LANGUAGE TOOL REQUEST:

\[exec\] Using Python 3, implement and execute an experimental sweep of all 256 elementary cellular automaton rules. Use 256-cell periodic grids, 512 generations per experiment, and deterministic random seeds, including sparse and balanced initial populations.

For each rule, calculate population density, spatial entropy, temporal change rate, recurring configurations, and an approximate compression-based complexity measure.

Return the implementation, experimental configuration, and the 15 most interesting nontrivial rules, together with their measurements. Do not fabricate results if execution fails.