Skip to content
Back to skills

Np Flow Orchestrate

ASecurity

Use when several tickets of one kind of work should run at once, each in its own session and worktree, with one coordinator driving them. Triggers: "orchestrate my tickets", "run these tickets in parallel", "be my orchestrator", "/np-orchestrate".

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsrustgotestingcode-reviewgitsecurity

Security analysis

A100/100

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

Scanned November 29, 2026

npx -y skills add pat-browne/nervepack --skill np-flow-orchestrate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Np Flow Orchestrate?

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

Security grade badge for Np Flow Orchestrate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pat-browne-np-flow-orchestrate/badge)](https://www.skillsdirectory.com/skills/pat-browne-np-flow-orchestrate)

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: np-flow-orchestrate
description: 'Use when several tickets of one kind of work should run at once, each in its own session and worktree, with one coordinator driving them. Triggers: "orchestrate my tickets", "run these tickets in parallel", "be my orchestrator", "/np-orchestrate".'
---

# np-flow-orchestrate

One coordinator session drives many tickets and writes no code. Each ticket gets
its own child session and worktree, running the repo's dev flow. The user plans
inside each child. The coordinator runs the loop and pings the user only when
needed.

Announce: "Using np-flow-orchestrate."

## Setup (desktop app)

1. Start the coordinator in a worktree session.
2. Paste the prompt below, with the category of work filled in.
3. The coordinator lists the user's tickets and waits for a reply.

Then, for each chosen ticket:

1. Call `start_session` once, with a model. The brief names the ticket.
2. The brief tells the child to run the repo's plan/work entry point in its own
   worktree: [[np-flow-develop]], or the repo's own factory when it has one.
3. Paste the prime and capture blocks from `np-core-dispatch`
   references/nervepack-context.md into every brief. Each child recalls related
   nervepack context first and captures at each milestone.
4. Talk to children with the session tools (`send_message`, `get_session`,
   `list_sessions`).

## The prompt

```text
You are my orchestrator for [category of work]. No code here. Start one Claude
session per ticket. Each runs [the repo's plan/work entry point] in its own
worktree.

- Never let a session inherit your model. Pass the cheapest model that fits on
  every start. Hard calls come back to you as decision requests.

- Lead with what needs me, then in progress, then done.

- One decision at a time, in plain language, with your recommendation and the
  trade-off.

- I approve every plan and risky merge. Record only what I typed, then tell the
  child to continue. Never send me into a child session for something you can do.

- Check the diff, the merge gate and CI yourself. Never trust a child's summary.

- Before saying someone waits on me, read the latest PR and chat messages.

- Keep a ledger in memory (paused, waiting on me, done) so state survives
  compaction.

- Every brief tells the child to recall nervepack context before it designs,
  and to run /np-core-capture-learning at each milestone. A child is not done
  until its final report has a "Captured:" line.

- Every brief tells the child to send you each question, blocker and finding
  by SendMessage. Each message names the ticket, the ask, the options and the
  child's recommendation. The child waits for your reply. It asks you by
  SendMessage first. If that call errors, it asks in its own session and starts
  the message with `SendMessage failed:`.
  Relay its message to me as sent. Read its transcript to verify a fact it
  reports, and read more if anything looks wrong or missing.

- Small calls are yours, but tell me after you make them. Scope, security, or
  anything customers see comes to me.

List my tickets for this work, including ones that name me as owner in the
body, and wait for my reply.
```

## Worker models

The coordinator is top tier. It plans and decides, and does no worker task
itself. This section owns the rule for every coordinator, including
[[np-flow-speed]] and [[np-core-dispatch]].

- Never let a worker inherit your model. Set one on every subagent and every
  separate session you start.
- Pick the cheapest model that fits: Haiku for lookups and mechanical steps,
  Sonnet for implementation, research and review. The table is in
  [[np-flow-speed]].
- When the host's session-start tool takes a model argument, always pass it.
  An omitted argument inherits yours. If the tool offers no model argument, as
  with a forked session, start a fresh session or a subagent that takes one.
- Ticket children plan and implement, so start them on Sonnet unless the user
  names another model.
- A worker sends a hard call back as a decision request: the options and its
  pick. You decide, tell the worker, and record the call in the ledger.
- Run independent work in parallel, in one batch.
- Confirm or correct every worker result before it lands. A report is a claim.
- Form your own theory first, before a diagnosis worker reports.
- Send a wrong finding back to its worker with the evidence. Log each correction.

Full rules: references/worker-verification.md

## Close-out: capture, then archive

This section owns the rule for every coordinator, including [[np-core-dispatch]]
and [[np-flow-speed]]. A child that met its stated goal and sits idle gets closed
out, never left open. Confirm the goal from evidence, send it
[[np-core-capture-learning]], check the capture landed, confirm a clean pushed
worktree, then archive and mark its ledger row `done`. A child that ends on a
gate or question with no capture report stays open as `waiting on me`.

Full steps: references/close-out.md

## The loop

Bring these to the user:

| Child reports | Coordinator does |
|---|---|
| Plan ready | Summarize it with a recommendation. Relay only the user's words back. |
| Scope, security or customer-facing question | Queue it as one decision. |
| Risky merge | Ask for approval after your own checks. |

Handle these yourself:

| Child reports | Coordinator does |
|---|---|
| "Ready to merge" | Read the diff, the merge gate and CI yourself. |
| Small technical call | Decide, tell the child, list it in the next update. |
| Stuck or silent (ended its turn with no message to you) | Read its transcript and PR before you call it blocked. |
| Asked a question in its own session, not by SendMessage | Relay it to me. Send my answer to the child by SendMessage, and remind it to use SendMessage next time. If your SendMessage errors too, tell me and post the answer as a new prompt in the child's session, which wakes it. |
| Done, failed or ended with no `Captured:` line | Send it one message: run /np-core-capture-learning now. A session already gone gets a Haiku agent that captures from its transcript. |

Several decisions pending? Ask the most blocking one. Keep the rest in the
ledger as `waiting on me`.

## Before a worker PR merges

The coordinator dispatches these and relays every link:

- A code review (`/code-review`) in read-only subagents, one per PR or repo.
  Hard blocks go back to the worker. Fix each Soft warning or give a reason.
- [[np-kb-testing-ci]]: confirm a CI gate runs on the PR. No CI is no gate: tell the user.
  On the PR branch, run `git merge --no-commit --no-ff origin/<PR target>`, tests,
  and `git merge --abort`. A conflict goes to the worker. Other failures go to
  the user. Give the user every check and deploy link.

## The ledger

Keep one memory file with a row per ticket. Columns: ticket, child session,
worktree, PR, state, captured, next action.

States: `paused`, `waiting on me`, `in progress`, `done`. Update the row on every
state change. After a compaction, read the ledger before anything else.

`captured` holds the paths from the child's `Captured:` line, or `no`. A row
cannot move to `done` while it says `no`. Check it before you report a ticket
finished, and again when you close out the whole run, because a child can end
without warning.

## Every update to the user

1. Needs you: one decision, recommendation, trade-off.
2. In progress: one line per ticket.
3. Done: ticket, PR, merge state.
4. Calls I made: one line each, with the reason.

Form follows [[np-flow-concise-output]].

When a child's work reaches a deploy pipeline, the orchestrator owns its approval
gates: validator and critic, queued-run checks, and the push freeze. Read
references/deploy-gates.md before approving any gate.

## What this is not

- Not [[np-core-dispatch]]. Dispatch hands one task to one agent. This runs a
  fleet of user-planned tickets.
- Not [[np-flow-speed]]. Speed mode removes check-ins for one deliverable. The
  orchestrator keeps the user on every plan and risky merge.
- Not a coding session. A coordinator that edits code has stopped coordinating.
- Not a way past the repo's `CLAUDE.md`. Deploy rules still bind every child.

Files in this skill

  • SKILL.md7.1 KB
  • references/deploy-gates.md2.3 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 ai-agents →

Comments

Loading comments…

Newsletter

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