AgentSkillsCN

arc-executing-tasks

当您执行预先准备好的任务列表、批量实施任务,或当任务已被拆解成更小的单元时,可使用此功能。

SKILL.md
--- frontmatter
name: arc-executing-tasks
description: Use when executing a prepared task list, when running batch implementation, or when tasks are already broken down

Executing Tasks

Overview

Human-in-the-loop execution with checkpoints. For when you want control over each batch.

Announce at start: "I'm using the arc-executing-tasks skill to implement this task list."

vs arc-agent-driven

Aspectexecute-tasksagent-driven
Executormain sessionfresh subagent
Reviewhuman checkpointsautomated two-stage
Controlhighlow
Best forneeds human judgmentautomated execution

The Process

Step 1: Load and Review Tasks

  1. Read task file from docs/tasks/<name>-tasks.md
  2. Review critically for gaps or ambiguity
  3. If concerns: raise them with user before starting
  4. If no concerns: confirm the plan is approved, then proceed

Step 2: Choose Execution Context

This skill is designed for parallel session execution (separate from planning). If already in a planning/design session, confirm handoff before starting.

Step 3: Execute Batch

Default: 3 tasks per batch

For each task:

  1. Mark as in_progress
  2. Follow TDD steps exactly
  3. Run verifications
  4. Mark as completed

Step 3: Checkpoint Report (Required)

code
─────────────────────────────────────────────────
Batch 1/3 complete (tasks 1-3)

Implemented:
- Task 1: [description] ✓
- Task 2: [description] ✓
- Task 3: [description] ✓

Verification:
- Tests: 12/12 passing
- Build: Success

Ready for feedback. Continue to next batch? (y/n)
─────────────────────────────────────────────────

Step 4: Continue or Adjust

Based on feedback:

  • Apply changes if needed
  • Execute next batch
  • Repeat until complete

Step 5: Finish

After all tasks: use arc-finishing (or arc-finishing-epic for epic worktrees)

Core Rules

  1. Execute in order - Follow task dependencies
  2. Verify each - Run test command, confirm expected output
  3. Commit atomic - One commit per logical unit
  4. Stop on failure - Don't continue if test fails
  5. Don't break working code - Changes must not break existing functionality

Execution Flow

dot
digraph executing {
    "Get next task" -> "Write code to file";
    "Write code to file" -> "Run test command";
    "Run test command" -> "Matches expected?";
    "Matches expected?" -> "Mark complete" [label="yes"];
    "Matches expected?" -> "Debug and retry" [label="no"];
    "Mark complete" -> "More tasks?";
    "More tasks?" -> "Get next task" [label="yes"];
    "More tasks?" -> "Commit all" [label="no"];
}

Per-Task Execution

code
Task 3/8: Write login function
─────────────────────────────
File: src/auth/login.py
Action: create

Writing code...
Running: pytest tests/auth/test_login.py -v
Expected: PASSED
Actual: PASSED ✓

[x] Task 3 complete

Commit Strategy

ScopeMessage
Feature completefeat(auth): implement login flow
Single taskfeat(auth): add password validation
Small step (WIP)wip: add basic validation

Commit Frequently

Principle: Commit at small steps

WhyBenefit
Track changesKnow which change caused issues
Easy rollbackReturn to known working state
Reduce riskAvoid changing too much at once

Don't Break Working Code

Core principle: After changes, previously working functionality must still work.

WhenAction
Before changeDescribe impact scope
After changeList items to verify
If brokenRollback immediately, rethink approach

Rationalizations

ExcuseReality
"Finish all changes then test together"Small steps easier to debug
"Shouldn't affect other code"Uncertain = commit first
"Rollback is too much trouble"No commit = more trouble

Completion Format

✅ Execution complete

  • Tasks: 8/8 passed
  • Files created: 4
  • Files modified: 2
  • Commit: abc123

Blocked Format

⚠️ Execution blocked

  • Task: 5/8 (add session storage)
  • Error: ImportError: redis not installed
  • Action: Install dependency, then resume

Integration

  • Required: arc-using-worktrees (set up isolated workspace before starting)
  • Alternative: arc-agent-driven (automated mode)
  • After: arc-finishing (or arc-finishing-epic for epic worktrees)

Red Flags - STOP

  • "Start implementation on main/master branch without explicit user consent"
  • "Skip failing test and continue"
  • "Test failed but code looks right"
  • "Commit now, fix test later"
  • "Broke existing code but keep going"
  • "Too many changes to track, just commit all"
  • "Unsure of impact but don't commit first"

Failing test = stop and fix before continuing. Broke working code = rollback and rethink.