/pastor:review [branch or t-N]from pastor
Takes a pastor:spec plan branch through local checks, code review, and one fix task for Critical/Important findings, then opens a draft PR. Merges only on explicit request.
Ships in pastor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Takes a pastor:spec plan branch from complete to a pull request: the
repo's own check, a fresh review, one fix task for what the review finds
and nothing beyond it, then the PR. It merges only when asked.
REQUIRED BACKGROUND: plan-format.md for the
plan header, the Dispatch block and the ledger; the pastor skill (or
pastor --skill) for the CLI; pastor:dispatch's own checklist for how a
task is started and watched, reused here for the fix task.
Builds on: a code-review skill for the review itself (any will do).
t-N,
pastor task describe t-N --json: its repo, and its prompt, whose
git reset --hard origin/pastor/<name> line names the plan branch and
whose Read docs/plans/<date>-<name>.md line names the
plan. The task's own branch (the Dispatch command's --branch,
pastor/<name>-<n>) is a local branch on the machine that ran it and
was never pushed; do not fetch it. git fetch origin the plan branch
and check it out in a local worktree of this repo.Check: command here, in the local
worktree, never on the flock. Read the plan's ledger for a blocked:
line (a task that stopped on a question the plan never answered) and
any deferred line a previous review pass already left — this pass
does not relitigate what the last one decided.opus, or fable once the diff is
over about 1,500 lines.pastor:dispatch
runs it unchanged: dispatch's next-task.sh knows only the plan's
numbered ### Task <n>: headings and their Dispatch blocks, and the
prompt template sends the agent to the plan for its steps. With <n>
the plan's last task, append ### Task <n+1>: Fix the review findings to the plan, its steps every Critical and Important finding
verbatim — file, line, what is wrong — then the check and a commit,
and a Dispatch block whose command is the other tasks' with
--prompt-file docs/plans/<date>-<name>/task-<n+1>.md
and --branch pastor/<name>-<n+1>. Write that prompt file from the
prompt file template, so it
resets to the plan branch, reads Task <n+1>, and ends with Task <n+1>: complete in the ledger and a push. Give it a model one tier
above whatever the plan used for the task that wrote the finding
(skills/spec/SKILL.md's model table: sonnet → opus → fable).
Commit the plan and the prompt file, nothing else, and push the plan
branch: the plan is COMPLETE, so no task can push it now. Then run
pastor:dispatch on the plan: next-task.sh finds RUN <n+1>, and
dispatch's own checklist starts and watches it (its step 2's RUN
handling, step 3's wait, step 4's rules) through to COMPLETE.Task <n>: deferred (Minor): <finding>, the same
fetch-rebase-append-commit-push-retry-once dance any ledger line
uses, in the same commit as the fix task when there is one, so the
plan branch is pushed once, before the fix task starts.Task <n+1>: complete line is on the plan branch), review only the diff it
added, against the same findings it was asked to fix — a scoped
re-review, not a fresh one.docs/plans/<date>-<name>* from the
branch first, unless the plan header's "Before merging" line says the
repo keeps its plans: one commit on the plan branch, pushed from here —
the plan is COMPLETE again, so no task can push it, and a PR opened
before that push would carry the plan files in its diff. Then gh pr create: the body comes from the plan header, what the check and the
review ruled, and any deferred or still-open findings; a draft PR only
in step 4's last case. Ask for no reviewers — the repo's own gate does
that — and merge only when the user asks.pastor task close t-N --remove-worktree
for every t-<id> the ledger's ran as lines name, the fix task
included. If step 5 dropped the plan files, the ledger is gone from the
working tree: read it from the commit before that drop instead,
git show HEAD~1:<ledger path>. A dirty checkout is refused, and the
refusal says so; leave that one for the user rather than forcing it.Never merge the PR, add reviewers, or write code on the plan branch from
here: only the fix task, started and watched like any other dispatch
task, changes the repo's own files. The plan files are review's to commit
and push — the fix task's plan entry and prompt file, deferred ledger
lines, the drop before the PR — and only while no task may push the plan
branch: at COMPLETE, never while the fix task runs.
| Thought | Reality |
|---|---|
| "The check can run on the flock, same as the tasks did." | Run it here, in a local worktree: review's own check is a verification step, not another unattended task. |
| "A second fix task will clear up what the first missed." | One fix task, one scoped re-review. A re-review that still finds Critical findings gets a draft PR with them listed, not another task. |
"I'll write the fix task's prompt file and start it with pastor task run myself." | Put it in the plan first, as Task <n+1> with a Dispatch block, and let dispatch run it: next-task.sh only knows numbered tasks, and the prompt template sends the agent to the plan for its steps. |
"A t-N argument names the branch to review: the task's own." | The task's branch is local to the machine that ran it and was never pushed. The plan branch is in the task's prompt (origin/pastor/<name>), and that is what review fetches. |
| "Review never pushes the plan branch." | Review never pushes code. The plan files — the fix task's entry, deferred lines, the drop before the PR — are its own to commit and push, at COMPLETE, when no task can push the branch. |
| "Minor findings should block the PR too." | Only Critical and Important do. Minor findings go to the ledger as deferred and the PR still opens. |
| "I'll add myself or the user as a reviewer so someone double-checks." | Ask for no reviewers. The repo's own gate (CI, branch protection) is what checks a pastor PR. |
| "The PR should merge once it's green." | Review never merges on its own; the user decides when, by the repo's own rule. |
skills/spec/example/2026-09-26-nested-herdr.md, the same plan
pastor:spec and pastor:dispatch are tested against: its two tasks
(skills/spec/example/2026-09-26-nested-herdr/task-1.md and task-2.md)
give this skill a real Pastor header, Check command and Review Focus to
read through steps 1–3 against. Opening a real pull request from it, or
starting a real fix task, needs a flock and a GitHub remote this worktree
does not have; the checklist above is what a session with both runs.
What SKILL.md sets; muted values are Claude Code's defaults
opusxhighThree short reads, in order
Generated from the plugin's indexed repository (cacarico/pastor) — no native marketplace selected
npx claudepluginhub p/cacarico-pastor5 skills in this plugin
/connectorScaffolds a pastor connector: a poll or stream script plus pastor-connector.toml, tested with pastor connector try and pastor tick --dry-run. Use when the user wants to write a new pastor connector, feed a pastor job from an external source (a chat channel, an issue tracker, a feed, a directory, an API), or asks to scaffold pastor-connector.toml, a connector's poll.sh or stream.sh, or a poll or stream connector for pastor./dispatchRuns a pastor:spec plan's next task and watches it to a decision point: starts the next task, waits with no tight loop, and handles a blocked folder-trust prompt, a done task's outcome, a failed task with a known cause, and a stale task by fixed rules. Anything the rules do not cover goes to the user, never guessed. Disabled for automatic invocation: it starts agents on other machines, so a person picks when./Other plugins' skills for the same job