Pick up the next task, execute it in its own git worktree, verify it, mark it complete, commit, and merge it back into main. Use when the user wants to work through tasks one at a time, or says 'do the next task', 'work on the next item', or invokes /work. Optionally accepts a task ID and/or custom instructions.
Ships in execution. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Execute one task end-to-end: pick it up, do the work, verify, mark complete, and commit.
Optionally accepts:
/work 042 or /work auth-refactor)./work something related to authentication or /work a pending high-priority CLI task.taskmd CLI command — e.g. /work taskmd search 'auth' --filter status=pending or /work taskmd next --scope cli --filter priority=high./work 042 use the new API client instead of fetch).If no task ID or query is provided, the next available task is selected automatically.
Find the task.
taskmd CLI command (starts with taskmd), run it with --format json appended (if not already present) and --limit 1 (if not already present) to get the top result. Extract the task ID from the output.taskmd command), translate it into an appropriate taskmd command:
taskmd search "<query>" --format json --limit 1 for keyword/topic queries.--filter flags for any constraints the user mentioned (e.g. status, priority, scope, tags, effort).taskmd next instead of taskmd search when the user's intent is about priority or "what's next" within a filtered set.taskmd next --limit 1 --format json to get the highest-priority ready task.Name the session after the task. Once the task is known, rename the session so it is recognizable in the session list. If a session-title tool is available (in the Claude desktop app: mcp__ccd_session_mgmt__set_session_title with session_id: "self"; load it with ToolSearch first if it is deferred), call it with a title of the form <id> · <summary> — the task id, then a 2–5 word summary of what the task changes, not its full title. Aim for under ~40 characters, e.g. 042 · Retry failed webhook deliveries or 01m266ww9 · Split auth middleware. If no such tool is available (e.g. the plain CLI, where /rename is user-only), skip this silently. If the rename is declined, carry on — it is never a reason to stop.
Enter a worktree for the task. Isolate the work in its own git worktree, so main stays clean and several tasks can run side by side.
Create one with EnterWorktree, naming it after the task id (e.g. EnterWorktree({ name: "01m266ww9" })). This puts the session in .claude/worktrees/<id> on branch task/<id>. Do the rest of the task there.
Create a worktree when either holds:
Skip the worktree, and work in the current tree, when:
EnterWorktree refuses to nest) — reuse it.Say which worktree you entered before starting the work.
Initialize the worktree. Only if you created one in step 2. A fresh worktree is a clean checkout: it has the source files but none of the untracked, gitignored state the project needs to build, run, or test. Set it up before doing any work, or the first test run will fail for reasons that have nothing to do with the task.
What to run is project-dependent — determine it, do not guess:
CLAUDE.md, README.md, or contributing guide for the documented setup command.pnpm-lock.yaml → pnpm install, package-lock.json → npm ci (or npm install), yarn.lock → yarn install, bun.lockb → bun install, uv.lock → uv sync, poetry.lock → poetry install, Cargo.lock → cargo fetch, go.sum → go mod download, Gemfile.lock → bundle install, composer.lock → composer install.Also copy over any gitignored files the project needs that git will not bring along — most commonly .env / .env.local. Copy them from the main worktree (find its path in git worktree list) rather than inventing values. Do not copy build output or dependency directories; regenerate those.
If the project needs a build or codegen step before tests run (e.g. pnpm build, cargo build, go generate, a Prisma/protobuf generate), run it too.
Say what you ran. If setup fails, stop and report it — do not start the task on a broken worktree.
Do the task. Invoke the /do-task skill with the task ID from step 1. If the user provided custom instructions, incorporate them into the work — they take priority over default approaches where applicable.
Verify the task. Once the work is done, invoke the /verify-task skill with the same task ID. If verification fails, fix the issues and re-verify until it passes.
Reconcile the backlog. A task rarely finishes exactly as written. Before completing it, ask whether any of this happened:
TODO, a skipped test, a temporary shim, a doc that is now stale.If none of it happened, skip this step. If any of it did, spawn the backlog-reconciler subagent (shipped in the planning plugin — if it is not installed, do the reconciliation inline and say so) with the task ID and your full list of loose ends — including the ones you suspect are not worth filing. Do not reconcile inline: the point of the subagent is that it comes to the backlog without the tunnel vision of having just written the code, so it finds the existing task that already covers a loose end instead of filing a near-duplicate.
Accept its answer. If it hands back fix now: items, do them in this working tree before step 7, then re-run verification — a fix after a green gate is an unverified fix. Report its arithmetic line and the ids it touched in your closing message.
Mark the task complete. Invoke the /complete-task skill with the task ID.
Commit your changes. Invoke the /commit skill to commit all changes with a conventional commit message. The reconciler's task edits land in the same commit as the work.
Merge back into main and clean up. Only if you created a worktree in step 2. Skip this entire step if the user asked you not to merge (e.g. "leave it on a branch", "I want to review it first", "open a PR instead") — in that case leave the worktree in place, tell the user its path and branch, and stop.
Otherwise, from inside the worktree:
git status --short). If it is not, stop and report — step 8 should have committed everything.main: git rebase main. Resolve conflicts by combining both sides' intent, favoring the task branch when the sides are genuinely incompatible; git add each resolved file and git rebase --continue. If a conflict cannot be resolved confidently, run git rebase --abort, leave the worktree in place, report the problematic files, and stop.main will point to. If it fails, do not merge: leave the worktree in place, report the failures, and stop.main from the main worktree (do not git checkout main — main is checked out elsewhere and the checkout will fail): find its path in git worktree list, then run git -C <main-path> merge --ff-only task/<id>. If the fast-forward fails, main moved during the rebase — report it and stop.ExitWorktree({ action: "remove" }) to return to the original directory and delete the now-merged worktree and branch. If it refuses because of leftover changes, do not pass discard_changes — report what it listed and let the user decide.git log --oneline -3 from main./work again.action: "keep" if you already created one and made changes in it.main only ever moves forward by fast-forward.worktree.baseRef setting says — fresh (the default) branches from origin/<default-branch>, head from the current local HEAD. If local main is ahead of the remote, the step 9 rebase onto main is what reconciles the two; if the repo has no remote, set worktree.baseRef to head.What SKILL.md sets; muted values are Claude Code's defaults
/execution:workfrom execution
npx claudepluginhub driangle/ai-powers --plugin execution3 skills in this plugin
/dispatchWork through a backlog in parallel by delegating each task to its own session (e.g. `/work <id>`), while staying the coordinator. The backlog can be taskmd files (any `taskmd list`/`next`/`search` command), Linear tickets, or Jira issues (JQL). The coordinator must pick only tasks that need no human input and are not blocked, never run two that touch the same area, cap how many run at once by the machine's load, keep a ledger of what landed, refill slots as sessions finish, and stop at an agreed exit condition. Use when the user asks to delegate, dispatch, fan out or parallelize pending tasks, Linear tickets or Jira issues across sessions, 'keep N tasks going', 'work through the backlog in the background', or invokes /dispatch./fix-feedbackAddress feedback about a bug or feature issue using a test-first workflow: reproduce with a failing test, then fix. Use when the user provides feedback, a bug report, or a user-reported issue and wants it verified and fixed.Other plugins' skills for the same job