I built a prompt refactoring engine using a Proposer–Critic–Verifier pipeline

I’ve been experimenting with a simple idea:

Maybe many unstable LLM outputs are caused not by the model itself, but by badly structured prompts.

So I built a web tool that refactors messy prompts into structured prompt specifications.

Instead of ask…


This content originally appeared on DEV Community and was authored by Арсений Перель

I’ve been experimenting with a simple idea:

Maybe many unstable LLM outputs are caused not by the model itself, but by badly structured prompts.

So I built a web tool that refactors messy prompts into structured prompt specifications.

Instead of asking the model to “improve” a prompt once, the system runs an optimization loop:

  • Proposer restructures the prompt
  • Critic evaluates clarity, structure, and task definition
  • Verifier checks consistency
  • Arbiter decides whether another iteration is needed

The output is a structured prompt spec with:

  • sections
  • explicit requirements
  • output constraints
  • improved clarity

The full optimization usually takes around 30–40 seconds.

Demo:
https://how-to-grab-me.vercel.app/

What I’m trying to validate now is simple:
Should prompt refactoring become a standard preprocessing layer for LLM workflows?


This content originally appeared on DEV Community and was authored by Арсений Перель


Print Share Comment Cite Upload Translate Updates
APA

Арсений Перель | Sciencx (2026-03-13T15:30:25+00:00) I built a prompt refactoring engine using a Proposer–Critic–Verifier pipeline. Retrieved from https://www.scien.cx/2026/03/13/i-built-a-prompt-refactoring-engine-using-a-proposer-critic-verifier-pipeline-3/

MLA
" » I built a prompt refactoring engine using a Proposer–Critic–Verifier pipeline." Арсений Перель | Sciencx - Friday March 13, 2026, https://www.scien.cx/2026/03/13/i-built-a-prompt-refactoring-engine-using-a-proposer-critic-verifier-pipeline-3/
HARVARD
Арсений Перель | Sciencx Friday March 13, 2026 » I built a prompt refactoring engine using a Proposer–Critic–Verifier pipeline., viewed ,<https://www.scien.cx/2026/03/13/i-built-a-prompt-refactoring-engine-using-a-proposer-critic-verifier-pipeline-3/>
VANCOUVER
Арсений Перель | Sciencx - » I built a prompt refactoring engine using a Proposer–Critic–Verifier pipeline. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2026/03/13/i-built-a-prompt-refactoring-engine-using-a-proposer-critic-verifier-pipeline-3/
CHICAGO
" » I built a prompt refactoring engine using a Proposer–Critic–Verifier pipeline." Арсений Перель | Sciencx - Accessed . https://www.scien.cx/2026/03/13/i-built-a-prompt-refactoring-engine-using-a-proposer-critic-verifier-pipeline-3/
IEEE
" » I built a prompt refactoring engine using a Proposer–Critic–Verifier pipeline." Арсений Перель | Sciencx [Online]. Available: https://www.scien.cx/2026/03/13/i-built-a-prompt-refactoring-engine-using-a-proposer-critic-verifier-pipeline-3/. [Accessed: ]
rf:citation
» I built a prompt refactoring engine using a Proposer–Critic–Verifier pipeline | Арсений Перель | Sciencx | https://www.scien.cx/2026/03/13/i-built-a-prompt-refactoring-engine-using-a-proposer-critic-verifier-pipeline-3/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.