Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Agent Workflow Design?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-agent-workflow-design)
---
description: Design reliable agent workflows: task decomposition, tools, context, checkpoints, verification and human approval
profile: standard
tags: agents, ai, planning, reliability
---
# Agent workflow design
Use when building a multi-step agent workflow (coding, research, ops) or when an agent keeps going off the rails.
## Decompose
1. Write the outcome and how you will check it before the steps. A workflow without a check cannot be trusted or improved.
2. Split work into steps that each end in an observable artefact: a plan file, a diff, a test run, a report.
3. Prefer a single agent with good tools until a measured failure shows you need more. Add subagents for isolation (large searches, reviews) rather than for show.
## Context
- Give each step only what it needs: the goal, constraints, relevant files and the last step's result. Summarize; do not forward whole transcripts.
- Put durable facts in project memory or skills, not in every prompt.
- Compact at milestones (after research, after a passing implementation), not mid-edit.
## Control
- Bound everything: iterations, time, tokens, files touched.
- Checkpoints before risky actions (git commit or a stash), so a bad step can be rolled back.
- Human approval for irreversible actions: deploys, deletes, payments, messages to people.
- Decide success by running checks yourself (`anvil loop`), never by the agent's summary.
## Failure handling
- Detect stalls (no new diff, same error twice) and stop rather than burn budget.
- Log each step with inputs, outputs and duration so failures can be replayed.
- Turn repeated failures into instincts or skills only after a person reviews them.
## Verify
Run the workflow on three real tasks, including one that should fail. Record pass/fail, cost and time, and compare against the previous version before shipping changes.