Skip to content
Back to skills

Prompt Iteration

ASecurity

Improve a prompt through controlled changes measured against a fixed set of cases, rather than by rewriting until an example looks good. Use when a prompt underperforms and each edit is a guess.

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentsgotesting

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add Amey-Thakur/AI-SKILLS --skill prompt-iteration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prompt Iteration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prompt Iteration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/amey-thakur-prompt-iteration/badge)](https://www.skillsdirectory.com/skills/amey-thakur-prompt-iteration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prompt-iteration
description: Improve a prompt through controlled changes measured against a fixed set of cases, rather than by rewriting until an example looks good. Use when a prompt underperforms and each edit is a guess.
---

# Prompt iteration

Prompt work degenerates into superstition without a test set: someone
changes wording, the example improves, and a regression appears
elsewhere unnoticed. Iteration means changing one thing and measuring
against fixed cases.

## Method

1. **Assemble the case set before editing.** Ten to fifty real inputs
   with expected outputs or acceptance criteria, including the failures
   that motivated the work.
2. **Change one thing per iteration.** Structure, examples, or
   constraints, so the effect is attributable (see prompt-testing).
3. **Re-run the whole set every time.** The regression on case seven is
   the reason for the set, and spot-checking misses it.
4. **Keep the failures that motivated the change.** They are the
   highest-value cases and should never leave the set.
5. **Prefer removing to adding.** Prompts accumulate instructions that
   no longer help, and deletion often improves adherence to what remains
   (see prompt-constraints).
6. **Stop at good enough.** Beyond a point, prompt changes trade one
   failure mode for another rather than improving.
7. **Record what was tried and why.** Prompt archaeology is otherwise
   impossible, and the same failed idea gets retried (see
   prompt-versioning).

## Boundaries

Iteration optimises against the case set, which risks overfitting to it,
so a held-out set matters. Model updates can invalidate tuning, making
prompts a maintenance commitment. Some failures are model limitations
that no wording fixes.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…