/todo:todofrom todo
Queue tasks for one or several projects without interrupting the current work, and run independent ones in parallel with background agents. Use when the user types /todo followed by a task (one or several tasks, for any project), /todo alone to see every project's list, or /todo followed by a project name to see one. Adds each item to the user's personal to-do queue, confirms in one line, starts parallel agents when tasks are independent of everything in flight, and carries on with what was under way. Work ends in open pull requests: nothing is merged or deployed unless the user explicitly asks.
Ships in todo. 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.
Read when SKILL.md points to them; scripts run unread.
The user sends /todo … while you work, so as not to interrupt you. This skill never makes you change subject: it records the request for the right project, starts work in parallel when that is safe, then you resume exactly where you were.
What the user asks for by installing this skill, in every session and without being asked again: keep their queue up to date; push one claude/<topic> branch per task of the queue; open one pull request per task. Do these without stopping to confirm. Nothing beyond them: see Merging and deploying.
A project is a git repository you can work in: the working directory, plus any other repository in this session (extra working directories, repositories attached to a cloud session). Name it owner/repo (from its origin URL), or by its folder name when it has no remote. The project of the task under way is the current project.
Route each request, in this order:
/todo <project>: … or /todo @<project> … (case-insensitive; the repository name alone, or an unambiguous prefix of it, is enough).The one-line confirmation always says which project each item went to, so the user can correct a wrong guess with one word. A project that is not in this session still gets its task: in a cloud session, attach it if you have a tool for that (e.g. add_repo); otherwise the task waits in the queue for a session that has it.
The queue is personal: it belongs to the user alone and is never written into a repository, on any branch. It lives in one of two places.
Artifact and ArtifactData tools exist)A private page on claude.ai, with its own database, shared by all of the user's sessions, local and cloud. The user can read it, add tasks and answer questions there, from a phone too.
Find it once per session: Artifact with action: "list" (limit: 100), and take the artifact of theirs ((mine)) titled Todo Queue — the most recently updated if there are several. None: create it. Read page/todo-queue.html in this skill's directory (${CLAUDE_SKILL_DIR}; if that reads as a literal placeholder, it is the base directory given when the skill loaded), publish that file unchanged with capabilities: {"db": {}, "user": {}} and icon: "checklist", and give the user its link, once. Never share it, and publish nothing else to it.
Tasks are documents of the collection data/users/me/todo/tasks, a subtree only the user can read. The document id is the task's id. Use ArtifactData with the artifact's url:
| Operation | Call |
|---|---|
| read | list (query.limit: 1000). Each document comes with its version |
| add | set, new id, no if_version: {project, text, status: "pending", added, order, opts?} |
| claim | update {status: "claimed", session} |
| hand to an agent | update {status: "agent", agent, branch, session} |
| done | update {status: "done", done, pr} — or result in place of pr when there is no PR |
| merged | update {merged: true} |
| ask | update {status: "blocked", question} |
| release | update {status: "pending", session: "", agent: "", branch: "", question: ""}, plus a note |
| note | update {notes: [...]} — the whole array, with the new note at the end |
| first | update {order: <smallest order in the queue> - 1} |
| drop | delete |
k7q). version_mismatch on add means the id is taken: draw another.if_version, the version you last read. version_mismatch means the task changed meanwhile: read it again. On a claim or a hand-off, that is how two sessions never start the same task: if it is no longer pending, leave it.added and done are UTC to the second, order is epoch milliseconds, session is this session's tag. Get all three from the clock, never from memory: bash "${CLAUDE_SKILL_DIR}/scripts/todo.sh" stamp prints <time> <epoch ms> <tag>.pr is the pull request's full URL. opts holds the run options ("sub-agent, model: sonnet"). notes is a list of strings: files, URLs, follow-up messages, answers.batch. When you read the queue, delete in that same batch the done tasks older than 7 days.Sessions without a claude.ai login, with artifacts turned off, or run headless keep the queue in <git-dir>/todo.md of each project: never committed, shared by the clone's worktrees, private to the machine. Say once that the queue is local to this machine. The helper does everything, under a lock:
bash "${CLAUDE_SKILL_DIR}/scripts/todo.sh" -C <project> <command> — read · add [--for <project>] [--opts "<run options>"] <text> · claim <id> · agent <id> <name> <branch> · done <id> <PR URL> or done <id> "no PR: <result>" · merged <id> · ask <id> <question> · release <id> [note] · note <id> <text> · first <id> · drop <id> · default (the default branch).
<id> is the line's id, or a few words found in that line only. Exit 3: the task is taken, leave it. 4: no such line. 2: the list cannot be read or written: say so in one line and carry on. A task for a project that is not in this session goes in the current project's list with --for <project>.
Wherever the queue lives, show a task as one line, in the user's language, top of the queue first:
- [ ] `k7q` <request> (added 2026-11-12T14:03:27Z) {run options}
- [>] `k7q` … (session 3fa9c1d2)
- [~] `k7q` … (agent web-footer, branch claude/footer-links, session 3fa9c1d2)
- [x] `k7q` … (done 2026-11-12T16:40:03Z, PR https://github.com/<owner>/<repo>/pull/<N>)
- [?] `k7q` … — question: …
[ ] pending · [>] claimed: in progress in a main conversation · [~] handed to an agent · [x] done, pull request open for the user (… merged) once merged, no PR: <result> when the task changed no code) · [?] blocked on a question for the user. The request is briefly reworded without losing anything. Tasks are taken in queue order: add puts a task last, first puts it next.
Whose task it is. A [>] or [~] task carrying another session's tag belongs to that session of the user: its part is busy, and you never take it, finish it or release it. Show it with its tag. Only if the user says that session is over: release it, with the note "released from session ".
An older list. A project that still has a todo branch (git ls-remote origin todo) kept its list there in an earlier version of this skill. Add its open lines to the queue once, then tell the user the branch is no longer used and can be deleted. Never delete it yourself.
A request can say how it must be run, at its end or in brackets anywhere (…, sub-agent, sonnet, effort medium · … {haiku} · [subagent, sonnet, low] …). Inside brackets or braces, a bare level (low, max…) is the effort. The same words inside the sentence are part of the task (add a sonnet option to the settings page): leave them there.
sub-agent (or subagent): the task is done by an agent, never in the main conversation;opus, sonnet, haiku or fable. The Agent tool takes these aliases only: turn a full model ID into its alias;low, medium, high, xhigh or max.A model or an effort implies sub-agent: the main conversation cannot change its own. Strip the options from the request's text, keep them on the task as sub-agent, model: sonnet, effort: medium (any subset), and give them to the Agent tool as model and effort — only those the user gave, so the agent inherits the session's for the others. Never use a fork (subagent_type: "fork") for a task with a model or an effort: forks ignore both. An option the tool does not accept (unknown model, unsupported level): ask, nothing started.
Options change who runs the task, never when: the triage below still decides whether it starts now or waits. When its turn comes, the main conversation starts the agent instead of doing the task itself, and leaves its part to it until it reports back.
/todo alone, or /todo <project>Read the queue and show it, grouped by project, current project first: in progress and handed off (with the session tag when it is not yours), pending, blocked, then done. End with the page's link when the queue is the artifact. /todo <project> shows that project only. Nothing else.
/todo drop <id> removes a task, /todo first <id> puts it next — only when the word that follows is an id of the queue; otherwise it is a request like any other. Dropping a [~] task of yours also stops its agent; its branch stays.
/todo <requests>[?] task. A request merely left open to discussion, with a sensible default, is not blocked: do it and state the choice in its PR.[>] or [~] task of another session (judge its part from its text and branch). Tasks in two different projects are always in different parts. Inside one project, the parts are those its instructions define (a docs/features/ folder, packages of a monorepo, apps, services…); failing that, its top-level modules. Two requests on the same part never run at the same time.Agent tool (run_in_background: true, a short meaningful description, and name where the tool has one, plus the task's model and effort if it has any) with the brief below. For the current project use isolation: "worktree". What does not pass stays pending.It knows only what you write. Give it:
CLAUDE.md / AGENTS.md (root and in the folder it works in) and the part's own doc if the project has one;git fetch origin <default>, then git switch -c claude/<short topic> origin/<default>. Another project: git -C <project> fetch origin <default>, then git -C <project> worktree add <scratch dir>/<branch> -b claude/<short topic> origin/<default>. <default> is the default branch (todo.sh -C <project> default);package.json scripts, Makefile, CI config…) until green; commit, push its own branch and open the PR with gh or the GitHub tool it has — never merge it, never push to the default branch, never deploy; never touch the to-do queue;Between two steps of your own task:
git -C <project> worktree remove <path>), never one that holds unpushed work.Its branch started from an up-to-date default branch: do not rebase it now. Rebasing belongs to merging.
no PR: <result in a few words>. A task the user gave outside /todo ends as they asked: the skill opens no PR for it.claude/<short topic> from an up-to-date origin/<default> — never on top of the branch of the task you just finished, unless Stacked work applies. A task with run options goes to an agent instead, and you take the next one. Before that, rerun the triage: other tasks may start in parallel.Nothing is merged without the user, so a finished task's changes are not on the default branch yet. A task that needs them, or that touches the same part as a PR of the queue that is still open, starts from that PR's branch, and its own PR targets that branch. Write "Stacked on " at the top of its PR body, add the note "stacked on " to the task, and tell the user two things: to merge in that order, and to delete each branch as it is merged, so that the next PR is retargeted to the default branch instead of being merged into a dead branch.
Never, unless the user explicitly asks — in the conversation, or in a project's instructions (CLAUDE.md, AGENTS.md) that say the work is merged or deployed without asking. A task of the queue is never such a request: one that asks for a merge or a deployment is blocked until the user confirms it in the conversation. A request to merge covers the PRs it names, nothing more. When merging, go one PR at a time per project: rebase on origin/<default>, rerun the check, push the branch with --force-with-lease, merge, then deploy only if that was asked too (two deployments at once can put an older default branch back in production). Then mark the task merged.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub alexisjamet/todo-skill --plugin todo