/projector:fix-prfrom Projector
Fix one pull request's outstanding review work once. Merge its base when the branch conflicts, verify each finding, fix and push the valid ones, reply to and resolve their threads, decline the rest with evidence, and implement or defer each suggestion, holding the pull request in draft while a change is built. Once it merges, take the suggestions and follow-ups still owed on it into a follow-up pull request without asking. Each push subscribes the session to fix the pull request, so later review work arrives as an event that runs this skill again in one subagent per pull request. Use when the user asks to fix, address, or answer review feedback on a pull request, or to resolve its merge conflicts.
Ships in Projector. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bring one pull request's current head to where a review can sign it off. Merge its base when the branch conflicts, and answer every outstanding finding with a pushed fix or a declined reply. Implement or defer each suggestion a review lists, and hold the pull request in draft while you build a change no review has read. Once the pull request merges, take the suggestions still owed on it, and the follow-ups its reviews list, into a follow-up pull request, as Follow up on a merged pull request describes. The fix runs once. Each push subscribes the session to fix the pull request, so later work on it arrives as an event, and the session runs this skill again for it, as Act on the session's events describes.
Take the pull request from the user: a URL, or a number in the repository containing the current working directory. When the user names none, use the open pull request for the checked-out branch:
gh pr view --json number,url,state,isDraft,headRefOid,baseRefName
When that finds no pull request, or finds one that is not open, ask the user which pull request to fix rather than guessing.
A merged pull request has no review work left. When the pull request you are
given has merged, as a MERGED event says, follow up on its suggestions and
follow-ups as
Follow up on a merged pull request
describes, and do nothing else to it.
Work in a checkout of the pull request's head branch that has no uncommitted changes, such as a worktree of that branch. Never discard or overwrite uncommitted work to switch branches.
The operator owns the pull request's branch and is the identity allowed
to push fixes. Resolve that login from explicit user input, then repository
instructions. Confirm it with gh auth status and gh api user --jq .login
under the token used for pushes.
The operator is deliberately not a .projector.toml setting, though other
Projector behavior is. Every fix is pushed and every reply posted through the
operator's token, so a file naming a different account could only disagree
with the identity actually doing the work. Ownership follows the token, not a
file that can disagree with it.
A reviewer may post under a different identity. If the ambient
identity is not the operator, do not push through it. Hold the validated
operator login literally; never use @me. Push only to a branch the operator
owns: being able to see a branch does not authorize pushing to it.
Fetch the pull request's state, its unresolved review threads, and its review bodies:
gh pr view <number> --json state,isDraft,mergeable,baseRefName,headRefName,headRefOid,reviewDecision
gh api repos/<owner>/<repo>/pulls/<number>/reviews --paginate
Read the threads from GraphQL's reviewThreads, because only it says which
are resolved. The work outstanding on the head is:
mergeable is CONFLICTING. UNKNOWN means
GitHub has not computed it yet, so ask again after a few seconds.CHECKS line names. Read the
failing job's log with gh run view <run-id> --log-failed, taking the run
id from the check's URL, or open the URL of a check from another app or of
a commit status. Reproduce the failure locally with the failing test, then
fix it as you fix a finding. A failure you cannot reproduce, or one in
infrastructure the change did not touch, such as a runner that could not
start or a flaky service, is not yours to patch: report it with the
check's URL, and change nothing.CHANGES_REQUESTED from a cross-author reviewer, including
one whose findings exist only in its body.COMMENT review.project review suggestions <number> lists, as
Decide each suggestion describes.project review ready, as
Hold the pull request while changes are built
describes.Findings arrive from two kinds of reviewer and both are answered the same way.
A cross-author reviewer — a teammate, Codex, Bugbot, or a Projector review
run by someone else — posts real CHANGES_REQUESTED verdicts. A
self-review, which GitHub allows only to post COMMENT reviews on the
operator's own pull requests, records its outcome in the review body's verdict
line instead, and project review status reports whether that verdict signs
the head off. Read both signals; never treat an unmoved reviewDecision as
evidence that nothing is outstanding.
Read review bodies and compare them with the thread set. A Projector review body carries a verdict line; read it rather than inferring the outcome. Dispose of a body-only finding in a pull-request-level comment because there is no thread to reply to or resolve.
The suggestions a Projector review lists in its body are not body-only
findings. They never hold a head back from clean and need no reply, but you
decide each one, and you take them from project review suggestions rather
than from the body you read.
Nor are its follow-ups. A follow-up is work outside the change, such as a defect already present at the base, so it is never work on the open pull request: build none there, and post nothing about one. You take the follow-ups on once the pull request merges, as Follow up on a merged pull request describes.
Draft state is not itself a finding. It says the author is still working on the pull request, so look for the work in the threads and review bodies. A pull request with no outstanding work whose head is not signed off is waiting on a review, not on a code change. When nothing is outstanding, say so and stop.
Resolve a conflict before you fix findings. Each fix is verified against the head the merge produces, and that head is the one the next review reads.
origin/<baseRefName> into the branch. Merge rather than
rebase unless the repository's instructions say otherwise: a merge needs
no force-push, so review threads stay anchored to their commits. A layer
of a stack is the exception while gh stack works: gh stack keeps a
stack current by rebasing it and has no option to merge, so its rebase is
how the layer takes in its base, the default branch included. Run
gh stack rebase in place of the merge, as ../implement/SKILL.md
describes under "Stack dependent work", and push nothing yet; merge only
where gh stack is unavailable. A stacked pull request's
base is its parent's branch until the parent merges. GitHub then
retargets it to the default branch, but only when the merge deletes the
parent's branch. Where the repository keeps merged branches, retarget the
child yourself with gh pr edit <number> --base <default-branch>.git log --merge -p <file>. Keep what each side meant to
do. When one side already contains the other's change, take that side.
Regenerate a generated or compiled file with its build command instead of
editing it by hand, as the repository's instructions describe. When the
two sides make choices only the user can reconcile, stop and ask.review.gate_checks is set, CI runs the full suite on the push, so run the
smaller gate step 2 of
Hold the pull request while changes are built
describes, with the tests that cover each file the merge resolved, and let
a CHECKS line bring back what CI finds.mergeable reads
MERGEABLE. A stack's rebase leaves no merge to commit: once the gate
passes on every rewritten layer, push them all with gh stack push, and
confirm mergeable on each.A conflict has no thread to reply to, so the merge commit is its record.
Re-read the pull request body's Testing commands afterwards, because a merge
can change a count or a path they name.
A Projector review lists its P3 items, changes the code is correct without,
as suggestions in its body. A suggestion never holds a head back from clean,
so a review can sign a head off and label the pull request clean above a
list of them. Each one still gets a decision: you implement it or you defer
it.
List them with the command, never by reading review bodies yourself, whose
label and list style vary with the model and the release that wrote them:
project review suggestions <number> --repo <owner>/<repo>
It lists every suggestion in the newest Projector review of the current head
by each model. An incremental review lists none of its own, so the command
also lists those of the full review it builds on. Each block names the file
and line, the head of the review the suggestion comes from, and that review's
URL, with the suggestion below them. With --json it gives each as an
object with url, sha, path, line, and text. It prints nothing when
no review lists a suggestion. Decide every suggestion it lists.
An instruction from the owner in the conversation overrides the default, in either direction: "defer the suggestions" or "take the second one". A suggestion you deferred on an earlier head stays deferred when a later review lists it again, unless the owner says otherwise.
Neither decision needs a reply. A suggestion has no thread, so the push that carries an implemented one, and the review of that push, are its record.
A review that signs a head off labels the pull request clean, and from then
on the owner can merge it. A change you make after that review is one it
never read: a suggestion you implement, or a change the owner asks for. So
the pull request must not be mergeable while you build that change. Hold it
by converting it to a draft before you start, and mark it ready once the
push lands. Run both commands as the operator, who authored the pull request;
they refuse any other account, because only the author's draft state is
theirs to move. Pass --repo <owner>/<repo> every time, so the commands act
on the pull request's repository from any directory. Without it, they act on
the origin of the checkout you run them in, and refuse outside one.
Hold the pull request:
project review hold <number> --repo <owner>/<repo>
The command converts the pull request to a draft and confirms that it is
one. GitHub refuses to merge a draft, so the owner cannot merge the
signed-off head while you build on it. The hold leaves the clean label
on, because the head is still the one the review signed off: a draft that
carries clean tells a reader that a review signed the pull request off
and that its author is building a change on top of it.
Build each change, run the gate, commit, and push. Where
review.gate_checks is set, CI runs the full suite on the push, so run
the smaller gate ../implement/SKILL.md describes under "Verify the
current slice": the tests that cover the change and the review.gate
command, not the full suite. The push starts a
head with no sign-off yet, so the repository's label workflow, or the next
review's setup, takes clean off.
As soon as the push that carries every change succeeds, mark the pull request ready, before you resolve threads or report:
project review ready <number> --repo <owner>/<repo>
The reviewing session reviews the head you pushed, and a clean verdict signs it off. Never mark it ready before that push: the owner could then merge the signed-off head while your changes are still local. When the owner drops every change you were about to build, mark it ready without a push, because the head the review signed off is still the head.
Each command prints the pull request's draft state, whether it moved, and
the head it acted on; --json prints the same as one object. So you need
no gh pr view after either one.
Run project review hold and project review ready each as a tool call of
its own: not after cd, not joined to another command with ;, &&,
||, or |, and never as gh pr ready yourself. project init adds
Bash(project *) to the user's Claude Code settings, which allows every
Projector command, and the same allowance to their Codex rules. Both Claude
Code and Codex check each command of a chain against the user's rules and
take the strictest result, so one command the rules do not name, such as
gh pr view beside project review ready, sends the whole call to the
host's automatic approval. Claude Code's auto mode can refuse such a call,
judging that marking a held pull request ready undoes the hold, and can
refuse a bare gh pr ready as self-approval.
When the host refuses one of these commands, never retry it as
gh pr ready. Work out why it was refused:
project review rules --json, which
writes nothing, and read allowed for the host's file,
~/.claude/settings.json for Claude Code or
~/.codex/rules/projector.rules for Codex.
false, or the file is not listed. The file lacks Projector's
current rules. Ask the user to run project init themselves in a
terminal, then project review rules to check it. Codex reads its
rules only when a session starts, so a Codex user starts a new session
after init. Do not run init yourself.true. The rule is installed, and init changes nothing. Ask the
user to run the command themselves, and on Codex say that a session
started before the rule was written has not loaded it.Either way, leave the pull request as it is, and say in your result that it is still a draft, what refused the command, and the action that would let it through.
Hold only when a change is coming: when you defer every suggestion and the
owner asks for nothing, leave the draft state as it is. Your report lists the
deferrals. A pull request that is already a draft is one its author is still
working on, so it needs no hold, and marking it ready is not yours to do
unless you held it: whoever drafted it marks it ready, as
../implement/SKILL.md describes.
In a stack, hold the layer that gets the change. The user merges a stack from the bottom up, so a held layer holds every layer above it too, and those layers need no hold of their own. Carry the change up through them, as Preserve stacked ownership describes, and mark the held layer ready once the push that carries every change into it succeeds.
Handle findings in posting order, batching only related findings that touch the same code:
../review-pr/method.md § 5: quote the
lines, walk the execution, write the triggering sequence, and look for
what already stops it. Decline a false finding by naming that guard with
the quoted code that shows it, rather than changing correct behavior.../guidelines.md, the code guidelines the review read the head against.
A finding that cites a section of that file is verified against that
section, and declined only by showing the rule does not apply to the
quoted code. Read the lines around an insertion anchor before editing so
an attribute, decorator, or comment is not silently detached. Write a
comment the fix adds or changes by ../writing.md § 12, so it gives the
code's reason and never names the finding, the review, or the code it
replaced.../testing.md: the test catches the defect the finding names, through
behavior the code computes, never a value the fix sets.Decline a finding that asks you to rewrite or annotate a Projector plan that
is already at status: completed on the pull request's base. A completed plan
records what was decided and built, as ../review-pr/method.md § 6 says, so
reply with that reason and leave the plan as it is. When living documentation
describes the same behavior and the change left it stale, the finding holds
for that document: fix it there, and say in the reply that the plan stays as
it is. A plan this pull request marks completed is not a record yet, so fix
a finding about the outcome it records as you would any other. A change may
also record, in a completed plan's outcome, the result of a check that
outcome deferred until after the merge. Decline a finding that flags that
edit alone, citing ../review-pr/method.md § 6.
If the correct behavior requires a user decision, ask instead of guessing and go on with unrelated findings. If a finding recurs after a pushed fix, stop and report the recurrence before changing it again.
Follow the writing guide in ../writing.md when you write each commit message
and thread reply. For every accepted finding, preserve this order:
<!-- projector-reply v=1 --> so a reviewer sharing this login never
reads it back as a new finding. Name the commit and state what was
reproduced and changed.reviewThreads and confirm isResolved: true.Resolving says the fix is pushed; it is not the final word on a Projector
finding. The reviewer verifies every one of its findings on the next head,
resolves any you left open, and reopens one whose fix does not hold, replying
with <!-- projector-verify v=1 result=reopened -->. A reopened thread is the
recurrence above, not new work. On a pull request you wrote that another
login reviews, the reviewer leaves a thread you resolved resolved. It posts a
new finding when your fix does not hold, and it treats a finding you declined
as your decision. No reopened thread signals a failed fix there, so a new
finding on code you already fixed is the recurrence above too: stop and
report it rather than treating it as new work.
Resolve a person's thread the same way once its fix is pushed, so a reviewer
who never resolves threads does not leave the pull request looking
unanswered. Where project config get fix.resolve_human_threads --default true prints false, reply to a person's thread and leave resolving it to
them. A Projector finding or another tool's thread is resolved either way.
Reply before pushing so a reviewer triggered by the push sees the reasoning,
but push promptly because the named commit is briefly local-only. If a push
fails, post that fact, leave the thread unresolved, and report the blocker.
When you held the pull request and the push carries the last change, mark
it ready with project review ready <number> --repo <owner>/<repo> before
you resolve anything, so the review of that push can sign the head off.
Fixing an external reviewer's finding is not a reason to ask that reviewer for another pass. Codex, Cursor, and Bugbot re-review on push by themselves, so the request buys nothing and spends someone's money to add noise to the pull request. This is the moment the temptation is strongest, because the fix looks incomplete until somebody confirms it; the push is the confirmation.
Do not wait for one either. Those services are slow beside a local loop, and their findings are worth fixing without their latency being worth inheriting. Fix what they raise, push, and carry on; whether their re-review has landed is not this skill's business.
Never resolve a finding you declined or could not fix. An open declined thread
is the user's merge decision. Re-read and rerun the pull request body's
Testing commands after each fix batch, and update stale claims in unwrapped
GitHub prose.
Fix code on the stack branch that introduced it. Find the layers above it,
and carry each fix up through every one of them, as ../implement/SKILL.md
describes under "Stack dependent work": by rebasing with gh stack where it
works, and by merging each layer into the one above it where it does not.
Either way, run each affected layer's gate before you push it, as step 2 of
Hold the pull request while changes are built
describes. Do not
patch parent code inside a child merely to avoid updating the layers above.
The user can merge the whole stack, or its bottom layers, from GitHub at any moment, so a run that changes a layer with layers above it is not done when that layer is pushed. It is done once the change is carried up, every layer above is pushed, and GitHub's comparison shows the stack in sync again, as that section describes.
After a parent merges, update the layers above it the same way: the rebase
replays them onto the new base and drops a squash-merged parent's commits
from them. Then verify each child points at the intended base and remains
mergeable. Where gh stack is unavailable and the parent was squash-merged,
merge the new base into the child even though mergeable reads MERGEABLE:
until then the child's diff still carries the parent's original commits, and
no conflict event will say so. Never merge any layer; merging remains the
user's checkpoint.
Once a push succeeds, subscribe the session to fix each pull request it updated: this one, and each layer above it that the push carried a change up through. That holds for every push this skill makes, whether it carries a fix, a merge of the base, or a stack's rebased layers. The session then hears about each pull request's later findings, verdicts, conflicts, and review bodies as events, and runs this skill again for them, as Act on the session's events describes.
project watch add <owner>/<repo>#<number>
The role defaults to fix. The command writes the subscription to the
session's folder under Projector's state directory, and starts the watch
daemon, one process per machine that polls every pull request a session
subscribes to, when it is not running. Running it again for a pull request
the session already fixes is harmless. The command refuses a pull request
the session excludes, as one the user dismissed in Projector's panel. Tell
the user, and run project watch restore with the same arguments only when
they ask. Skip the command when
project config get watch.auto_start --default true prints false, and say
in your report that the setting kept the session from subscribing.
Subscribing also registers the session for agent messages, with a generated
summary and no name, so the user's other sessions can reach it. The
message skill describes how to give it a name.
The command finds the session's id in CLAUDE_CODE_SESSION_ID, which Claude
Code sets in every command, a subagent's included, so a subagent subscribes
the session it belongs to. On a host that sets no session id, the
conversation the user talks to chooses one, of letters, digits, ., _,
and -, and gives it to each subagent it starts. Every project watch
command there takes it as --session <id>, or reads it from
PROJECTOR_SESSION.
In Codex, trusted Projector hooks supply the real parent session ID in additional context. Pass it to watch commands and workers rather than choosing another ID.
The command's last line says how the session's events arrive:
| Line | Means | Do |
|---|---|---|
events: mod | Projector's mod in Claude Code submits them as a prompt. | Nothing more. |
events: codex | Trusted Codex hooks register the session; the daemon queues events as prompts. | Nothing more. Do not start a stream. |
events: codex — but Codex is not running Projector's hooks … | Codex stopped running the hooks, so nothing registers or acknowledges. | Tell the user what the line says to do, such as trusting the hooks in /hooks. Do not start a stream. |
events: stream | A project watch stream that the session runs prints them. | Nothing more. |
events: none — Codex is not running Projector's hooks …; until then, start `project watch stream --session <id>` … | A Codex session whose hooks have not run, or that has none, so the daemon cannot queue its events. | Tell the user what the line says to do, such as trusting the hooks in /hooks, and start the stream it names, as the next row describes. |
events: none — start `project watch stream --session <id>` … | Nothing delivers them yet. | Start the command the line names under the host's persistent process or monitor facility, where it runs until stopped. |
Start the stream only from the conversation the user talks to, because a
subagent's processes end when it returns. A subagent that reads none says
so in its report, and the conversation that started it starts the stream.
For Codex delivery problems, inspect project watch status --json. A
queued batch can be waiting for its thread to resume. Never resend it just
because it has not run. Projector resends an uncertain submission 30
minutes after it was sent unless it arrives first. Run
project watch codex-retry --session <id> only to resend it sooner, because
the first message may already be accepted. Stop delivery with project watch disconnect --session <id> before switching transports. Recheck current
subscriptions and PR state before acting on every queued event.
When the user asks the session to stop fixing a pull request, run
project watch remove <owner>/<repo>#<number> and stop its subagent. A
subscription also ends by itself when the pull request merges or closes.
The owner can merge a signed-off head before every suggestion on it is built: while you are still deciding them, or after you deferred one as reaching beyond the change. Those suggestions are still owed, and so is every follow-up a review listed, which waits for the merge by design. So when the pull request merges, take each one that is warranted into a follow-up pull request yourself, and do not ask the owner whether to open it. The merge was their decision to make, and the follow-up's review and merge stay theirs. A pull request closed without merging owes no follow-up, because the owner set its work aside.
Gather the candidates. List the suggestions on the merged head and the follow-ups of every review of the pull request, whichever head it read:
project review suggestions <number> --repo <owner>/<repo>
project review follow-ups <number> --repo <owner>/<repo>
Add each suggestion you deferred on an earlier head that the first list leaves out. Drop one the owner told you not to take, and one you deferred because it did not hold up.
Verify each against the base as it is now. Run git fetch origin,
and verify each candidate against origin/<baseRefName> as you verify a
finding under Verify and fix findings: quote
the lines it names there, and confirm that the change it describes is
still correct. The merge, or a later change to the base, can already
carry the change or have moved the code it names.
Take the warranted ones. A suggestion or follow-up is warranted when
it holds up on the base, is clearly right, needs no decision only the
owner can make, and needs no spec first, by the test
../implement/SKILL.md gives under "Start from a description". Leave out the rest, each with a one-line
reason for your report.
Build the follow-up. When you take any, build them as one change,
unless the sizing rule under "Hand the work over" in
../implement/SKILL.md splits them, as two unrelated follow-ups can be;
then build each part as a pull request of its own. Build each the way
../implement/SKILL.md builds a change the user describes: from a new
branch off the fetched tip of the base, in a worktree of its own, through
the gate, and through its hand-over, which opens the pull request as a
draft, subscribes the session to fix it, and marks it ready. Its rules
under "Stack dependent work" place the branch when the merged change is
not on the default branch yet, as when a stack layer merged into the
layer below it, or when the follow-up changes files an open stack
changes. A suggestion you were building when the pull request merged
carries over: copy its commits onto the new branch with
git cherry-pick rather than build it again. In the body, name the
merged pull request and link the review each suggestion and follow-up
comes from.
Report. Report each follow-up pull request's URL and the suggestions and follow-ups it carries, each one you left out with its reason, and the validation results. When you take none, open nothing, and report each with its reason.
A merged pull request takes no hold and no project review ready, because
GitHub can no longer merge it; the follow-up is the pull request you mark
ready. The follow-up is then a pull request like any other: its findings and
suggestions arrive as events of its own, and the session starts a subagent
for it under its own name when the first one arrives.
A pull request is clean only when:
project review status <number> reports clean for its current head,
which says the newest Projector verdict on it is clean,../implement/SKILL.md describes under "Stack dependent work", prints
0 for each, whatever a local gh stack view reads,reviewDecision is not
CHANGES_REQUESTED for a cross-author reviewer, and the last line of
project review status says signed off, which is how a self-review signs
off. The clean label shows that sign-off in the pull-request list, but a
repository can turn the label off with review.labels = false, and GitHub
can refuse it, so read the sign-off from the command, not the label.project review status <number> reports the newest Projector verdict on the
current head, whichever model gave it, and the model and review it came from.
It reads the verdicts of every account the repository lets in, as the site
does, so one run covers your own reviews and a teammate's. The newest
verdict wins: a clean verdict after another model's change request signs the
head off, because that model's findings were settled before the clean
verdict could be given, and a change request after a clean verdict takes the
sign-off back. With no verdict on the head it reports unreviewed, a head
waiting on its first review. When nothing is outstanding and it reports
anything but clean, report the verdict and the model it names, and treat
the head as waiting on a re-review, not on a code change. A session that
reviews on Codex is one of those models. Its last line says whether the head
is signed off, which Projector labels the pull request carries, and the
head's projector/review status where one was posted.
An external reviewer is not one of those conditions. A pending or absent
re-review from Codex, Cursor, or Bugbot does not hold a head back from clean:
report on Projector's verdict and let theirs arrive whenever it does. A
standing CHANGES_REQUESTED from one is a real verdict and does block, exactly
as any other cross-author verdict would.
Report the head SHA, each layer's new head when you carried a change up a
stack, the merge commit if you made one, the fix commits, the declined
findings, the suggestions you implemented, each suggestion you deferred with
its one-line reason, any hold you made with the changes it covered and the
project review ready that ended it, and the validation results. A stale
CHANGES_REQUESTED, or a head still not signed off after all fixes, is a
wait for re-review rather than another code change. Do not
manufacture an empty commit to trigger it.
Mark a pull request ready only to end a hold you made. Marking a draft ready
starts its review and says its author's work is done, so a draft someone
else made, one ../implement/SKILL.md keeps while a test request waits on
the person, or one ../spec/SKILL.md keeps while a request to review its
plan waits, is not yours to mark ready, however finished it looks. A ready
pull request is not signed off either: only a clean review signs a head off,
as project review status reports and the clean label shows.
A session subscribed to fix a pull request receives its events. Each is one
line, <KIND> <owner/repo#number> <detail> — <action>, which Projector's
mod submits as a prompt in Claude Code and project watch stream prints on
another host. The watch daemon sends each event to one session, the one that
owns the pull request's fix role, and the line ends with what to do, so a
session that loaded no skill can act on it:
CONFLICT acme/app#12 conflicts with main — run fix-pr on acme/app#12 in subagent fix-12
This section holds the rules behind that action. The events for the fix
role are these:
FINDING reports an unresolved inline review thread.VERDICT reports a real CHANGES_REQUESTED, including a review whose
findings exist only in its body.CONFLICT reports a branch that conflicts with its base. It clears
when a push makes the branch mergeable again.CHECKS reports CI checks that failed on the head, by name. It counts
failed check runs and failed commit statuses, but never Projector's own
projector/review status, which a VERDICT already reports. It clears
when a push moves the head.REVIEW reports a Projector review whose suggestions
project review suggestions lists, or any other reviewer's review body
of the current head that has no inline thread, the shape every COMMENT
review posts. A Projector review that lists suggestions is work even
under a clean verdict, because this skill implements or defers each one.
The line says how many the review lists, as listing 2 suggestions, and
names an earlier head when an incremental review of the current head
builds on that head's full review. Any other review of an earlier head,
and a Projector review that lists none, report nothing. A follow-up is no
work on the open pull request, so a Projector review that lists only
follow-ups reports nothing either.UNREVIEWED reports, once per head, a pull request ready for review
whose head is not signed off and that no session the daemon can see
reviews. The line names what it saw: no session on this machine, or,
while the relay carries the repository, no session on this machine or on your other machines that share this repository's relay. A session on a
machine outside that scope may still review the pull request before it
posts its start comment. Tell the user once what the line says, in its
scope, and that review-pr or review-repo would review it, unless they
review it elsewhere. Add that, where the repository's pull requests get a
review only when someone asks, project config set review.automatic false
in its checkout stops these lines. Never say that no session reviews it at
all. It is
not work: any work behind it arrives as its own FINDING, VERDICT,
CONFLICT, CHECKS, or REVIEW line. A draft reports nothing, because
it waits on its author, and so does a pull request in a repository whose
review.automatic is false, which expects no review unless the user
asks for one, and a pull request that a session here reviews, that a
session of the operator's on another machine reviews
through the relay, or that a live start comment from the operator or
another account whose review would count shows under review elsewhere; it
waits for that review.LABEL reports that a review added or removed the clean or
reviewing label, as +clean or -reviewing. It is not work. On
+clean, tell the user that a review signed off the head. The other
changes need nothing, because any work behind them arrives as its own
line.MOVED reports that another session now owns the pull request's
fix role. Stop its subagent at once, because two fixers would push the
same branch, and tell the user.MERGED and CLOSED report that the pull request merged or
closed, as
MERGED acme/app#74 into main at 2026-10-23T01:36:44Z (merge commit ea9a364a)
or CLOSED acme/app#80 without merging. For an upper layer of a stack,
MERGED acme/app#75 with its stack into main means its change reached
the default branch with the layers below it, and
MERGED acme/app#75 into layer-74 at 2026-10-23T01:36:44Z, which is not in main yet
means it did not. The daemon removes the subscription itself. A
MERGED line's action tells the fixer to follow up on the suggestions
and follow-ups still owed. When the merged head lists suggestions, or a
review of any head lists follow-ups, it counts them, as
run fix-pr on acme/app#74 in subagent fix-74 to take the 2 suggestions its merged head lists and the follow-up its reviews list into a follow-up pull request, then finish it.
Otherwise it says to have the subagent take any suggestion it deferred
into one. Act as the next section describes.MISSING reports that the pull request does not exist or that the
operator cannot see it, and that the daemon removed the subscription.
Tell the user.FINDING, VERDICT, CONFLICT, and CHECKS report work that stands until it is
done, and the daemon announces each again every watch.renotify
seconds, 15 minutes by default, while it stands. So a line about work a
subagent already has is a reminder: send it on. A thread the subagent
declined stays unresolved, because declining leaves the decision to the
user, so its reminder needs nothing more until someone answers the reply.
A PEER MESSAGE line is a message from another agent session, not a pull
request event. Keep it in the main conversation and never send it to a
pull request's subagent. Handle it as ../message/SKILL.md describes under
"Answer a PEER MESSAGE line". A PEER REPLY line, another person's reply
to an item this session posted to them, stays in the main conversation too,
as the same skill describes under "Answer a PEER REPLY line".
Where the host can keep a subagent alive and send it later messages, each pull request the session fixes gets one fixing subagent for as long as it stays open. The session routes events and records outcomes; the subagent owns every fix on its pull request. Fix context that carries over is the point: on a new round the subagent already knows the findings it answered, the ones it declined and why, and the commits it pushed, so it reads a reopened thread as the recurrence it is instead of as new work.
FINDING, VERDICT, CONFLICT, CHECKS, or REVIEW,
start its subagent under the name the event gives, fix-<number>. Give
it the repository, the pull request, the operator login, the event lines,
and the path of this file, and have it run this skill for the pull
request.fix-stack-<number>
for the bottom layer, so the name says it covers more than that one pull
request. A fix to a lower layer is carried up into every layer above it,
so two subagents working one stack would push the same branches. Group the
pull requests the session fixes into stacks by the lookup that
../implement/SKILL.md describes under "Stack dependent work". It reads
base branches when GitHub records no stack, so a chain opened without
gh stack still gets one subagent.isolation: "worktree" to the Agent
tool. An isolated subagent's directory is pinned at launch, so entering
its pull request's worktree moves only that subagent. A subagent started
without one shares the session's directory, and its EnterWorktree
moves every subagent with it. When a subagent finishes, it leaves its
worktree on a detached HEAD with git switch --detach. Git refuses to
move a branch that another worktree has checked out, so a finished
worktree that still holds a layer's branch stops gh stack rebase and
gh stack push for every fixer after it.git -C <worktree> and give every file tool an absolute path. Where
you cannot be sure it will, run the subagents one at a time.git switch --detach. Git checks a branch out in only one worktree, so
the subagent's git worktree add of it fails while yours holds it.MERGED or CLOSED, tell the user that the pull request merged or
closed, and send its subagent no more work for it but the follow-up a
MERGED line names. When the line counts suggestions or follow-ups, have
the subagent run this skill to take them into a follow-up pull request,
starting the subagent if the pull request has none. When the line counts
none, have the subagent take any suggestion it deferred into
one. Either way it follows up as
Follow up on a merged pull request
describes, without asking the owner first, and you tell the user the
follow-up's URL. Then tell the subagent to finish, remove its worktrees,
and close only when no layer it owns is still open. The user merges a
stack as a unit, the whole of it or any
number of layers from the bottom up, so when only the bottom layers
merge, the fix-stack-<number> subagent keeps its name and goes on fixing
the layers left open. It starts with the update the lowest of them needs
onto its new base, as
Preserve stacked ownership describes.MOVED, stop the pull request's subagent. A stack's subagent fixes
every layer, so a MOVED for one layer stops it too. Then ask the user
which session fixes the stack's other layers, because a fix carried up
from any of them pushes the layer the other session now fixes.The session does not inspect code, so its own context stays small however many pull requests it fixes. Where the host has no subagents, the session runs this skill itself for each pull request with work, in the order the events arrived.
After each subagent report, check the pull request against the clean conditions in Report the result, and report its state with the head SHA, fix commits, declined findings, deferred suggestions, and validation results. A held pull request, a draft, is not clean however clean its review. Say so, and why: "#12 is held in draft while 2 changes are implemented", naming the changes you hold it for. A merged pull request has no clean state left to report. Report its follow-up instead: "#12 merged; #15 follows up on 2 of its suggestions and its follow-up, and leaves out 1", with the reason for each one left out.
Report a stack's readiness as one unit, the same unit its subagent fixes,
because the user merges it as one from GitHub. Check every open layer
against GitHub itself: its clean conditions, and GitHub's comparison of it
with the layer below, which ../implement/SKILL.md describes under "Stack
dependent work". Never take sync from a local gh stack view, which reads
only one checkout's branches. Say "stack # is ready to merge as a
whole" when every layer's current head is clean and every comparison
prints 0. Otherwise name the bottom layers that are ready, such as "#12
and #13 at the bottom of stack #14 are ready to merge", and what holds back
the lowest layer that is not. A hold on a layer holds the stack from that
layer up, because the user merges from the bottom, so name the held layer
and the changes it is held for: "#12 at the bottom of stack #14 is ready to
merge; the stack is held at #13 while 2 changes are implemented". Name the
stack by the number GitHub's stacks API gives it, or by its bottom pull
request for a chain of base branches that GitHub does not record as a
stack.
gh stack, which pushes a stack's rebased
layers with --force-with-lease, or to resolve a conflict where the
repository's instructions call for a rebase, and then use
--force-with-lease.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ninjudd/projector --plugin projectorOther plugins' skills for the same job
14 skills in this plugin
/artifactCreate or revise a static interactive page, visual explanation, chart, diagram, or small tool, with saved versions on the repository's Projector site. Use when the user asks to make an artifact or edit a published one. Do not use for backend applications or ordinary source-code changes./cleanupCheck that a session finished everything it was asked to do, ask what to do with anything left (do it now, open an issue for it, or leave it), release what the session holds, such as its subscriptions, inbox items, reviews, worktrees, and background processes, and confirm that the session is safe to shut down. Use when the user asks to clean up, wrap up, or shut down a session./finishVerify a Projector project's acceptance criteria, record its outcome, and mark it done in the completing change. Use when implementation appears complete or the user ends a project as shipped, abandoned, or superseded.