Skill / SKILL.md

Prompt Optimize

gaasher/Agent-Loop-Skills

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.
2 views 185 repository stars 0 commentsUpdated Nov 27, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/gaasher/Agent-Loop-Skills' skill-source

Use the complete skill-source/loops/prompt-optimize directory with your client’s skill installer.

  • loops/prompt-optimize

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory loops/prompt-optimize

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
4884b4fe9631a3b22267671f428cd6a17c569e3c44716a9ac7d19334c7a14eb7
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills