agentleFS
zoranmarticzoranmartic/coord-wright/skills/coord-requeue/SKILL.md

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

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
  1. Very specific:

    If status was *-working: python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" update <id> --status=pending (add …

    line 37
  2. Very specific:

    If status was already pending and --model was given: python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" update <id> …

    line 38
  3. Very specific:

    If the update exits 3 as off-baseline for the task's complexity, report it and stop.

    line 39
  4. Very specific:

    Never use --force or --no-verify.

    line 52
  5. Very specific:

    Never cross agents via --model — reject and point at /coord-assign.

    line 53
  6. Very specific:

    Never touch review-queue states (needs-review, etc.) — those need a human look, not a kick.

    line 54

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Read current state.
    • python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" show <id> → capture status and assigned.
  2. 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-promote after shaping
      • done → /coord-discard (already finished) or audit
      • review queue → diagnose, do not silently rescue
      • shaping → /coord-promote
  3. 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>
  4. 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 --model was given).
    • If status was already pending and --model was 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 pending and no --model: the coord CLI only clears the content hash on a non-runnable → runnable transition. A pending → pending write does NOT clear it. In this case, also run python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" update <id> --status=pending to 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 update auto-commits-and-pushes. Do not run manual git add, git commit, or git push.
  5. Verify hash was cleared.
    • python3 "${COORD_TOOLS:-$HOME/Projects/coord-wright}/bin/coord" show <id> and check that content_hash_<assigned> is absent from the output. If still present on an already-pending task, warn the user about the limitation above.
  6. Report.
    • requeued: <id> (was <prev-status>, now pending) — include model_<agent>=<value> if changed.
    • Note the commit sha from coord update's output.

Rules

  • Never use --force or --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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.