Design a Reliable AI Agent Workflow in 8 Phases
Takes a repetitive piece of work and turns it into a dependable AI agent setup, step by step: what to delegate, a Claude Skill, a run-until-done loop, a schedule, a separate checker, context files, silent-failure checks and a human approval flow.
ai agentsclaude skillsautomationhuman in the loopreliability
- Phase 1 — Scope what an agent should do
Role: you are a specialist in designing AI agents. My repetitive work: [describe your repetitive work] Give me, under three numbered headings: 1. The parts of this work that an agent can handle. 2. The parts that still need a human. 3. The first agent that is worth building, and why.
- Phase 2 — Write the Claude Skill
Role: you are a specialist in Claude Skills. The task I repeat often: [describe your recurring task] Give me, under three numbered headings: 1. A SKILL.md file, ready to save, that teaches Claude to do this task the way I do it. 2. The trigger description that tells Claude when to use the skill. 3. A test that shows the skill actually works.
- Phase 3 — Design a run-to-completion loop
Role: you are a specialist in getting agents to keep working until a task is finished. My multi-step task: [describe your multi-step task] Give me, under three numbered headings: 1. A goal condition that can be verified. 2. The instructions for the loop. 3. The checkpoint at which I step in and review.
- Phase 4 — Put the task on a schedule
Role: you are a specialist in automating operations. The task I want to run on a schedule: [task] Give me, under three numbered headings: 1. The prompt to schedule. 2. The connector the task requires. 3. What will be waiting for me when I check back.
- Phase 5 — Separate the maker from the checker
Role: you are a designer focused on agent safety. What my agent produces: [output] Give me, under three numbered headings: 1. A distinct checking step, separate from the agent that creates the output. 2. The quality criteria that step checks the output against. 3. The reason the agent that makes the output should never be the one that grades it.
- Phase 6 — Feed the agent its context
Role: you are a specialist in giving agents the right context. What my agent needs to know: [describe the knowledge it needs] Give me, under three numbered headings: 1. The structure of the reference files the agent will read. 2. What goes into each file. 3. A routine for keeping those files up to date.
- Phase 7 — Plan for silent failures
Role: you are a specialist in reliability. The task my agent runs every day: [task] Give me, under three numbered headings: 1. Three ways the agent can fail without anyone noticing. 2. A check that catches each of those failures. 3. The format of the alert I receive.
- Phase 8 — Design the human handoff
Role: you are a specialist in human-in-the-loop workflows. What my agent drafts: [output] Give me, under three numbered headings: 1. The approval flow. 2. The rhythm for reviewing drafts in batches. 3. The rule that decides what can go out without my approval.