本文へ移動
cccskills
無料GitHub で公開

orchestrate

Take an idea to a finished deliverable: brainstorm, PRD, then execute every story. --gated pauses at decisions; --plan-only stops at the PRD.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-coreスター 90(GitHub 90 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(3)

  • SKILL.md11.7 KB
  • agents/openai.yaml132 B
  • scripts/orchestrate-pipeline.mjs20.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Orchestrate — Idea → Finished Deliverable, One Command

Runs the whole arc through the core workflow runner (core/scripts/workflow-runner.mjs — Codex by default, Grok via --engine grok, Claude via --engine claude), launched detached in the background:

Capture → Brainstorm → Decide → PRD → Resolve → Execute.

Default: continuous, all the way to done. The run never pauses. Decision points take the recommended option and record it in the PRD's decision ledger (decidedBy: "auto (recommended)"); open questions with no recommendation become pre-flight investigation stories; a WEAK premise is logged loudly and continues (parking is a human call, never automated). After the PRD is finalized, the Execute phase runs every story in order — one agent each, sequentially, so later stories can build on earlier artifacts — and a blocked story stops the line (back-pressure) instead of letting dependents run against a hole. The run ends with the actual deliverables, and the human reviews the decision ledger and artifacts at close-out.

--gated: planning decisions (weak premise, approach, open questions) pause as durable human gates this session relays. Protocol: core/knowledge/public/hq-core/workflow-gates-spec.md.

--plan-only: stop at the execution-ready prd.json (the classic planning finish line); execution then happens later via /run-project in a fresh session.

Step 1: Parse & Resolve

  • First word matches a company slug in companies/manifest.yaml → anchor {co}, announce ("Anchored on {co}"). Otherwise resolve from cwd, else ask (one AskUserQuestion).
  • --board <id> → expanding an existing board idea.
  • --engine codex|grok|claude → which agent CLI runs the stages (default codex). claude runs each stage as a headless claude -p subagent — same HQ hooks, tiers map to opus (plan) / sonnet (exec).
  • --gated → pause at human gates. --plan-only → stop at the PRD.
  • Remaining text = the idea description. If empty, ask for it (fold into the same single question as company when both are missing).

Step 2: One-Batch Interview (only if genuinely unclear)

At most one AskUserQuestion batch, and only for what the description leaves genuinely open — if direction and constraints are already clear or don't matter for this idea, ask nothing and default direction to speed:

  1. Direction — A. Speed to ship · B. Quality/durability · C. Exploration (prove/disprove first) · D. Cost minimization
  2. Hard constraints? — free text (timeline, must-use tech, budget), or none

This is the last question before the finished deliverable in continuous mode.

Step 3: Preflight

Run these cheap checks; on any failure use the Fallback (Step 7):

command -v node
command -v {codex|grok|claude} # the chosen engine's CLI
test -f core/scripts/workflow-runner.mjs
test -f core/scripts/workflow-gate.sh

If the idea names a specific execution surface (an image tool, an external service), probe it with one minimal end-to-end use BEFORE launching — a 2-minute probe beats discovering a phantom tool three stories deep.

Step 4: Launch the Pipeline (detached)

Pick the run dir first — it is this run's identity. Then launch the runner detached, so a session restart, compaction, or crash cannot take the run down with it. The run dir is also the recovery handle: every finished agent records its result there, so a run that dies part-way can be resumed rather than restarted (see Step 6). {skill_dir} = this skill's directory; include "gated":true / "planOnly":true only when the flags were given:

RUN_DIR=workspace/tmp/workflow-runner/orchestrate-{co}-{ts}
nohup node core/scripts/workflow-runner.mjs {skill_dir}/scripts/orchestrate-pipeline.mjs \
  --args '{"company":"{co}","description":"{description}","engine":"{engine}","direction":"{direction}","constraints":"{constraints}","boardId":"{board id or omit}","gated":{true|omit},"planOnly":{true|omit}}' \
  --run-dir "$RUN_DIR" > "$RUN_DIR.out" 2>&1 < /dev/null &
disown

(Create the run dir's parent first if needed. Keep $RUN_DIR — Step 5 needs it.)

Step 5: Watch the Run

Watching is run-scoped: watch-run blocks on gates belonging to this run only and ends on its own when the run finishes. Repeat until it reports done:

bash core/scripts/workflow-gate.sh watch-run "$RUN_DIR" --timeout 900
  • exit 3 — the run finished. Go to Step 6.

  • exit 1 — timeout with the run still live. Check $RUN_DIR.out for progress (auto-decided and story ... passed lines are normal), then watch again. Execute-phase stories can take 15–30 min each on slow engines.

  • exit 0 — it printed a gate id (gated mode; continuous runs open no gates). Read workspace/gates/pending/{id}.json and ask the user with one AskUserQuestion for that gate: options from the gate file, the recommended one first and marked "(Recommended)", plus the gate's own defer/park option if present. Then answer:

    bash core/scripts/workflow-gate.sh answer {id} "{choice}" [--notes "..."]
    

    If the user's answer is not one of the offered options, record it faithfully with --freeform and put their wording in --notes. The paused run resumes on its own; never relaunch it.

Between events, stay quiet — at most one milestone beat per phase (Capture / Brainstorm / Decide / PRD / Resolve / Execute). If a TIMEOUT WARNING repeats for the same agent with no log growth, inspect its log before deciding to kill the process group named in the warning — never pattern-kill.

Step 6: Verify & Close

Parse the run's final JSON and independently verify — agent-reported success is a claim, not a fact:

  • status: "parked" (gated) → confirm the board shows exploring with a brainstorm_path; report plainly; done.
  • status: "prd_ready" (--plan-only) → verify prd.json parses, story count

    0, board prd_created, brainstorm promoted. Close with the decision ledger and: "To execute, start a fresh session and run /run-project {name}."

  • status: "delivered" → verify every path in deliverables[] exists (ls/file — check content type, not just the name: engines sometimes write JPEG data behind a .png name), prd.json parses with all stories passes: true, board prd_created, brainstorm promoted. Spot-check the primary artifact against the PRD's acceptance bar yourself (for visual work that means looking at it — do not inline large image bytes; the PreToolUse guard caps size and session count; delegate bulk image checks). Then close out:
**{name}** — delivered. {storiesExecuted}/{storiesTotal} stories,
{deliverables.length} artifact(s):
  - {deliverable path} ...

Decisions taken for you ({autoDecided} — review, veto anything):
  - {question} → {answer}
{Premise verdict: {premiseVerdict} — read the brainstorm before building
 further on this. (only when not STRONG)}

Send the primary artifact to the user when it is a viewable deliverable.

  • status: "execution_blocked" → report which story blocked and why, what completed (with artifacts), and offer: fix-forward in this session, or park. Do not offer --resume here. A blocked story is a story agent that answered successfully with status: "blocked", so its verdict is recorded like any other result — resuming would replay that same verdict and stop at the same story without launching an agent to retry it. Resume is for a story that DIED, not one that reported a blocker.
  • status: "execution_failed" → a story agent DIED rather than reporting a blocker (crash, killed process, a reply that could not be read even after a repair pass). failedStory names it and the error. Everything up to it is real and reported — the planning, and each story already delivered.

Resuming a run that died part-way

Use this for execution_failed (and for a run killed by a crash, a restart or a timeout). It is the wrong tool for execution_blocked — see above.

Every agent that finished recorded its result in the run dir, so a resumed run replays those instead of paying for them again. The runner prints the exact id on any run that lost an agent:

workflow-runner: 13 agent(s) finished successfully in this run and their results are recorded.
workflow-runner: re-run the SAME command with --resume <runId> to replay them instead of paying for them again.

Re-run the Step 4 command unchanged with --resume <runId> appended and a fresh --run-dir. Replay walks the recorded calls in order and stops at the first one that differs — so an unchanged script resumes exactly where it died, and an edited one replays up to the edit. Human gate answers stay durable independently, as they always were.

The source run must actually be dead: a run dir records its owning pid, and resuming a live one is refused, because it would replay the finished prefix and then start the in-flight agent a second time.

Prefer resume over a plain re-run: capture, brainstorm, PRD and every finished story are hours of agent work, and re-running them also re-does their side effects.

  • Write the auto-checkpoint thread file (type auto-checkpoint, trigger orchestrate-complete) so a fresh session can pick up.
  • Leave workspace/gates/answered/ entries in place (gated runs) — re-run memory. Do not clear while the project is live.

Step 7: Fallback — Guided Mode (missing node / engine CLI / runner)

Run the same arc sequentially in this session: execute .claude/skills/idea/SKILL.md, then .claude/skills/brainstorm/SKILL.md, then .claude/skills/prd/SKILL.md, then execute the stories in order yourself, honoring the same continuous/gated/plan-only semantics. Announce which mode is in use in one line at launch time.

Rules

  • Continuous by default — the run never pauses and ends at the deliverable. Every auto-taken decision lands in the PRD's decision ledger and is shown at close-out; a silent decision is a defect.
  • Never auto-park. A WEAK premise continues with a loud log line and a close-out flag. Stopping work is the human's call.
  • Execution is sequential with back-pressure. One agent per story, in order; a blocked story stops the line and is reported honestly — no faked acceptance criteria, no skipped gates on quality commands.
  • Gated mode: gates are the only mid-run questions, relayed one at a time via AskUserQuestion; answer files are written only via core/scripts/workflow-gate.sh.
  • Company isolation — all stage agents read/write only the anchored company's scope.
  • Verify independently — artifacts on disk (content-sniffed), PRD state, board state. For visual deliverables, look at the result before calling it done.
  • One pipeline per session. If gates from an unrelated run are pending at launch (workflow-gate.sh list), surface them first.

See also

  • /idea, /brainstorm — the planning stages this pipeline chains
  • /prd, /deep-plan — PRD generation
  • /run-project — story execution for --plan-only PRDs (fresh session)
  • core/knowledge/public/hq-core/workflow-gates-spec.md — the gate protocol
  • core/scripts/workflow-runner.mjs — the multi-engine workflow runner

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

accept

無料

Accept HQ membership invites from a magic link or raw token.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

adr

無料

Capture qualifying architecture decisions as ADRs in the right HQ or repo location.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

architect

無料

Find shallow modules and propose deepening refactors, ranked with file refs; never edits code. Use when code is hard to change or planning a refactor.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

Generate dark ASCII banner graphics for HQ and social launch assets.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

Compare approaches to best-in-class prior art, merge existing work, verify cruft removal, and recommend the most durable design before PRD work.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

indigoai-us のスキルをすべて見る

このスキルの問題を報告する