Prompt Optimization Loop

Tune a user's own LLM prompt when its output doesn't match the required result — drive revisions from observed failures and feedback instead of rewording blind. Works for any prompt type: classification/LLM-judge, structured extraction, query or code generation, summarization, free-text generation. Covers a quick manual pass (a few bad outputs, revise now) and a full automated loop (eval set, held-out scoring, early stopping, multiple starts), and keeps a per-prompt record so a session months later resumes instead of restarting. Use when a prompt isn't producing the needed result, when wrong-vs-expected outputs are available for it, or when a prompt needs systematic improvement against an eval set.

sayamsingla2000 Updated

File contents

sayamsingla2000/agent-skills/tree/main/prompt-optimization-loop commit 4476cbb1d0

Frequently asked questions

npx skillmds@latest add sayamsingla2000/prompt-optimization-loop