coord-requeue
Skill0 starsChanged 47 days agoApache-2.0View on GitHub
Kick a stuck coord task. Flips `*-working` → `pending` and resets the runnable content hash so launchd treats it as fresh work. Optional `--model=<name>` for intra-agent model swap (token-out recovery). Use when the user says "/coord-requeue", "kick <id>", "the loop is stuck on <id>", or "<id> ran out of tokens".
- Commits and pushes
In this repository20 other files it gives its agents.
- coord-archive-indexSkill
- coord-assignSkill
- coord-auditSkill
- coord-checkSkill
- coord-dirtySkill
- coord-discardSkill
- coord-helpSkill
- coord-initSkill
- coord-loop-doctorSkill
- coord-promoteSkill
- coord-refineSkill
- coord-reviewSkill
- coord-shape-reviewSkill
- coord-shapeSkill
- coord-splitSkill
- coord-statusSkill
- coord-tokensSkill
- coord-unblockerSkill
- merge-to-mainSkill
- rebase-to-mainSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
If status was *-working: python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" update <id> --status=pending (add …
- Very specific: line 38
If status was already pending and --model was given: python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" update <id> …
- Very specific: line 39
If the update exits 3 as off-baseline for the task's complexity, report it and stop.
- Very specific: line 52
Never use --force or --no-verify.
- Very specific: line 53
Never cross agents via --model — reject and point at /coord-assign.
- Very specific: line 54
Never touch review-queue states (needs-review, etc.) — those need a human look, not a kick.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Recover stuck coord tasks. Status flip + hash reset, optionally with a model write in the same coord update call.
Project-root preflight:
- Resolve the canonical project checkout before reading, updating, staging, committing, or pushing:
COORD_MAIN=$("${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord-project-root") && cd "$COORD_MAIN" - This is required when the skill is invoked from a sibling task worktree; requeue must update the main queue that the launchd worker reads.
Syntax
/coord-requeue <task-id> [--model=<name>]
Workflow
- Read current state.
python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" show <id>→ capturestatusandassigned.
- Validate source status.
- Accepted:
pending,claude-working,codex-working. - Refuse
needs-review,review-passed,review-failed,needs-brainstorming,done,shaping. Print the current status and which skill to use instead:needs-brainstorming→/coord-promoteafter shapingdone→/coord-discard(already finished) or audit- review queue → diagnose, do not silently rescue
shaping→/coord-promote
- Accepted:
- Validate
--model(if supplied).- Infer agent from model name:
opus|sonnet|haiku|*claude*→claude;gpt-*|*codex*→codex. - Inferred agent must equal task
assigned. Reject cross-agent model swaps with a clear message:cross-agent model swap requires explicit re-assignment first: run /coord-assign <id> --agent=<other> --model=<m>, then /coord-requeue <id>
- Infer agent from model name:
- Apply changes.
- If status was
*-working:python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" update <id> --status=pending(add--model_<agent>=<value>to the same call when--modelwas given). - If status was already
pendingand--modelwas given:python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" update <id> --model_<agent>=<value>. - If the update exits 3 as off-baseline for the task's
complexity, report it and stop; do not retry with other values. A different rung needs the complexity changed in the same call (--complexity=<value>), and only after the user agrees. - If status was already
pendingand no--model: the coord CLI only clears the content hash on a non-runnable → runnable transition. Apending→pendingwrite does NOT clear it. In this case, also runpython3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" update <id> --status=pendingto force a write, but warn the user that the hash may not be cleared and the task may not be picked up as fresh work. True hash-clearing for an already-pending task requires a pending→shaping→pending round-trip or a direct CLI flag if one is added. - Each
coord updateauto-commits-and-pushes. Do not run manualgit add,git commit, orgit push.
- If status was
- Verify hash was cleared.
python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" show <id>and check thatcontent_hash_<assigned>is absent from the output. If still present on an already-pending task, warn the user about the limitation above.
- Report.
requeued: <id> (was <prev-status>, now pending)— includemodel_<agent>=<value>if changed.- Note the commit sha from coord update's output.
Rules
- Never use
--forceor--no-verify. - Never cross agents via
--model— reject and point at/coord-assign. - Never touch review-queue states (
needs-review, etc.) — those need a human look, not a kick.
Token-out recovery flows
- Same agent, cheaper model: one command —
/coord-requeue <id> --model=<cheaper>. - Switch agent entirely:
/coord-assign <id> --agent=<other> --model=<m>then/coord-requeue <id>. The agent switch is a deliberate decision, not bundled into recovery.
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.

