Agent skill · AI & Agents

prompt-iteration

Use when iteratively improving agent prompts through automated LLM-as-Judge evaluation. Runs eval→fix→commit loop with circuit breakers.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill prompt-iteration --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/ai-llm/prompt-iteration/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Prompt Iteration Skill Iteratively improve teaching agent prompts using automated evaluation with local Qwen 2.5-7B as judge. ## When to Use - After identifying functional issues with the agent - When prompt changes need validation before deployment - For systematic prompt engineering with measurable improvement ## Pre-flight Checks Before starting, verify: 1. **vLLM is running**: ```bash curl http://localhost:8004/v1/models ``` 2. **Golden dataset exists**: ```bash ls tests/golden/ ``` 3. **Create iteration branch**: ```bash git checkout -b eval/prompt-iteration-$(date +%Y%m%d-%H%M) ``` ## Guardrails (USER-DEFINED) | Guardrail | Value | |-----------|-------| | Max iterations | 5 | | Success gate | 80% pass rate | | Circuit breaker 1 | Score drops >20% on any dimension | | Circuit breaker 2 | 3 consecutive iterations with no improvement | | Rollback mechanism | Git commit after each iteration | ## Iteration Loop ### Step 1: Baseline Evaluation Run evaluation on all dimensions: ```bash python -m tests.evaluation.cli --dimension all --output baseline.json ``` Record the baseline pass rate for each dimension in a TodoWrite checklist. ### Step 2: Identify Worst Dimension From baselin

What's inside
Steps it walks through
  1. When to Use
  2. Pre-flight Checks
  3. Guardrails (USER-DEFINED)
  4. Iteration Loop
  5. Step 1: Baseline Evaluation
  6. Step 2: Identify Worst Dimension
  7. Step 3: Analyze Failures
  8. Step 4: Edit Prompt
  9. Step 5: Re-evaluate
  10. Step 6: Check Circuit Breakers
  11. Step 7: Commit if Improved
  12. Step 8: Repeat or Stop
  13. Output Format
  14. Quick Reference
Ships with 1 file
  • metadata.json
Commands it runs
curl http://localhost:8004/v1/models
ls tests/golden/
git checkout -b eval/prompt-iteration-$(date +%Y%m%d-%H%M)
python -m tests.evaluation.cli --dimension all --output baseline.json
python -m tests.evaluation.cli --dimension <failing_dimension> --verbose
python -m tests.evaluation.cli --dimension <dimension> --output iteration-N.json
git add src/backend/app/prompts/
git commit -m "prompt: improve <dimension> pass rate N% -> M%
Tested with: python -m tests.evaluation.cli --dimension <dimension>
Full evaluation
More from claude-skill-registry
All skills →
About this skill
What does the prompt-iteration skill do?

Use when iteratively improving agent prompts through automated LLM-as-Judge evaluation. Runs eval→fix→commit loop with circuit breakers.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill prompt-iteration --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going