Skip to content
Back to skills

Run

ASecurity

One-shot feature pipeline — interview, spec, tickets, one OK, then parallel worktree agents implement, test, and merge unattended. Use when the user wants a feature taken from an idea to merged code in one approved run.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
toolsgogit

Works with

  • cli

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add andryorelabs/emet --skill run --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Run?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Run
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andryorelabs-run/badge)](https://www.skillsdirectory.com/skills/andryorelabs-run)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: run
description: "One-shot feature pipeline — interview, spec, tickets, one OK, then parallel worktree agents implement, test, and merge unattended. Use when the user wants a feature taken from an idea to merged code in one approved run."
---

## Modes

Parse `the user's arguments` for a leading `--draft`, `--dispatch <spec-id>` or `--quick`
flag and for `--no-promote` before anything else. When `the user's arguments` carries
`--no-promote` (anywhere among the leading flags, e.g. also `--dispatch <id>
--no-promote`), remove it from FEATURE and, once the spec id exists (end of
Phase 5, or at the start of `--dispatch`), run `emet promote --spec <spec-id>
--hold`. A session without `--no-promote` never holds the spec:

- **No flag** (default): Phases 1–5 in this session; with `handoff.autoChain` on,
  Phase 5 ends by starting wave 1 in a fresh session (`emet launch <spec-id>
  --wave 1`), and each later wave chains the same way (Phase 9, in
  `references/phases-9-handoff.md`); with it off, this
  session runs wave 1 and later waves are `$emet:run --dispatch <spec-id>` by
  hand. Always use `emet launch <spec-id> --wave <n>` for another session, never
  a bare `claude --bg`.
- **`--quick <feature>`**: a Quick run, one folded ticket and one landing. Read
  `references/phases-quick.md` instead of Phases 1–5;
  rejected with `--draft` or `--dispatch`.
- **`--draft <feature>`**: run Phases 0–5 and then stop (see the note at the
  end of Phase 5). Nothing gets dispatched; the run ends with a spec issue
  and its tickets sitting in the tracker, ready for `--dispatch` later, in
  this session or a fresh one.
- **`--dispatch <spec-id>`**: run Phase 0 (the repo gate), then skip straight
  to Phase 6 using `<spec-id>` as the frontier's parent. `<spec-id>` must
  already be a spec issue with tickets in the tracker's initial dispatch-
  eligible state (see `docs/agents/issue-tracker.md`) — created by a prior
  `--draft` run, in this session or another. This mode also resumes a run
  interrupted mid-wave: the frontier recomputes from the tracker's live
  state, so tickets already done don't re-dispatch.

## 0. Repo gate

Detect the repo root (`git rev-parse --show-toplevel`; if that fails, stop —
`$emet:run` needs a git repo). Read `emet.config.json` at that root.

**If it doesn't exist**, `$emet:run` has no safe default for this repo's
tracker, ticket shape, or worktree/concurrency settings — offer to run
`emet init` (autodetects package manager, trunk, and tracker kind; writes
`emet.config.json` plus `docs/agents/{emet,issue-tracker,triage-labels,
domain}.md`, leaving `TODO(emet):` markers for anything it can't infer),
then grill the user for whatever markers remain before continuing. Don't
dispatch against a repo `emet preflight` would reject.

If it exists, read it plus `docs/agents/{emet,issue-tracker,triage-labels,
domain}.md` at the root. Everything below defers to what those four files
(and `emet.config.json`) say for _this_ repo over the generic defaults
described here — this includes the literal tracker calls
(`docs/agents/issue-tracker.md`), which of `onStart`/`onPrOpen`/`onPrMerge`
this coordinator itself must write (`tracker.transitions` — see
`references/tracker-<kind>.md`, `<kind>` from
`emet.config.json`'s `tracker.kind`), and the branch/commit convention
(`ticket.branchPrefix`/`commit.trailer`).

`local`-tracker repos: tickets live under the main worktree's `.scratch/` and
every op is a literal `emet tracker` call (see the `tracker-local.md`
reference). With `landing.mode: merge` a wave lands as a local merge, not a PR.

`$emet:run` has one approval, enforced by a hook: until `.emet/runs/spec<id>/approval.json` exists, the guard denies every mutation except writes under `.emet/runs/**/draft/**`, so Phases 1–4 stay write-free by construction. The user approves with a prompt line that is exactly `approve <id>`; the `UserPromptSubmit` hook records it by the same hashing as `emet approve`. Running inside `/plan $emet:run` is the alternative: approve the plan there instead.

This only applies to the default and `--draft` modes. `--dispatch` skips straight to Phase 6, which has no write-free zone and no approval step.

All interaction with the user happens once, in Phase 4 (the plan approval).
After that, nothing here asks another question — flag what needs a human and
keep going; report everything at the end.

## Phase index

Load only what the current mode needs, when you reach it. Call `emet` from
`PATH`. Never `sleep`-poll or read a background task's `.output` file: end the
turn and wait for its completion notification.

- **Phases 1–5** (default and `--draft` only): interview → spec → tickets →
  the one approval → materialize. Read
  `references/phases-1-5.md` when you reach Phase 1.
- **What a "wave" is**: Phases 6–8 are the body of a loop, not three
  one-shot steps. **One wave = one dependency layer** — the set of tickets
  simultaneously unblocked, dispatched together, implemented in parallel,
  then integrated before the next layer's tickets (now unblocked in turn) get
  computed and dispatched. With `landing.unit: wave` each wave also lands alone
  (one PR, or one local merge when `landing.mode` is `merge`): 4 layers, 4
  integration branches, 4 landings. With `landing.unit: spec` (default) each
  wave merges into `spec/<id>` (`emet spec-branch`) and the spec lands once;
  read `references/phases-8-spec-landing.md`. Either way a wave's
  review stays its own and a repo's E2E singleton (if any) runs once per wave.
  Lifecycle: dispatch the unblocked tickets (workers implement in worktrees),
  integrate and review on the wave's integration branch, land it (PR, local
  merge, or `emet spec-branch integrate`), close the tickets and run `emet
  cleanup --run <runId>`, then hand off: `emet chain` starts the next wave in a
  new session when more tickets can run, otherwise the run ends with the final
  report. Details in `references/phases-8-landing.md`
  and `phases-9-handoff.md`.
- **Phases 6–9** (every mode): dispatch → per-worker implementation → wave
  close-out → wave close and hand off. Read
  `references/phases-6-7-dispatch.md` when you reach Phase 6
  (Phase 8 lives in `phases-8-review.md` and `phases-8-landing.md`, Phase 9 in
  `phases-9-handoff.md`; load each when you reach it and re-read one only when
  the compaction hook names it), along with `references/worker-prompt.md` (the dispatch prompt
  template) and `references/tracker-<kind>.md` (`<kind>` from
  `emet.config.json`'s `tracker.kind`) for this repo's literal tracker
  calls. Workers dispatch with `emet dispatch --role worker` and Phase 8's review runs with `emet review-run`; both resolve their model and effort from the `codex` section of `emet.config.json`.
- **`references/incidents.md`** — the evidence behind the five non-negotiables
  below (real run failures, with what broke and how). Never loaded during a
  normal run; read it only when someone asks why a rule exists.

## Language

Read `language.conversation` and `language.artifacts` from `emet.config.json`
(both default to `en`). Answer the user in `language.conversation`. Write code,
comments, commit messages, PR text, tickets and docs in `language.artifacts`.

## Five non-negotiables

These apply in every mode, can't be paraphrased away by a reference file,
and are restated here so they're never missed even by a run that only ever
loads `phases-6-7-dispatch.md`:

1. Never dispatch a ticket without both `emet claims --reserve` and
   `emet slots --acquire` succeeding for it first.
2. Never call either through an inline snippet (e.g. `bun -e`) — always the
   `emet` CLI, exactly as documented in `references/phases-6-7-dispatch.md`.
3. A worker never dispatches agents of its own — no spawned agents, no forks.
4. The coordinator is the single tracker writer: workers never write it. It
   writes a transition only where `tracker.transitions` names it
   `coordinator` or `worker` (`onStart`, written by the coordinator at
   dispatch) for that trigger — never where it's `automatic`.
5. Always report — success, failure, or blocked — never end a wave or a
   session silently.

FEATURE: the text the user gave after `$emet:run`

Files in this skill

  • SKILL.md7.2 KB
  • references/incidents.md12.1 KB
  • references/phases-1-5.md11.1 KB
  • references/phases-6-7-dispatch.md14.6 KB
  • references/phases-8-closeout.md12.9 KB
  • references/phases-9-handoff.md4.5 KB
  • references/reviewer-prompt.md2.2 KB
  • references/tracker-github.md3.1 KB
  • references/tracker-linear.md4.5 KB
  • references/tracker-local.md1.7 KB
  • references/worker-prompt.md7.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.