Use when the user has a prompt that feeds a system they can already score, and wants that prompt automatically improved to raise the score against their own evaluation command. Makes one targeted quality edit per iteration — clarity, context, specificity, structure, examples, decomposition, guardrails — re-runs the user's eval to measure the metric, and keeps the edit only if the metric improves, else reverts; loops to a target, plateau, or budget. The metric is whatever the user's eval command prints (task accuracy, an LLM-judge score, a pass rate, a tool-call success rate); the loop is metric-agnostic and never edits the eval. Not for writing a prompt from scratch, not for tuning model weights or hyperparameters, and not for one-off manual prompt edits without a score.
$npx -y skills add gaasher/agent-loop-skills --skill prompt-optimizeInstalls into the current project.
Run `npx skills use "https://github.com/gaasher/agent-loop-skills" --skill "gaasher/agent-loop-skills/prompt-optimize"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/gaasher/agent-loop-skills" that are relevant to the current task. Run `npx skills add "https://github.com/gaasher/agent-loop-skills"` and select the relevant skills, then follow their instructions.