Run pipeline

From indigoai-us/hq-core · View interactive version

Run pipeline is an AI agent skill from the GitHub repository indigoai-us/hq-core. Multi-project pipeline orchestrator — triage, execute, PR, review, deploy with safety gates

How to use this skill

Skill file

/run-pipeline - Multi-Project Pipeline Orchestrator

Orchestrate multiple PRD projects through the full lifecycle: triage, build, PR, review, merge, deploy, canary, done.

This command has no separate bash backbone in core. Do not invent one. After the user confirms order, run /run-project once per PRD.

Arguments: $ARGUMENTS

Step 1 — Parse Arguments

Parse $ARGUMENTS into:

Routing:

```

Usage: /run-pipeline <company> <prd1> [prd2...] [flags]

/run-pipeline --resume <pipeline-id>

/run-pipeline --status

Flags: --dry-run, --model MODEL, --timeout N, --verbose,

--auto-merge-all, --gate-all-merges, --skip-canary,

--skip-failed-projects, --auto-sst-deploy

```

Step 2 — Load Policies

Standard policy loading protocol:

  1. Read all files in companies/{company}/policies/ (skip example-policy.md)
  2. Read relevant files in core/policies/
  3. Count hard vs soft enforcement

Display: Loaded N policies (H hard, S soft)

Step 3 — Triage

List the PRDs in argument order. For each, read prd.json metadata if present (name, story count, repo). Show a table: sequence, risk if known, story counts, repo grouping.

Ask the user to confirm or reorder using AskUserQuestion:

If --dry-run was in the original args: stop after showing triage (do not launch).

Step 4 — Launch

For each PRD in the confirmed order, run /run-project with that PRD and any passthrough flags that /run-project accepts. Wait for each to finish before starting the next, unless the user asked to overlap.

Do not background a missing shell script. Do not write a replacement orchestrator script.

Display:

Running /run-project for {prd} ({index}/{total})

Step 5–8 — Per-project gates

/run-project owns build, PR, review, merge, and deploy gates for that PRD. Surface its questions to the user. Never auto-approve pre_deploy_prod or canary_failure.

Step 9 — Resume

When --resume <pipeline_id> is provided:

  1. Read workspace/orchestrator/_pipeline/{pipeline_id}/pipeline-state.json if it exists
  2. If it does not exist, say resume is unavailable without a prior pipeline state file, and stop
  3. If it exists, display current state and continue any unfinished PRDs with /run-project

Status Display

When --status is provided:

  1. List workspace/orchestrator/_pipeline/ if it exists
  2. For the newest (or named) pipeline, read pipeline-state.json when present
  3. If none exist, say there is no pipeline state on disk
  4. Display what you found and stop

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.