/pastor:spec [topic or spec path]from pastor
Turns an idea or approved design into a plan that pastor can execute unattended. Each task specifies flock, machine, repo, branch, model, timeout, and a self-contained prompt. Plan, prompts, and ledger live on a plan branch for resumability.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Plan work so that pastor can run it, one task after another, on machines where no human is watching.
REQUIRED BACKGROUND: the pastor skill (or pastor --skill). This skill does not repeat the CLI.
Builds on: a brainstorming skill for the design and a plan-writing skill for the task breakdown (any will do). This skill adds what an unwatched agent needs on top of them.
A pastor task gets its prompt and nothing else. Nobody answers its questions: a question leaves it blocked until someone happens to attach. done means the agent went idle, not that the work is good. After close_done_after pastor removes a clean worktree and keeps one with unpushed work, but no later task sees it, so the pushed branch is the only state that reaches the next task. A task that has not pushed has not finished.
So every task in the plan must:
DONE.Follow these in order. Create a todo for each.
--repo is a path there, not here) and the command that checks the repo (make check, cargo test, ...), unless the repo says.pastor machine list --json and pastor flock list --json: flocks, tags, max_agents, which machines are connected or polling. With no head, the probe answer is enough. Never start pastor serve or install services.<name> is short kebab case. The plan branch is pastor/<name>. Files, all on that branch:
docs/plans/YYYY-MM-DD-<name>.md: the plandocs/plans/YYYY-MM-DD-<name>.ledger.md: the ledgerdocs/plans/YYYY-MM-DD-<name>/task-N.md: one prompt file per taskpastor task run --prompt-file, so quotes, backticks and $ need no escaping.git push origin HEAD:pastor/<name>. Do not push the default branch.complete. Tell the user not to push the plan branch while a task may still push it: the ran as t-M ledger line goes in between tasks.Never run pastor task run from this skill. Planning has no side effects on the fleet.
Name the model on every task with --model <name>, a name from [models] in the head's pastor.toml; do not rely on defaults. Leave --agent out unless the task needs another kind of agent: --agent claude would replace the agent the flock picks, which may be a definition that runs Claude on another account, and --agent-arg --model would add a second --model to a flock's own model. The names below assume [models] has fable, opus and sonnet; if it names them otherwise, use its names and say so in the plan header. A name [models] lacks is refused with unknown_model.
| Task shape | Model | Why |
|---|---|---|
| The plan holds the full code; one or two files; the test is named | sonnet | Transcription plus tests. |
| Several files, integration, following existing patterns | opus | Judgment across files; a wrong guess costs a retry on a remote machine. |
| Investigation, root cause, unknown scope | fable | Long unattended sessions that verify often; a wrong answer costs the most here. |
sonnet is the floor. A cheaper model takes more turns, and with nobody watching an agent that stalls becomes a stale or blocked task and a human's time. If the user's flock runs a different agent, use the [models] name for that agent's model and say so in the plan header.
--timeout bounds the task; past it the task goes stale. Give a sonnet transcription task 45m, a multi-file opus task 90m, an investigation 3h. A task that needs more than that is two tasks.
Read each prompt file as a stranger who has nothing else. Every answer must be yes.
git fetch origin and git reset --hard origin/pastor/<name>?Task N: blocked: <why> in the ledger, commit, push, stop?origin/pastor/<name> right before the ledger commit, push with git push origin HEAD:pastor/<name>, retry once on a rejected push, keep both sides of a ledger conflict, and end with DONE as the last line?For a plan with Order: waves, also:
origin/pastor/<name>, write its ledger line on its own branch and push only HEAD:pastor/<name>-task-<N>, with no rebase? Only merge tasks and single-task waves push the plan branch.complete before merging anything, and write Wave <W>: blocked: Task <N> <why> otherwise?git merge --abort and write Wave <W>: blocked: conflict in <paths> ... rather than resolve it?Wave <W>: blocked: <check> fails after merge rather than fix it?Wave <W>: merged (...) appended and committed on top of the merge commits, then pushed to the plan branch with no rebase, and DONE? Rebasing here would drop the wave's --no-ff merge commits.And for the plan as a whole:
pastor task run --help accepts.--branch is pastor/<name>-<N>, one per task, so a checkout left from the task before never blocks the next. A task in a wave with two or more tasks uses pastor/<name>-task-<N>; a merge task uses pastor/<name>-m<W>.CHANGELOG.md count), and none consumes what another in its wave produces.sonnet and timeout 30m.--repo '~/work/app' is fine; ~ is quoted so the local shell does not expand it.| Thought | Reality |
|---|---|
| "The agent can ask if it gets stuck." | Nobody is there. It goes blocked and waits for hours. |
| "It will obviously push when done." | Say it. An unpushed worktree is kept, but no later task sees it. Only the pushed branch reaches the next task. |
"haiku is enough for this." | Extra turns unattended cost more than the tokens saved. sonnet is the floor. |
| "Two tasks can share one branch name." | The previous task's worktree may still hold it. One --branch per task. |
| "I'll run the first task to check it works." | This skill plans. The user starts the tasks. |
| "Tasks 2 and 3 are independent, run them together." | Series first. Parallel waves are not supported yet. |
example/2026-09-26-nested-herdr.md is a full plan for a small real pastor change, with its ledger and prompt files next to it.
What SKILL.md sets; muted values are Claude Code's defaults
Three 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