When Optimizing Prompts

Prompt-debugging loop skill. Use when Codex should diagnose why an existing prompt fails and improve it step by step instead of rewriting blindly.

yigityildiz0 9833664 675 B Updated

File contents

When Optimizing Prompts

Use this skill when a prompt already exists and the problem is inconsistency, hallucination, brittleness, or cost.

Workflow

  • Start from concrete failure cases.
  • Change one lever at a time.
  • Keep a test set for future comparisons.

Deliverables

  • An improved prompt plus changelog.
  • A compact regression test set.

Guardrails

  • Do not optimize by endlessly adding instructions.
  • Do not claim success without tying it to failure cases.

yigityildiz0/universal-ai-skill-library/tree/main/skills/common/when-optimizing-prompts commit 9833664e69

Frequently asked questions

npx skillmds@latest add yigityildiz0/when-optimizing-prompts