ready-for-agent-check
ready-for-agent-check
Find out whether a ticket can be built by somebody who has only the ticket. Each one is read by a subagent that did not write it, against the repository as it now stands, and what comes back is the sentence a builder would stop at.
Run uv run "$HERE/scripts/invoke.py" — $HERE is the directory that holds this SKILL.md — with everything the user typed after /ready-for-agent-check, verbatim and however many lines, on stdin. Exit 0: do what it prints. On any other exit, if you introduced a known construction error and can correct it while preserving the user's request and authority, account for effects already produced, submit the corrected invocation through the same shim, and continue from the failed boundary; a refusal before the operation starts consumes no operation. Otherwise show what it printed to the user verbatim and stop. Never repair input the user supplied, or automatically retry exact help, an unmet dependency, an unrelated failure, or a failure whose origin or valid correction is unknown.
Arguments
Every operand is a ticket reference, and step 1 says what naming none means. This grammar declares no flag, so a dash-prefixed token is a reference like any other, and one nothing resolves.
Steps
- Settle which tickets are in scope. Named none: every open ticket the tracker labels
ready-for-agent. Named some: exactly those, whatever label each carries — a ticket is worth checking before it is labelled, and refusing one for want of the label would put the check after the decision it exists to inform. A reference nothing resolves — a number the tracker does not know, something that is not a number, a dash-prefixed token among them, or one written asowner/repo#number— is refused as$LIBRARY/references/invocation-envelope.mdsays: name it, check nothing, and stop. Where the scope is empty, say so and stop. Done when the set is settled, or you have stopped. - Read each ticket in the set whole: the body it was filed with, and every comment on it since, oldest first, each with its author and date. Take it from the tracker rather than from anything you remember. The requirement is the thread and not the body — in this collection the settled decisions and the acceptance criteria usually arrive as a comment, so a ticket read as its body alone is a ticket read as its untriaged self. Done when every ticket in scope is held whole.
- Review each ticket in its own subagent, started together rather than one after another. Read
review.md, fill it in per ticket, and give each subagent the filled-in brief and nothing else. Never review a ticket in this context, and never tell a reviewer anything about the ticket that is not in the ticket. A session that helped write the ticket knows what it meant, and knowing what it meant is exactly the advantage the builder will not have — a reviewer given it agrees with the ticket for reasons the ticket does not carry, and the check reports a readiness nothing on the tracker supports. Done when every ticket in scope has a verdict. - Report the verdicts as they came back, ticket by ticket, and change nothing on the tracker. For each ticket: whether a builder could carry it start to finish, then every stop and every cost the reviewer named, each quoting the sentence it is about. Among those are the inferences the reviewer had to make to get past a sentence — an intent it supplied, a reading it chose between, a fact it went and found — each carried under its own stop or cost and never as a class of its own, because what the maintainer has to read is the gap the ticket left and not the gap the reviewer happened not to have. Where a reviewer found a claim the repository no longer bears out, give what the ticket says and what is there now, so the fix is a matter of reading rather than of looking. Say plainly that this is advice and not a label: nothing was written, no state moved, and what to do about a stop is the maintainer's to decide. Where every ticket passed, say that too — an empty report and a clean one are not the same answer. Done when the user has that report.