Pipeline skills for Oh My Pi (omp): a gated path from a vague request to parallel, critic-gated execution.
/skill:deep-interview → turns a vague request into an approved spec
(.omp/pipeline/specs/<slug>.md)
/skill:ralplan → turns an approved spec into a critic-reviewed PRD
(.omp/pipeline/prd.json) whose stories carry
depends_on, file ownership, and acceptance criteria
/skill:dag → executes the PRD (or an explicit task list) as a
dependency DAG of parallel subagents, with a critic
gate on every node before its dependents start
Ported from oh-my-musecode's Tier-0 pipeline (deep-interview → ralplan → ralph), using omp's ask, task/wait, eval agent(), and a custom critic
agent. All three skills set hide: true, so omp does not list them to the model
and nothing auto-fires them: you invoke them with /skill:<name>, and each tells
you what to run next, then stops. The full procedure of each is its
skills/<name>/SKILL.md; this file only summarises.
- omp 18.4 or newer (developed against 18.4.5; the
hubtool is gone since 18.3.0). The skills useask,task,wait,read,write,bash, andeval(Python, fordagand ralplan's validation step). - Not in plan mode: it makes subagents read-only and blocks writes to the working
tree. With isolation on, omp rejects the
agent()spawn and the run aborts; with isolation off no worker can edit a file, so every node that has to change one ends upblockedwith its dependentsskipped. The runner cannot detect plan mode, so each skill checks the system prompt and stops. Ifplan.defaultOnStartupis on, leave plan mode before running a skill. - A persistent Python kernel (the default
python.kernelMode: session): the dag cells share names.
Append to ~/.omp/agent/config.yml:
extensions:
- <path-to>/omp-skills<path-to> is wherever you cloned this repo. Restart omp, then check that
/skill: autocomplete lists deep-interview, ralplan, dag and /agents
lists critic (tools: read, grep, glob, bash). No index.ts or package.json
entry is needed: omp discovers skills/ and agents/ in any extensions: root.
A project's .omp/config.yml extensions: list replaces the user list instead
of merging with it: add this repo there too, or /skill:dag disappears and the
other two can resolve to same-named skills from other packs.
Do not copy agents/critic.md into ~/.omp/agent/agents/: a user-level agent
shadows the one here and drifts. Delete an old copy or symlink it to
agents/critic.md.
Pipeline state lives under .omp/pipeline/ in each project (add it to
.gitignore; it collides with nothing omp discovers under .omp/):
| Path | Written by | Contents |
|---|---|---|
.omp/pipeline/specs/<slug>.md |
deep-interview | specs; line 1 is <!-- APPROVED YYYY-MM-DD --> or <!-- UNAPPROVED DRAFT --> |
.omp/pipeline/prd.json |
ralplan; dag mirrors terminal statuses into it | the PRD |
.omp/pipeline/dag/<slug>.json |
dag | runnable DAG + per-node status (the state file) |
agents/critic.md is an adversarial reviewer with a structured output schema
(verdict: approve|revise, ranked findings, each optionally target: work|plan). It has bash for acceptance commands and read-only git, but omp does
not enforce that: it is a rule it follows, not a sandbox. Approve requires zero
blocker and zero major findings, and the runner recomputes the verdict from the
findings instead of trusting the critic's word. An answer that is not a clear
approve/revise plus a findings list never approves a node (omp drops the
output schema after three failed validations and passes the raw data through).
The schema in agents/critic.md and CRITIC_SCHEMA in skills/dag/runner.py
must stay identical.
To route critic reviews through a different model:
task:
agentModelOverrides:
critic: "openai/gpt-5.4:high"Details are in skills/dag/SKILL.md.
- A node starts as soon as its
depends_onnodes are approved, not in waves. Concurrent agents are capped bytask.maxConcurrency(omp's default is 32, so unset means 16: the runner never uses more than 16, and uses 4 only when it cannot read a positive number, for example omp is not onPATHor the setting is 0, which omp reads as unlimited). - Every node passes a
critic;revisefeeds the findings into a retry (default 2 attempts), then the node isblocked. A failed worker, or an unusable critic answer, is retried and never approves. A blocker or major finding withtarget: planblocks the node at once (plan defect:). Dependents of ablockedorskippednode areskipped; statuses arepending,running,review,done,blocked,skipped. filesis required on every node: the paths or globs it may edit,[]for a read-only node. Overlappingfilesbetween nodes with no dependency path are rejected unless workers are isolated (task.isolation.enabledand a git work tree), where omp applies a worker's patch before the critic reviews it: the gate stops dependents, not integration. Isolation is read withomp config get, that is from config.yml (global or project); a per-runomp --config <overlay>is not visible todetect_isolation(), so such a run proceeds without isolation and with the overlap check on (fails safe). Case is ignored, as on a default macOS volume.- State is saved atomically after every transition. Esc aborts the run (Ctrl+C
only clears the editor);
/skill:dag <state path>resumes it,donenodes are not re-run, and blocked nodes are retried only when you choose to. - A source is never run in place: a PRD or explicit file is copied to
.omp/pipeline/dag/<slug>.json, and an existing state file is resumed, never overwritten, unless you choose Restart. If the source's plan (goal, ids, titles, tasks, criteria, dependencies, files, agents; not statuses or approval stamps) changed since, dag says what changed and asks Restart or Cancel; to finish the old run pass its state path, and its statuses are then not copied into the re-planned PRD. A source that is no longer approved is refused.
skills/dag/example.json is a minimal approved four-node fixture (run it in a
throwaway directory: its nodes create greeting.txt, name.txt, and hello.txt).
Off by default. Two advisory checks use omp's judge_batch (TypeSafe System One):
a lint of criteria that name no command or pass condition, and a screen that
compares a worker's own evidence with each criterion. They need a TypeSafe
credential (TYPESAFE_API_KEY or /login typesafe); without one omp falls back
to chat models and the pack ignores those answers.
Enable per DAG with a top-level "typesafe" key in the DAG or PRD file (true, a
word such as "shadow", or {"lint": true, "screen": "off|shadow|enforce"}), or
for the session with env("OMP_SKILLS_TYPESAFE", "shadow") (or "enforce") in
an eval cell. A variable exported before launching omp does not work: omp starts
the eval kernel with an allowlisted environment, so TypeSafe stays off silently
(Cell 2 prints the mode it found). TYPESAFE_API_KEY is read by the omp host, so
exporting it does work. The checks fail open, redact secrets from the evidence
they send (by shape, so a secret with none, such as a bare 40-character hex string, still
passes), and never
approve anything: only the critic does. Run shadow first; criteria text and
evidence leave the machine.
uv run python -m unittest discover -s tests -v