Batch tasks

From shenxingy/Clade · View interactive version

Batch tasks is an AI agent skill from the GitHub repository shenxingy/Clade. Execute TODO.md steps via unattended Claude Code sessions

How to use this skill

Skill file

Batch Tasks Skill

Read steps from TODO.md, auto-plan implementation details, and run them sequentially (or in parallel) via claude -p. Each task runs in a fresh Claude Code session with pre-generated plans.

Key features

Usage

Execute TODO steps (primary usage)

/batch-tasks              # First uncompleted step from TODO.md
/batch-tasks step2        # Execute Step 2
/batch-tasks step2 step4  # Execute Steps 2 and 4

Run from quoted task descriptions

/batch-tasks "Fix sidebar padding" "Add loading skeleton to /projects"

Run / preview an existing task file

/batch-tasks --run                # Serial execution
/batch-tasks --parallel           # Parallel execution (git worktrees)
/batch-tasks --dry-run

How it works

  1. Parse TODO.md — Finds the target step(s), extracts unchecked - [ ] items
  2. Planning phase — For each item, searches the codebase (Glob/Grep), reads relevant files, and generates a detailed plan with exact file paths, line numbers, and implementation steps
  3. Scout scoring — Each task is scored on readiness (target files found, patterns clear, no blocking deps). Tasks scoring <50 are skipped.
  4. Model assignment — Each task gets assigned haiku, sonnet, or opus based on complexity
  5. Tasks are written to tasks.txt in delimited block format
  6. ~/.claude/scripts/run-tasks.sh (serial) or ~/.claude/scripts/run-tasks-parallel.sh (parallel) executes tasks
  7. Each task runs with a timeout; on failure, working tree is rolled back and the task is retried
  8. Logs go to logs/claude-tasks/ with timestamps (per attempt)
  9. After all tasks complete: success/failure summary, failures logged to PROGRESS.md + GitHub Issue

After batch-tasks completes

Run /commit to commit worker output (tasks run in-tree; changes may not be

committed yet). It does not push — publication needs --publish or an existing

delivery authority.

Run /review to verify behavior anchors still pass after autonomous changes.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.