Closed Loop Prompt

Self-correcting prompts with embedded verification.

cleanexpo 4311520 444 B Updated

File contents

Closed-Loop Prompting

Embed verification INTO the prompt:

  1. Build X
  2. Run Y to check
  3. If Y fails, fix and retry
  4. Max 3 attempts

Patterns

  • Test-Fix Loop: implement -> test -> fix -> retest
  • Build-Verify-Iterate: build -> verify output -> fix discrepancy
  • Multi-Step Cascade: phase 1 verify -> phase 2 verify -> integration verify

cleanexpo/pi-dev-ops/tree/main/skills/closed-loop-prompt commit 4311520239

Frequently asked questions

npx skillmds@latest add cleanexpo/closed-loop-prompt