dequeue
Skill1 starsChanged 5 months agoMITView on GitHub
Pop the top item off the handoff queue and resume that work. Use at the start of a fresh session to continue queued work, or when the user says "dequeue", "takeover", "接手", "pick up the queue", "what's queued", "continue where we left off", or "resume the handoff". Paired with the enqueue skill, which writes items into the queue.
In this repository8 other files it gives its agents.
- bughuntSkill
- commitSkill
- comprehensive-reviewSkill
- enqueueSkill
- github-issueSkill
- github-prSkill
- md2pdfSkill
- threadsSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Read the doc top to bottom, then follow its own contract:
- Distinctive: line 41
Run Preflight exactly as written: Every mismatch's consequence is in the doc.
- Very specific: line 47
Thin Decisions or Why?: Read the discussion back off Source session:, never guess or re-ask: references/edge-cases.md.
- Distinctive: line 53
When the doc's Done when is observably met (a clause that is only the user's QA counts as met), or the user says it is done:
- Distinctive: line 65
One pop per invocation: After acking, show what's next in the queue and stop.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dequeue
Pop the top handoff, resume the work, and ack (archive) the doc only when it is actually done.
A dequeue ends in a pop, and ONLY a session that verified 100% of the CURRENT Done-when may pop. Both halves bind. Verification is your job to go and do, so "I could not verify it" is doing less than the skill asks; but a Done-when 80% proven is not met, and popping claims it is. Under 100%, it stays queued. A Done-when a later user decision overtook is stale: rewrite it (hd.sh <slug> next --replace) before verifying.
Peek + ack, not naive pop: the doc stays queued until Done-when is met, so a dying session loses nothing.
Context size never justifies refusing, narrowing or deferring what the user asked for. It is a prompt to offer the close; their "do it" ends it.
The queue
~/.claude/handoffs/ is the queue, no index file. A pending item is p<N>-<yyyymmddhhmm>-<slug>.md at the top level, p0 (drop-everything) through p3 (backlog), sorted lexically: lower p first, oldest first within a priority. done/ holds popped items and is never resumed from; drafts/ holds docs nobody asked to queue.
ls ~/.claude/handoffs/p*.md 2>/dev/null | sort prints it: first line is the top, no matches means empty, and empty means say so and stop.
Before you list
Reconcile. Work finishes outside dequeue and nothing acks the doc, so settle judgement-free Done-whens first: a sha, buildId or deployed version is one git merge-base --is-ancestor away. Ack those, list the rest. Never a prose Done-when, which has to be run: inferring one from a merge commit closes work never done, and did on 2026-09-10.
Triage. Cap 20 (also enforced by hd.sh promote), no p3. Over either, clear the overflow oldest first before working the head: references/triage.md.
Selecting
- Bare invocation → the first line of the sorted listing. Announce the pick first (item, priority, how many remain behind it) so the user can redirect before you sink work in.
- With a slug → straight to that one doc, no listing first:
ls ~/.claude/handoffs/*<slug>*.md. Zero matches → then fall back to the full listing. Jumping the queue needs no ceremony; report what you skipped at the END, off the closing listing. - "list" / "what's queued" → the sorted queue, one line each (priority, age, slug, the doc's Next action first line). No pop, no work.
- Ambiguous slug → show the matches, ask.
- Name the doc's siblings at the pick. Docs sharing a
**Source session:**came out of one discussion, so listing them makes "all of them" one word from the user.
Resuming
Read the doc top to bottom, then follow its own contract:
- Run Preflight exactly as written. Every mismatch's consequence is in the doc; honour it. "Stop and report" means stop and report, not improvise.
- Follow any
docs/feature-<name>.mdpointer BEFORE Next action, reading its §0 ledger first. The handoff holds session state; the feature doc holds the decisions and wins when they disagree. Its ledger says what is BUILT, UNBUILT, DROPPED or OPEN, and a struck decision names a premise the owner already killed. - Read Decisions, then start at Next action. A decision there can have superseded a gate the rest of the doc still assumes. State / Why / Dead ends can wait until you deviate from the plan.
- Respect Authority. It says what you may fix alone versus what needs the user. Preflight surprises outside it go back with the mismatch, not a workaround.
- Reality diverging from State beyond what Preflight anticipated makes the doc stale intel, not instructions: report the divergence, propose the adjusted plan, get a nod.
Thin Decisions or Why? Read the discussion back off **Source session:**, never guess or re-ask: references/edge-cases.md.
The doc stays live for the rest of the session, and so does the feature doc it points at. Session state goes back into the handoff (hd.sh <slug> state '<fact>'), and a Preflight or Next action the work has overtaken is rewritten, since the next session obeys it; a DECISION goes into the feature doc in the same commit as the code it governs, never only into the handoff. This is the write-through half of enqueue.
The pop (ack)
When the doc's Done when is observably met (a clause that is only the user's QA counts as met), or the user says it is done:
~/.claude/scripts/hd.sh ack <slug>Every bullet under Open questions and Still open is disposed of first, marked in place as DONE, MOVED <slug | docs/feature-<name>.md | GT> or DROPPED <reason>. ack refuses the move while one is unmarked and prints it, because an archived doc's open threads are dead threads.
Verification is yours to OBTAIN, not to request. Go get the proof: rebuild the harness, start the app, point the local build at real data. Proof is running it this session and reading the result; a commit subject that looks right, a merge or "probably shipped" is inference and never acks. Never ack around a gap: a partial proof is reported, not cashed. rm is never the pop, and done/ is the undo.
Then report what was completed, the evidence for Done-when (which env), and the remaining queue.
One pop per invocation. After acking, show what's next in the queue and stop; chaining items uninvited is scope grab.
Parking, and ending with the work unfinished, are the exception and not the exit, and only after you have tried to obtain the proof yourself: references/ending-unfinished.md.
Edge cases
references/edge-cases.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

