- Agentic AI
- Agent
- Advanced
- Claude
- ChatGPT
- Published
Agent Run Pre-Mortem and Self-Correction Loop Designer
Designs verification checks, error handling, and a self-correction loop for an agent task before it runs, based on likely failure modes.
You get: Failure table, loop specification as numbered steps with exit conditions and agent self-check instruction block
The prompt
mkdir -p .agents/skills/agent-run-pre-mortem-and-self-correction-loop-designer && curl -sL "https://prompts-gpt.com/prompts/agent-run-pre-mortem-and-self-correction-loop-designer/raw" -o .agents/skills/agent-run-pre-mortem-and-self-correction-loop-designer/SKILL.mdExample output
Tips and common edits
Run this on the task description you plan to give the agent. Use the failure table as the basis for test cases. Review the self-check block against your real tool outputs before deploying.
Questions about this prompt
More like this
More in Agentic AI20-Case Agent Eval Set with Pass/Fail Rubric for Normal, Edge and Unsafe Requests
Builds 20 test cases for your agent's task, with expected behavior, failure signals and a pass/fail rubric covering normal, edge and unsafe requests.
Agent Tool Names, Descriptions and JSON Schemas from API Docs
Turns pasted API docs or a function list into agent-ready tool names, descriptions, JSON input schemas and when-to-use and when-not-to-use notes.
Agent Workflow Decomposition with Autonomy Levels and Stop Rules
Turns a manual process into a step-by-step agent plan with tools, approval gates, retry limits, and a build/pilot/skip recommendation.
Checkable Guardrail Rules for a Coding Agent: Blocked Commands, Approvals, Secrets and Hooks
Produces a set of testable guardrail rules for your coding agent, covering blocked commands, approval gates, secret handling and hook checks.
Research Agent Brief: Source Discovery, Evidence Review, and Citation Table
Directs an AI agent to plan source discovery, grade evidence, build a citation table, and support a decision without claiming live browsing occurred.
Tool Permission Matrix and Function Spec for a Tool-Using Agent
Produces a least-privilege tool inventory, function definitions, and approval rules for an agent that calls APIs or internal systems.
Agent Pipeline Failure Mode Audit with Retry, Fallback, and Human Escalation Rules
Audits an existing multi-agent pipeline for failure modes and produces retry limits, fallback paths, escalation triggers, and a test plan. Supports the decision on what to harden before wider rollout.
Coding Agent Task Brief with Guardrails, Test Plan, and Rollback Steps
Creates a scoped brief for an AI coding agent that limits file changes, defines tests, and includes a rollback plan and review checklist.
Design an AI Agent With Tools, Guardrails and Eval Cases Before You Build It
Turns an agent idea into a build-ready design: the job, the tools with their inputs and permissions, guardrails, failure handling and a set of evaluation cases to test it.
Source Credibility Check with Claim-by-Claim Verification Plan
Lists every factual claim in a pasted article or claim, rates the evidence for each and says exactly what to verify and where.
Weighted Decision Matrix with Pre-Mortem on the Winner
Guides you through criteria and weights, scores each option in a table, then runs a pre-mortem on the top choice.
Characterization Tests Before a Refactor
Writes tests that lock in a module's current behavior, including edge cases and quirks, so you can refactor safely.