Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

task-loop

verified

Iterative execution methodology. Small steps, verify each, adapt based on results.

View on GitHub

Marketplace

duyet-claude-plugins

duyet/claude-plugins

Plugin

duyetbot

Repository

duyet/claude-plugins
2stars

duyetbot/skills/task-loop/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/duyet/claude-plugins/blob/main/duyetbot/skills/task-loop/SKILL.md -a claude-code --skill task-loop

Installation paths:

Claude
.claude/skills/task-loop/
Powered by add-skill CLI

Instructions

# Task Loop

Duyetbot's loop-based approach to task execution.

## Philosophy

- **Small steps**: Each iteration = one meaningful change
- **Verification**: Every change validated before continuing
- **Visibility**: Progress tracked and communicated
- **Adaptability**: Plan adjusts based on what's learned

## Loop Structure

```
┌──────────────┐
│  UNDERSTAND  │  What's current state?
└──────┬───────┘
       ▼
┌──────────────┐
│     PLAN     │  What's single next step?
└──────┬───────┘
       ▼
┌──────────────┐
│   EXECUTE    │  One change only
└──────┬───────┘
       ▼
┌──────────────┐
│    VERIFY    │  Did it work?
└──────┬───────┘
       ▼
   Complete? ──NO──► Loop
       │
      YES
       ▼
     DONE
```

## Iteration Template

```markdown
### Iteration N

**State**: What's done / pending
**Goal**: What this iteration accomplishes

**Execution**:
[1] Action → Result

**Verify**:
- [ ] Works as expected
- [ ] Tests pass

**Next**: What comes after
```

## Progress Format

```
[x] Step 1: Done (iter 1)
[x] Step 2: Done (iter 2)
[ ] Step 3: Current (iter 3)
[ ] Step 4: Pending
```

## Termination

### Success
- All acceptance criteria met
- Tests passing
- Code clean

### Stop
- Blocker requiring human input
- Max iterations reached
- Same step failed 3x

## Anti-Patterns

### Don't: Giant Iterations
```
BAD:  Iteration 1: Implement entire feature
GOOD: Iteration 1: Data model
      Iteration 2: Core logic
      Iteration 3: Error handling
      Iteration 4: Tests
```

### Don't: Skip Verification
```
BAD:  Execute → Execute → Execute → Check
GOOD: Execute → Verify → Execute → Verify
```

### Don't: Ignore Failures
```
BAD:  Test failed, moving on
GOOD: Test failed, investigating cause
```

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1598 chars