Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Agent Loop Design?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-agent-loop-design)
---
name: agent-loop-design
description: "Design autonomous agent loops: planning, tool calls, memory, stop conditions, budgets and human checkpoints."
tags: [ai-agents]
---
# Agent Loop Design
## When to use
- Building agents with the Claude Agent SDK or similar
## Procedure
1. Define the goal and measurable done condition
2. Give a minimal, well-described tool set
3. Persist state in files or a DB
4. Set budgets (steps, tokens, time)
5. Add human approval for irreversible actions
6. Log every step
## Checklist
- [ ] Stop conditions explicit
- [ ] Irreversible actions gated
## Anti-patterns
- Unbounded loops
- Agents with production write access and no approvals