task-loop
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
### 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
More from duyet/claude-plugins
react-nextjs-patterns
React and Next.js implementation patterns for performance and maintainability. Use when building frontend components, pages, and applications with React ecosystem.
131backend-api-patterns
Backend and API implementation patterns for scalability, security, and maintainability. Use when building APIs, services, and backend infrastructure.
40quality-gates
Systematic quality verification procedures for code review and delivery. Use when validating completed work, conducting code reviews, or ensuring production readiness.
36gemini-prompting
Prompt engineering guidance for Gemini (Google) model. Use when crafting prompts for Gemini to leverage system instructions, multimodal capabilities, ultra-long context, and strong reasoning features.
26frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
21orchestration
Orchestrate complex work through parallel agent coordination. Decompose requests into task graphs, spawn background workers, and synthesize results elegantly. Use for multi-component features, large investigations, or any work benefiting from parallelization.
19