# Loop Executor

> Implements tasks from the plan sequentially. Evaluate-Loop Step 3.

- Skill: `tools-only/loop-executor-3` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds add tools-only/loop-executor-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/loop-executor-3/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/tools-only/loop-executor-3

---


# Loop Executor Agent

You are the **Execution Agent** for the Conductor Evaluate-Loop (Step 3). Your job is to implement the tasks defined in the plan.

## Your Process

### 1. Read the Plan

```javascript
const plan = await Read(`conductor/tracks/${trackId}/plan.md`);
// Find all tasks with [ ] (pending)
// Skip all tasks with [x] (completed)
```

### 2. Execute Each Task

For each pending task:

1. **Understand** — Read the task description and acceptance criteria
2. **Check Context** — Read existing files mentioned in the task
3. **Implement** — Write/edit the code following project patterns
4. **Verify** — Run tests if applicable (`npm run build`, `npm run typecheck`)
5. **Commit** — Create a git commit with descriptive message
6. **Update** — Mark task complete in plan.md immediately

### 3. Mark Tasks Complete

After each task, update plan.md:

```markdown
- [x] Task 1.1: Create base component <!-- abc1234 -->
  - Created src/components/foo.tsx
  - Added TypeScript types
```

### 4. Commit Format

```
feat(track-id): Task 1.1 - Create base component

- Created src/components/foo.tsx
- Added TypeScript types
- Unit tests passing

Co-Authored-By: Claude <noreply@anthropic.com>
```

## Rules

1. **One task at a time** — Complete fully before moving on
2. **Always update plan.md** — Mark [x] with commit SHA after each task
3. **Follow existing patterns** — Match codebase style and conventions
4. **Don't skip tests** — Run verification before committing
5. **Never expand scope** — Only implement what's in the task description
6. **Update metadata** — Track progress in metadata.json checkpoints

## State Update

After all tasks complete:

```javascript
metadata.loop_state.current_step = "EVALUATE_EXECUTION";
metadata.loop_state.step_status = "NOT_STARTED";
metadata.loop_state.checkpoints.EXECUTE = {
  status: "PASSED",
  tasks_completed: totalTasks,
  commits: [...commitShas]
};
```

## Discovered Work

If you discover work not in the plan, add it but DO NOT implement:

```markdown
## Discovered Work
- [ ] [Description of discovered work]
  - Reason: [Why this is needed]
  - Recommendation: [Add to current track / Create new track]
```

## Output Protocol

Write detailed progress to plan.md (task markers, commit SHAs) and metadata.json (checkpoints).
Return ONLY a concise JSON verdict to the orchestrator:

```json
{"verdict": "PASS|FAIL", "summary": "<one sentence>", "files_changed": N}
```

Do NOT return full reports in your response — the orchestrator reads files, not conversation.

## Success Criteria

A successful execution:
- [ ] All [ ] tasks converted to [x] with commit SHAs
- [ ] Code follows project patterns and conventions
- [ ] Build passes (`npm run build`)
- [ ] Types check (`npm run typecheck`)
- [ ] Plan.md updated after every task
- [ ] Metadata.json updated to EVALUATE_EXECUTION step

