/pastor:connector [what the connector watches]from pastor
Scaffolds a pastor connector: a poll or stream script plus pastor-connector.toml, tested with pastor connector try and pastor tick --dry-run.
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.
Scaffolds a pastor connector — a poll or stream script plus its
pastor-connector.toml — and tests it before anyone installs it for real.
REQUIRED BACKGROUND: protocol.md, a copy of the manual's
connector section: the manifest schema, the stdin/stdout handshake, secrets
and redaction, and the CLI. This skill does not repeat it. For the rest of
pastor (jobs, machines, pastor tick beyond --dry-run), the pastor skill
(or pastor --skill).
Ask at most two things, and only what the request does not already answer:
Everything else — the id, its name and description, which config keys a job must pass in, the timeout — pick the simplest fit for what was asked and say so when you report back; do not ask about it.
Name it and place it. <id> is lowercase,
[a-z0-9][a-z0-9_.-]{0,63}, taken from what it watches (github-issues,
slack, local-files). Scaffold it in a directory of the user's own —
the current project, or a new <id>/ folder next to it — never straight
into ~/.local/share/pastor/connectors/; that is where connector link
or connector install puts it, once the user is ready (step 5).
Write pastor-connector.toml from protocol.md's
manifest section: id, name, version (start at 0.1.0),
description, a [connector] table with mode (poll or stream) and
a command pointing at the script, one [connector.config.<key>] per
value a job must supply (a channel, a repo, a directory, a feed URL —
required = true for what the script cannot run without), and one
[secrets.<NAME>] per secret from step 1. Leave authors, homepage,
repository and license out unless the user gives them; leave out
[[events]], [finish] and [watch] unless asked for a hook or a watch
line too.
Write the script — poll.sh for mode = "poll", stream.sh for
mode = "stream" — to protocol.md's contract exactly: read
one JSON handshake line from stdin (config, cursor, since), then
print item/log/cursor JSON lines to stdout.
cursor and since and simply emit
everything it currently sees each run: pastor drops item keys it has
already turned into a task, so that alone stops duplicates. Track
cursor/since only when re-fetching everything every run would be
slow or costly.$SECRET_NAME); never write a
value into the script or the manifest — the connector's .env is the
user's file, not this skill's to write.chmod +x the script. A relative program with a slash in command
(./poll.sh) means the connector's own file, run from its directory.Test it, in this order:
pastor connector link <path> registers the local directory under its
id; it prints the secrets still unset. Fill real values into
~/.config/pastor/connectors/<id>/.env yourself if you are the user
testing this by hand — the skill does not write that file.pastor connector try <id> --job <id>-test runs the command once and
prints its items and logs; it creates no tasks and saves no cursor.
try uses an empty config when no job file named <id>-test exists,
so write one first only if the manifest has required config it
needs to see. Fix the script or the manifest and re-run until the
items look right.pastor tick --dry-run, always write the throwaway job file,
~/.config/pastor/jobs/<id>-test.toml: a schedule (every = "1h" is
fine for a file you're about to delete), [connector] naming
use = "<id>" plus any required config, and a placeholder
[dispatch] prompt. tick validates a job strictly and rejects one
with no schedule.pastor tick --dry-run --job <id>-test shows what tasks a real run
would create, still writing nothing — but only for mode = "poll".
For mode = "stream", pastor tick with no daemon running reports
the job as failed, needing pastor serve, which step 6 forbids
starting; skip this step for a stream connector.repo,
prompt and schedule).Stop there. pastor connector install clones a pushed repository
from GitHub; that is the user's own call once the connector is committed
and pushed somewhere, not this skill's. This skill also never edits
.env, starts pastor serve, or writes a real (non-test) job.
example/local-files/ is a
small real poll connector: it watches a directory and turns each file in it
into one item, with no secrets and one required config key, dir.
| Thought | Reality |
|---|---|
"I'll put a secret's real value in .env so it's ready to test." | Don't write secret values; only declare their names in the manifest. Filling .env is the user's step. |
"connector try always needs a real job file." | Only when the manifest marks config required; otherwise --job need not name a file that exists. |
"I should run connector install to prove it works for real." | That clones from GitHub. Scaffolding and testing stay local until the user pushes it somewhere and installs it themselves. |
| "A poll script must track its own cursor to avoid duplicates." | pastor already dedupes by item key; keep a cursor only to avoid re-fetching everything each run. |
What SKILL.md sets; muted values are Claude Code's defaults
sonnethighThree 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
/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./pastorDrive pastor, a daemon that runs coding agents on a fleet of machines through herdr. Use when the user mentions pastor; when you have to run, watch or manage coding agents on other machines through pastor (dispatch a task, check its state, read its output, schedule a job, add a machine); or when you were yourself started by pastor as task t-N inside a herdr pane and need to know what is expected of you./Other plugins' skills for the same job