Pipelines skill: outcome-first output, aligned review and loop guidance, operator material moved to docs
Rewrite format.md around turn files, the output.md order (# outcome, edge word, # handoff, detail), checks, configs, human stages and the land stage delivery gate (sh -c in a fresh detached worktree, clean checkouts incl. untracked, 64 KB output cap, opencode only). Align review guidance across practices, verification, orchestration and the feedback-loop example. Fix loop-limit semantics in control.md against runner.go, budget_tokens sizing, read for large inputs, blocked-else-error and one stage naming set. Move dated verification logs to docs/verification-history.md and brokered chat, TUI keys and harness internals to docs/operator-reference.md; label operator-only references in SKILL.md.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: Pipelines
|
||||
description: Use existing Pipelines workflows to run, inspect, wait, recover and deliver project work. Use only when the work belongs in an existing pipeline; authoring is a separate, explicit task.
|
||||
description: Use existing Pipelines workflows to run, inspect, wait, recover and deliver work, and author definitions when the user explicitly asks.
|
||||
---
|
||||
|
||||
# Pipelines
|
||||
@@ -34,63 +34,44 @@ explain the gap; ask before authoring. Do not add a task-specific pipeline as a
|
||||
|
||||
## Authoring
|
||||
|
||||
A definition is Markdown: `# stage <Name>` sections with `prompt`, `configs`,
|
||||
`tools`, `edges`, and `limits`/`checks` where required: every stage that can
|
||||
modify the workspace declares `checks` (commands on the `delivery=true` stage,
|
||||
otherwise `none: <reason>`), and every loop has `limits`. Start from
|
||||
`examples/` and read `references/practices.md` before writing prompts. Use stage
|
||||
names that describe the work:
|
||||
|
||||
`Plan` · `Code` · `Review` · `UIReview` · `Land` (`Prepare` and `Survey` are
|
||||
useful variants).
|
||||
Start from `pipelines templates` and `pipelines new NAME --template KEY`
|
||||
(`one-stage`, `two-stages`, `feedback-loop`, `human-decision`); 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; prompts do not need to
|
||||
repeat them. Only `# outcome` is parsed from `output.md`; everything else is
|
||||
free markdown. Use `links` and `memory` only when they clarify a handoff.
|
||||
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 in
|
||||
`references/practices.md` (errors block submit; `warning:` lines do not but should
|
||||
be fixed); `pipelines submit DRAFT` publishes a new immutable version.
|
||||
`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.
|
||||
|
||||
Schedules are separate saved run configurations: pipeline/version, prompt,
|
||||
workspace and other run options, plus timing. Never add `# settings` or schedule
|
||||
blocks to a workflow to arrange recurring work. One generic pipeline can have
|
||||
many independent topics and timers. Read `references/schedules.md` when the user
|
||||
explicitly asks to manage a schedule; scheduling alone is not workflow authoring.
|
||||
|
||||
## Turns and artifacts
|
||||
|
||||
Each visit has `input.md` (the run prompt; later visits add the previous body), `memory.md`
|
||||
(short essential memory inlined in the prompt: task, previous stage's `# handoff`,
|
||||
outcome ledger, changed files; 4 KB cap), `history.md` (completed turns in full,
|
||||
read on demand), `output.md`, and `private/`. Every run also has one shared
|
||||
`public/` directory, addressed by its absolute path; files there are visible to
|
||||
later stages and are the stage's real artifacts. `input.md`, `memory.md`,
|
||||
`history.md`, `output.md` and `session.html` are system evidence for auditing, not stage
|
||||
output.
|
||||
|
||||
## References
|
||||
|
||||
Read only what the task needs:
|
||||
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 and turn files | `references/format.md` |
|
||||
| Definition syntax, turn files, output.md, checks, landing | `references/format.md` |
|
||||
| Good practices (tokens, checks, prompts, loops) | `references/practices.md` |
|
||||
| Limits, tools and permissions | `references/control.md` |
|
||||
| Loop limits | `references/control.md` |
|
||||
| Stages, parallel work, recovery | `references/orchestration.md` |
|
||||
| CLI, storage and evidence | `references/operations.md` |
|
||||
| Verification and accounting | `references/verification.md` |
|
||||
| Verification and evidence | `references/verification.md` |
|
||||
| Failures | `references/debugging.md` |
|
||||
| Delivery and installation | `references/delivery.md` |
|
||||
| Harnesses and models | `references/harnesses.md` |
|
||||
| Notifications | `references/notifications.md` |
|
||||
| Independent saved run schedules | `references/schedules.md` |
|
||||
| Saved run schedules (never in a definition) | `references/schedules.md` |
|
||||
| Transfer and versions | `references/transfer.md` |
|
||||
| Hosting, auth and deployment | `references/access.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.
|
||||
|
||||
Reference in New Issue
Block a user