From llm-observability
Systematically optimizes prompts using an eval set and search methods (instruction tuning, few-shot selection, decomposition) instead of manual tweaking.
How this skill is triggered — by the user, by Claude, or both
Slash command
/llm-observability:optimize-promptsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Hand-tuning a prompt and eyeballing one output tops out fast and quietly overfits to the last example you looked at. Systematic prompt optimization treats the prompt as something you search over, scored by an eval set.
Hand-tuning a prompt and eyeballing one output tops out fast and quietly overfits to the last example you looked at. Systematic prompt optimization treats the prompt as something you search over, scored by an eval set.
You cannot optimize what you cannot measure. Build an eval set first (build-eval-dataset) and wire up scoring (add-llm-evals). The optimization loop is: propose a prompt variant, score it on the eval set, keep the winner. Everything below is a smarter way to propose variants.
Once you have an eval metric, use an optimizer instead of manual trial-and-error:
Automatic instruction optimization: APE, Zhou et al. 2022 (arXiv:2211.01910). Programmatic prompt/pipeline optimization: DSPy, Khattab et al. (arXiv:2310.03714); MIPRO, Opsahl-Ong et al. (arXiv:2406.11695). All optimization is scored against an eval set (see build-eval-dataset).
npx claudepluginhub contextjet-ai/awesome-llm-observability --plugin llm-observabilityOptimizes prompts for LLMs using constitutional AI, chain-of-thought reasoning, and model-specific optimization. Improves accuracy and reduces costs by transforming basic instructions into production-ready prompts.
Optimizes prompts for AI performance via chain-of-thought, few-shot examples, token reduction, RAG integration, and model-specific tuning like GPT-4 or Claude. Activates on improve/refine/engineering requests.
Crafts production-ready LLM prompts using advanced techniques including constitutional AI, chain-of-thought reasoning, and model-specific optimization. Reduces costs and improves accuracy.