From wp-labs-sdlc
Session follow-up backlog. Invoked ONLY by the explicit /queue command — never auto-run: `/queue <ask>` captures a follow-up without derailing current work, `/queue` (no args) reviews and runs the backlog after the current task, and `/queue list` shows it. The point is non-disruptive capture now, deferred execution later.
How this skill is triggered — by the user, by Claude, or both
Slash command
/wp-labs-sdlc:queue [<ask> | list][<ask> | list]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Capture follow-up asks or behavior changes mid-task and defer them until the
Capture follow-up asks or behavior changes mid-task and defer them until the current work is done, so they never derail the flow in progress. The backlog is scoped to THIS session (terminal), so parallel sessions keep separate lists.
Use ~/.claude/queue/<session-id>.md. Derive <session-id> from this session's
scratchpad path in your system prompt — it ends in .../<session-id>/scratchpad,
so the id is that path's parent-directory name (a UUID). Reading the id from the
scratchpad path keeps the backlog scoped to THIS session/terminal, while storing
the file under ~/.claude (persistent config) rather than the OS temp dir. Run
mkdir -p ~/.claude/queue and create the file if it doesn't exist.
Each item is one block. Capture writes only the first three lines; the
interpretation line is added later, at drain/list time (see Mode B/C):
- [ ] <the ask, verbatim>
queued: <YYYY-MM-DD HH:MM:SS>
ctx: <one line on what was being worked on when it was added>
interpretation: <added at drain/list — your detailed reading of the ask:
what it requires, the scope, the files/areas it will touch, open questions>
/queue <ask> (arguments present)Keep this near-instant so it does not disrupt the current flow:
date '+%Y-%m-%d %H:%M:%S' via Bash. (This is
a skill you execute, so date is available — record the actual time, do not
guess or omit it.)- [ ] item preserving the user's wording, with the queued
timestamp and a one-line ctx. Do not write an interpretation now —
reading scope/files/open-questions is the mid-task disruption this skill
avoids; it is produced later at drain/list time.Queued (N in backlog) — continuing current task.If nothing is currently in progress, say so and offer to run the item now instead of queueing it.
/queue with no argumentsTrigger this when the user runs it explicitly, or proactively the moment the current task batch is complete (that is the "run after current work" promise).
interpretation now (this is
the point where reading scope/files/open-questions is appropriate) and write
it back into the item block if not already present. List every open item,
numbered, showing its verbatim ask, its queued date-time, and its
interpretation.AskUserQuestion
(multiSelect) when there are ≤ 4 items; for more, list them in prose and ask
the user to reply with the numbers to run plus any per-item notes.- [x] (keep their queued/interpretation)./queue listPrint the open backlog items, numbered, each with its queued date-time and a
detailed interpretation (produce it now if the item has none yet, and write it
back). Change nothing else.
npx claudepluginhub cssherry-wp/wp-labs-starter --plugin wp-labs-sdlcCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.