/ccxp-skills:todo list | next | sweepfrom ccxp-skills
Use when the user explicitly asks to list open tasks, pick the next task, or reorder/clean up the backlog
Ships in ccxp-skills. 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.
Manage the dev/TODO task backlog.
<skills-root>= this skill's "Base directory" minus its last component; substitute the literal path (skill-conventions§9).
dev/TODO/queue.mdPriority is an explicit, ordered list, not a computed score. dev/TODO/queue.md
holds one line per task currently in dev/TODO/, top = highest priority:
# TODO Queue
Ordered priority queue. Top = highest priority. One line per task, kept in
sync with `dev/TODO/` by `/todo sweep` (adds missing, strikes closed/parked).
Reordered by `/stage` (append to the end if missing) and `/top` (move to the
front). It's a plain list — hand-editing the order is a fully valid way to
reprioritize.
- [T20260702-947261](T20260702-947261-registry-token-rotation-baked-images.md): Container images with a container registry entitlement token baked in don't survive token rotation
- [T20260427-298901](T20260427-298901-registry-egress-cost-reduction.md): Cut registry spend (Round 2: eliminate proxy passthrough)
Parse each line as - [T{id}](T{id}-{slug}.md): {title} — the ID is
authoritative; the link target is the actual dev/TODO/T{id}-*.md filename
(relative link, clickable on GitHub and in-editor); the title is a
human-readability comment written at insert time and never re-validated, so
a stale title (the task was renamed since) is harmless.
list/next read this file for order. sweep is the only workflow that
adds or removes lines wholesale (keeping membership in sync with
dev/TODO/); /stage and /top reposition individual lines.
Task files use YAML frontmatter for canonical metadata — same convention as SKILL.md files in this repo: a --- … --- block at the top of the file, parsed before the H1 title. Recognized by /todo, /ccxp IPM, /retro, and /drive. All fields are optional except status and estimation; absent fields are treated as "no constraint."
---
estimation: 3
status: Design
scheduled: 2026-05-19
deadline: 2026-05-22
blocks: [T20260514-299367, T20260515-447733]
source: Retro 2026-04-25
---
# T{ID}: {Title}
…body…
Field semantics:
estimation: a Fibonacci-style story point, one of 1, 2, 3, 5, 8 (duration buckets retired). Always 1 at file time; /incept is the only place it's revised upward. Required for /eta projections (points * hours_per_point, from dev/velocity.json).status: one of Open, Design, In Progress, Review, Parked, Done (Blocked by T{id} is deprecated: see depends_on). Required. Free text may follow the leading token (e.g. In Progress — SUPERVISED (needs VPN)); prose words such as SUPERVISED or BLOCKED gate nothing (d174).scheduled: YYYY-MM-DD (always a Monday). Written only at IPM commit time (/ipm step 5) for the tasks the IPM picks off the top of queue.md; it records which iteration a task landed in and does not drive priority. Update-forward-only — never removed. There is no GitHub Project board: scheduled: plus the local dev/TODO/ and dev/JOURNAL/ files are the whole source of truth for the iteration.deadline: YYYY-MM-DD. Hard date the task must be delivered by — usually customer-, release-, or compliance-driven. Informational — display it, but it does not reorder the queue; if a deadline makes something urgent, reflect that by /top-ing it.when / when-end / place / person: optional time (YYYY-MM-DD or YYYY-MM-DDTHH:MM), window end, context slugs, and involved-person aliases (never emails). Time fields never reorder the queue; position in queue.md stays the priority. Lint warns on a past when. Waiting on someone: needs: [person:<alias>] or ext:<text> (legacy Blocked by person: still read).type: chore|feature|bug|event|research|spike|rca|support|other. event needs when, is never auto-picked, and closes once its date passes. todo-list.sh --type event lists events.source-url / support-issue / support-report: source-url is set by /to-task for any tracked URL (dedup key); support-issue is a recognized legacy alias (pre-dates the /support -> /to-task rename). support-report: on|off opts in to outward status reports (absent = off). See _support/README.md and /customer-support.bash <skills-root>/todo/scripts/todo-deps.sh migrate [--dry-run] rewrites each legacy blocks: [X] on task A into A's id in X's depends_on and removes blocks: (an id with no task file is reported and kept); todo-deps.sh dependants T<id> prints the derived dependants.tier: 1-4 (default 3); autopilot takes the lowest eligible tier, then queue.md order. Reader: todo-tier.depends_on: T{id}s this task waits on (the only authored relation; the task keeps its real status). Dependants (Unblocks: in next) are derived from its inverse; blocks: is retired, an old line is read with a warning. needs: human-only conditions (human, vpn, owner-decision, person:<alias>, ext:<text>). Details: lifecycle.md.source: one-line origin (e.g. Retro 2026-04-25, RCA run 12345, Customer ticket SUPPORT-123).There is no priority: field — position in queue.md is the priority. A prior version of this schema had a free-form Critical/High/.../Low field that duplicated what the queue now expresses directly; it's retired.
Start from the canonical scaffold: repo-conventions/templates/task.md — copy it for the file body and fill it in (don't hand-copy a recent task file; that's how stale frontmatter comments propagate). The _taskid/new.sh helper mints the ID only (--check ./dev avoids collisions) — it does not write the file, and does not add it to queue.md (the next /todo sweep picks it up, or /stage immediately).
Backwards compatibility: Legacy task files (filed before the 2026-05-14 frontmatter migration) may still carry leading-bullet metadata (- **Status**: …). Treat both formats as equivalent when reading. New files and updates use frontmatter.
$ARGUMENTS is one of:
list — show all open tasks in queue order (reports stale blockers and queue/dev/TODO/ drift but does not modify files)next — show the top 3 non-done, non-peer-claimed tasks off the queue (does not check blocked-by/lint-frozen — that's sweep's job). next --skip-gated also skips gated tasks (Blocked by), next --check prints nothing and exits 0 when something would be listed, 1 when not; /drive auto-pick and /autopilot use bothsweep — sync queue.md with dev/TODO/, fix stale blockers, then prune the backlog (auto-close finished/superseded work, ask before parking anything blocked or stale)If $ARGUMENTS is empty, default to list.
listRun bash <skills-root>/todo/scripts/todo-list.sh and print its output verbatim — this
is a fully deterministic read of queue.md + task frontmatter (no
judgment involved), so it costs no model call. The
algorithm below is what the script implements; it stays documented here
for sweep's own reuse (Phase 2/3 share the same drift/stale-blocker
checks) and for a human reading this skill — don't re-derive it by hand.
dev/TODO/queue.md for order.dev/TODO/T{id}-*.md: title, Status, Estimation, scheduled, claimed_by.sweep's job):
dev/TODO/*.md file whose ID isn't in queue.md — report as "N untracked task(s) not in queue.md: … — run /todo sweep."queue.md line whose ID has no matching dev/TODO/*.md file — report as "N stale queue entr(y/ies): … — run /todo sweep."Blocked by T{id} (may have trailing notes like — waiting on X), check whether the blocking task ID exists in dev/TODO/. If not (i.e. it has been moved to dev/JOURNAL/ or never existed), the blocker is resolved.## Dependencies) for references to T{id} tasks no longer in dev/TODO/./todo sweep to update").queue.md first — this is the priority order, not a computed sort) with these columns:
Deadline — YYYY-MM-DD if set, blank otherwise; mark past-deadline rows with ⚠Scheduled — the raw scheduled date if set, blank otherwise; append ✓ when it's ≥ this week's Monday (landed in the active iteration at a past IPM commit)Claimed — blank if unclaimed, mine if claimed_by matches this session's id (task_claim.sh claimant-id), otherwise the raw claimed_by value (a peer claim — this is a report, not a filter, so peer claims still show up here even though next would exclude them)| # | ID | Title | Status | Est | Deadline | Scheduled | Claimed |
|---|----|-------|--------|-----|----------|-----------|---------|
(# is the 1-based queue position — makes "move this to #1" via /top concrete.)
N committed to active iteration / N claimed (M mine, K by peers)dev/PARKING/*.md and show: Parking lot: N parkedlist dimension flags--when today|tomorrow|week|overdue|<date>, --place, --here, --person, --waiting-on <alias|any> (matches Blocked by person:<alias>), --type, --group-by when|place|person|type, --json, --all run todo/scripts/task-query.sh (read-only, queue order, flags in its header). With none, the table is unchanged.
nextnext also takes --here and --when <W>, filters only: the pick is still the first match in queue order. Tasks due today show first under "Due today", informational. type: event is never picked.
Goal: quickly surface the top 3 lines of the queue worth looking at (fits
one page). The queue's order already encodes priority; this workflow only
skips entries that are pure noise to show (already finished, or owned by
someone else right now). Everything else — a Blocked by T{id} status, a
lint-frozen frontmatter — is shown as-is, status and all, rather than
silently filtered. If the top 3 turn out to be mostly non-actionable, that's
a signal to run /todo sweep (which does the deeper analysis: fixing stale
blockers, enforcing blocker order, pruning), not something this workflow
tries to work around itself.
Run bash <skills-root>/todo/scripts/todo-next.sh and print its output verbatim — the
skip logic and claim-state check are fully deterministic (no judgment
involved), so this costs no model call. One line is
explicitly not ported to the script and stays a judgment call for
whoever reads the top pick's file: step 4's "the next concrete action to
move it forward, if evident from the file" — that requires interpreting
free-form task-body prose. The algorithm below is what the script
implements; it stays documented here for a human reading this skill.
dev/TODO/queue.md for order — this is the walk order, top to bottom. Do not re-sort it by deadline, estimation, or anything else; if the order is wrong, that's a /top//stage/hand-edit problem, not something this workflow second-guesses.Done, legacy Revisit/Parked — finished or not active backlog, never useful as "next" work.CCXP_PEER_MODE=0) tasks claimed by another live session: read the frontmatter claimed_by: (bash <skills-root>/_session/task_claim.sh read <id>) — if it is non-empty and not this session's id (task_claim.sh claimant-id), skip it unless task_claim.sh reclaimable <id> reports reclaimable (a stale claim — no open PR, no commits in N days). This keeps the recommendation off tickets another peer is actively driving. With CCXP_PEER_MODE=0: no claim filtering.status: Blocked by T{id} or one /drive would refuse to claim (lint-frozen frontmatter, e.g. the [T20260626-353630] schema-fork class) still counts toward the 3; its status column says so.Blocked by T{id} prefix if present — don't resolve it, just show itdepends_on names this task, derived by todo-dependants (e.g. "Unblocks: T20260320-000029, T20260320-000045"); a legacy blocks: line is merged in with a warningBlocked by an open task, call that out plainly and point at /todo sweep rather than trying to interpret it further.A true P0 — production down, customer-blocked, security incident — preempts the queue entirely and doesn't wait for /top/IPM ceremony. P0s come through the Slack escalation protocol (#acme-dev-notifications with explicit human ack), not the normal task flow. Anything less than P0 — including newly-noticed deadline pressure — should go through /top (immediate) or /stage + the next IPM (routine). If the escape hatch is invoked more than once a week, that's a signal something structural is off; surface it in the Friday retro.
sweepClean up the TODO backlog: sync the queue, fix stale blockers, then prune. Unlike list/next (which only report), sweep modifies files. Phases 1, 2, and Phase 3's auto-close step all act without asking — they're mechanical (membership sync, stale-blocker resolution, ordering) or unambiguous (a task already marked Done, or already pointed at its superseding task). The only point where sweep stops and asks is Phase 3's Park recommendation — a move between dev/TODO/ and dev/PARKING/ is a judgment call about whether work is still worth tracking, so it always gets user sign-off first.
The mechanical parts are bash <skills-root>/todo/scripts/todo-sweep.sh (writes nothing but the apply calls, never commits):
bash <skills-root>/todo/scripts/todo-sweep.sh plan [--root DIR]
bash <skills-root>/todo/scripts/todo-sweep.sh apply --phase 1|2|3a [--root DIR] [--dry-run] [--supersede ID:COVERING]...
plan prints TSV findings (ADD, REMOVE, UNBLOCK, ORDER_VIOLATION, CLOSE_DONE, SUPERSEDE_CANDIDATE), exit 3 when there are none. Each apply re-plans from the current files; exit 0 = changed, 3 = nothing to do (fine, continue), 4 = unexpected input (missing queue, duplicate id, a cycle, an existing journal target — nothing moved; report it, do not work around it), 2 = usage. Report each printed line. Re-run plan at the end: it must exit 3 apart from judgment items.
queue.md with dev/TODO/apply --phase 1: append every dev/TODO/*.md task missing from queue.md (title from the H1) and remove every queue line with no matching file (closed/parked by any means). Pure membership sync — it never reorders an existing line.
apply --phase 2, fully automatic. A Blocked by T{id} status whose blockers are all gone from dev/TODO/ (moved to dev/JOURNAL/ or dev/PARKING/) is stale: status becomes Design if the task has a ## Design section, else Open, trailing notes kept, and the matching ## Dependencies lines are struck through with a link to the journal file when one exists. A blocker still in dev/TODO/ but queued behind the task it blocks is a broken order, not a priority call: it is moved immediately ahead of that task (the /top --before mode, never to the absolute front); blockers of the same task keep their relative order, and the result is a topological order.
Goal: keep the backlog actionable — auto-close finished/superseded work, ask before parking anything blocked or stale. No task merging: two related tasks stay two tasks.
Step A — auto-close (no approval needed). plan lists CLOSE_DONE (status: Done still in dev/TODO/) and SUPERSEDE_CANDIDATE (a task whose body says "superseded/absorbed by T{id}"; the script only finds that explicit cross-reference, with its evidence line). Read each candidate's evidence and confirm it really means this task is covered (or that the work is already done — that judgment is yours, the script never makes it). Then run apply --phase 3a [--supersede ID:COVERING]... listing only the confirmed candidates: it adds ## Closed (YYYY-MM-DD) ("marked Done" / "superseded by T{id}"), git mvs the file to dev/JOURNAL/yyyy-mm-dd-{file} and drops its queue line. Git history makes every move revertable, so no approval gate. Work already done with no explicit cross-reference is closed by hand the same way.
Step B — ask before parking (not scripted).
Score remaining tasks for park-worthiness:
Revisit status — belongs in the parking lot, not active backlog.Present candidates in a table (| ID | Title | Signal | Recommendation |); Recommendation is always Park — move to dev/PARKING/.
Ask the user for approval before acting; the user may override individual recommendations. This is the one step in sweep that always waits for a human.
Apply the approved list: bash <skills-root>/todo/scripts/todo-sweep.sh park [--dry-run] T{id}:"{reason}" ... sets status: Parked, adds ## Parked (YYYY-MM-DD) with the reason, git mvs the file to dev/PARKING/ and removes its queue.md line (exit 3 = nothing to do, 4 = unknown id / target exists, nothing parked). It only applies what you pass it; then run bash <skills-root>/_taskid/epic-links.sh sync + git add dev/EPICS — all in one commit.
Show final summary: queue sync (Phase 1) + blockers fixed (Phase 2) + tasks auto-closed (Step A) + tasks parked (Step B) + remaining open count + parking lot count.
dev/PARKING/)Parked tasks live in dev/PARKING/*.md — same format as TODO files but not competing for attention, and not in queue.md. New work should use parking-lot semantics instead of the old Revisit status. If a task is still marked Revisit in dev/TODO/, treat that as a legacy status that /todo sweep should migrate into dev/PARKING/; no new task should remain in dev/TODO/ as Revisit.
/todo list shows a Parking lot: N parked count at the bottom. Legacy Revisit items may still appear in TODO results until /todo sweep parks them./todo next should not pick legacy Revisit items; they are effectively parked pending migration./drive reviews one parked task after completing each TODO item (see drive skill).git mv dev/PARKING/{file} dev/TODO/{file}, update status to Open or Design, and add it back to queue.md (/stage it, or let the next sweep pick it up).evals/evals.json (opens in a new tab)evals/fixtures/basic/dev/TODO/T20260101-000001-shipped-thing.md (opens in a new tab)evals/fixtures/basic/dev/TODO/T20260101-000002-fix-login-timeout.md (opens in a new tab)evals/fixtures/basic/dev/TODO/T20260101-000003-add-csv-export.md (opens in a new tab)evals/fixtures/basic/dev/TODO/queue.md (opens in a new tab)scripts/_lib.sh (opens in a new tab)scripts/task-query.sh (opens in a new tab)scripts/task_query.py (opens in a new tab)scripts/todo-deps.sh (opens in a new tab)scripts/todo-list.sh (opens in a new tab)scripts/todo-next.sh (opens in a new tab)scripts/todo-sweep.sh (opens in a new tab)scripts/todo_deps_migrate.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub synx-data-labs/ccxp-skills --plugin ccxp-skills57 skills in this plugin
/1password-env-setupUse when the user explicitly asks to bootstrap or refresh a repo's 1Password-backed .env — installs the refresh-env helper, generates a hash-checking .envrc, and materializes .env from .env.tpl via op inject/address-prUse when the user explicitly asks to address, verify, or merge a specific open PR (CI, Claude Code review, test plan, tiered merge)/agent-pairingUse when the user explicitly asks to toggle the ccxp-agent main-session agent on/off for this Claude Code profile or check its status/agents-sdkBuild AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge./autopilotUse when the user explicitly asks to turn the unattended background /drive loop on or off, pause or resume it, or check its status — "/autopilot on", "/autopilot off", "/autopilot pause", "/autopilot resume", "/autopilot status", "/autopilot config"/bottomUse when the user explicitly asks to move a task (or several) to the back of the dev/TODO priority queue