Files
pipelines/internal/author/skill/SKILL.md
T
alan fc3bb5a004 Skill: chat tools, skill library, retry/worktree facts, current auth
Add references/chat.md (pipelines MCP chat tools incl. show_diff, sent
references, question forms, chat RPCs with send_at) and install it.
SKILL.md: run worktrees, retry modes and failed-only retry, wait through
human stages, server skill library, chat tools pointer.
operations/debugging: retry resumes the failed stage by default; interrupted
and canceled runs cannot retry; runs rm; search --debug-files; per-run
worktrees no longer future; session export for OpenCode/Claude/Pi and repair.
access: hashed web password, ./password, server-token, current proxy routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:05:57 +00:00

109 lines
5.5 KiB
Markdown

---
name: Pipelines
description: Use existing Pipelines workflows to run, inspect, wait, recover and deliver work, and author definitions when the user explicitly asks.
---
# Pipelines
Pipelines are reusable workflows for repositories. They are optional: direct
work, delegation and a pipeline are all valid routes. Use whichever finishes the
task with the least ceremony, and keep work small enough to verify.
## Using it
`pipelines list` shows the registered workflows; `pipelines runs` shows history.
Start a run with `pipelines run <name> "<task>"`, and inspect it with
`pipelines inspect <id>`.
After starting a run, always follow it with `pipelines wait <id>` until it
finishes; never start a run and move on without waiting. Run the wait as a
background command (one per run, or one loop over several ids) so the session is
notified the moment the run ends, then read its result with
`pipelines inspect <id> --json` and act on it: land, retry, or fix and report.
Do not poll with repeated `pipelines runs` calls, and do not tell the user a run
is done, or will be reported, without a wait covering it. `wait` keeps blocking
while a run is `waiting` on a human stage (`pipelines decide`, user's choice only).
A run started from a repository's main checkout runs in its own worktree
(`<repo>-runs/...`, branch `pipelines/run-...`); a failed run keeps that tree and
its commits. Read `pipelines inspect <id> --json` before deciding: resume the
failed stage (`pipelines retry <id>`; `--stage`/`--visit`, `--input-file`,
`--mode=restart` from entry), fix directly, or continue from the preserved
branch. Only `failed` runs can be retried; `interrupted` (server stopped
mid-run) and `canceled` runs need a new run or direct work on their branch.
## Use an existing pipeline
A request to run work is not a request to author. `pipelines list` and
`pipelines search` come before `pipelines new`. Use the closest existing
workflow and put task-specific requirements in the run prompt; a pipeline prompt
is deliberately generic and does not need to match every request word for word.
Never create, edit, submit, import, or publish a pipeline or version merely to
complete a run request. Those actions require an explicit request from the user
in the current conversation. If no existing pipeline can do the work, stop and
explain the gap; ask before authoring. Do not add a task-specific pipeline as a
"safer" alternative to direct work or an existing workflow.
## Authoring
Start from `pipelines templates` and `pipelines new NAME --template KEY`
(`research`, `task`); these fill in
the server's provider/model. Read `references/format.md` and
`references/practices.md` before writing prompts. Stage names: `plan` ·
`implement` · `review` · `ui-review` · `decide` (human) · `land`.
Keep prompts short and objective: what the stage should produce and any real
constraints. The runner enforces turns, tools and limits and explains the output
format; prompts do not repeat them. Only `# outcome` is parsed from `output.md`;
everything else is free markdown. There are no memory, links, input or output
blocks; stages communicate through `output.md` (`# handoff`) and `public/`.
`pipelines validate DRAFT` checks a draft, including the authoring rules
(errors block submit; `warning:` lines do not but should be fixed);
`pipelines submit DRAFT` publishes a new immutable version.
`pipelines help <command>` has flags.
Stage `tools` blocks may use `mcp:<server>` or `mcp:<server>/<tool>` for
Claude-only, allowlisted MCP access. Prefer read-only tools; unattended stages
deny every MCP tool not listed. The name is the Claude Code display name
(mapped internally to `mcp__<server>__<tool>`).
The server keeps a versioned skill library: `pipelines skills list`, `skills show
NAME [--version N]`, and `skills import FOLDER` (root `SKILL.md` with
`name`/`description` frontmatter plus `references/`, `scripts/`, `assets/`; import
only when asked). Stage use: `references/format.md`.
## In a Pipelines chat
A chat's agent has a `pipelines` MCP server: `show_file`, `show_image`,
`show_html`, `show_diff` (show the operator changes, e.g. before a pull request)
and `notify` (phone, only when the operator must look now). Show instead of
telling the operator a path. Details, limits, chat RPCs: `references/chat.md`.
## References
Read only what the task needs. Rows marked operator only are for setting up or
debugging the server; skip them when authoring.
| Need | Reference |
| --- | --- |
| Definition syntax, turn files, output.md, checks, landing | `references/format.md` |
| Good practices (tokens, checks, prompts, loops) | `references/practices.md` |
| Loop limits | `references/control.md` |
| Stages, parallel work, recovery | `references/orchestration.md` |
| Verification and evidence | `references/verification.md` |
| Failures | `references/debugging.md` |
| Delivery and installation | `references/delivery.md` |
| Notifications | `references/notifications.md` |
| Chat tools, sent references, questions, chat RPCs | `references/chat.md` |
| Saved run schedules (never in a definition) | `references/schedules.md` |
| Transfer and versions | `references/transfer.md` |
| Queue and work items | `references/work.md`, `references/queue.md` |
| CLI, storage and run evidence (operator only; not needed for authoring) | `references/operations.md` |
| Harnesses and models (operator only) | `references/harnesses.md` |
| Hosting, auth and deployment (operator only) | `references/access.md` |
Ask about real ambiguity, destructive actions or changes outside the request;
routine steps of an authorized task do not need another confirmation.