ワンクリックで
spectra
Spectra orchestrator — auto-detect which spectra sub-skill to invoke based on project state and user intent
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Spectra orchestrator — auto-detect which spectra sub-skill to invoke based on project state and user intent
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when 使用者說「自動推」「loop」「幫我把 change 推到 ready」「不在的時候繼續做」、或 routine fire 自動觸發(--unattended)。適用於推進既有 spectra change;NOT for 非 spectra 工作、一次性任務、interval 盲跑命令(用 /loop)、user 在場想逐項拍板(用 /goal)、或想設計新 loop(看 vendor/snippets/loop-engineering cookbook)。
依功能分類變更並逐步完成 commit,遵循 commitlint 規範。Use when 使用者說「commit」「提交」「分批 commit」,或 working tree 有多組 unrelated 變更需要分門別類提交。
Deprecated alias — 已改名 /change-loop(2026-07-05)。Use when 既有 routine 或舊指令仍呼叫 /loop-engineer 時轉發。
Analyze artifact consistency for a change
Implement or resume tasks from a Spectra change
Archive a completed change
| name | spectra |
| description | Spectra orchestrator — auto-detect which spectra sub-skill to invoke based on project state and user intent |
| effort | low |
When the user invokes /spectra without specifying a sub-skill, act as the orchestrator that determines the right workflow phase.
Run through these steps in order. Stop at the first match.
spectra list --json
Parse the result. Branch on the number of active changes:
Ask the user what they want to do. Use AskUserQuestion with these options:
/spectra-propose/spectra-discuss/spectra-ask/spectra-debugAfter the user picks, invoke the corresponding skill with the Skill tool.
Note:選到
Propose時,spectra-propose入口的 Step 0 會再問一次「A. Codex GPT-5.5 xhigh / B. Claude Code 繼續做」。orchestrator 不要在這裡先問,避免雙重詢問。
For each active change, run:
spectra status --change "<name>" --json
Summarize the state to the user:
📋 目前進行中的 change:
- <name>: <status summary> (e.g., "proposal ✓, tasks ✓, 3/8 tasks done")
Then determine the most likely next action based on state:
| State | Likely Action | Skill |
|---|---|---|
| Missing required artifacts (proposal, tasks) | 補完 artifacts | /spectra-ingest |
| All artifacts ready, tasks not started | 開始實作 | /spectra-apply |
| Tasks partially done | 繼續實作 | /spectra-apply |
| All tasks done, 人工檢查未完成 | 人工檢查 | /review-screenshot |
| All tasks done, 人工檢查全完成 | 歸檔 | Archive Flow(見下方) |
| Need to update from new context | 更新 artifacts | /spectra-ingest |
Present the recommendation and options to the user with AskUserQuestion:
/review-screenshotOnly show relevant options (e.g., don't show Archive if tasks aren't done). Always show the recommended action as the first option.
After the user picks, invoke the corresponding skill. If the user picks a skill that targets a specific change, pass the change name as argument.
If there are multiple active changes, first ask the user which change to work on (or if they want to start a new one), then proceed to Step 3 for the selected change.
Also check for parked changes:
spectra list --parked --json
If parked changes exist, mention them: "另外有 N 個暫存的 change:{names},需要取回嗎?"
當使用者選擇「歸檔」或說「archive」時,MUST 按順序執行:
檢查人工檢查狀態(kind-aware) — 讀取 tasks artifact 的 ## 人工檢查 區塊,依每條 item 的 leading kind marker 分流。
- [ ] / - [x] 行的 leading marker:[review:ui] 或 [discuss]。缺 marker 時依 Default Kind Derivation Rule 推導(proposal 含 **No user-facing journey (backend-only)** → discuss,其餘 → review:ui)。unchecked_review_ui 與 unchecked_discuss。unchecked_review_ui > 0 且 unchecked_discuss > 0(混合 kind):依序執行 — 先跑 spectra-archive 內建 Step 3.5「Discuss Items Walkthrough」(讓 Claude 主動準備 evidence 與使用者討論並寫 (claude-discussed: <ISO>) annotation),再用 AskUserQuestion 提示是否跑 /review-screenshot 處理 [review:ui] items。順序:discuss 先、review:ui 後 — 讓使用者見過所有討論點再進視覺驗收。unchecked_review_ui > 0:用 AskUserQuestion 詢問:
/review-screenshot[review:ui])unchecked_discuss > 0:直接進入 spectra-archive Step 3.5 流程(由 spectra-archive skill 內部處理);orchestrator 不需另外提示。[x] 或沒有人工檢查區塊 → 繼續。歸檔人工檢查 — invoke /review-archive all
#N 編號、kind marker、來源 change/spec 追溯)遷移到 docs/manual-review-archive.md歸檔 Spectra change — invoke /spectra-archive
openspec/changes/archive/這確保每次 archive 時,[review:ui] 與 [discuss] 兩 kind 的人工檢查結果都不會遺失,且可追溯到對應的 change 和 spec。
所有 Spectra workflow 在建立或更新 tasks artifact 時,MUST 在末尾附加人工檢查區塊:
docs/manual-review-checklist.md 取得共用清單#N 流水號(從 #1 開始)[review:ui] 或 [discuss] kind marker(緊接 #N 後第一個 token)— 使用者 round-trip 驗收 → [review:ui];Claude 主導的 evidence-based 討論 → [discuss]## 之後,格式:## 人工檢查
> 來源:`<change-name>` | Specs: `<spec-1>`, `<spec-2>`
- [ ] #1 [review:ui] 實際操作功能,確認 happy path 正常運作
- [ ] #2 [review:ui] 測試 edge case(空資料、超長文字、特殊字元)
- [ ] #3 [discuss] 確認 24h soak window 後 drift count 在預期範圍 @no-screenshot
來源 標註 change name,Specs 列出此 change 包含的 spec names#N 流水號用於溝通定位(如「#3 有問題」)、截圖命名、歸檔追蹤[review:ui] 走 /review-screenshot、[discuss] 走 spectra-archive Step 3.5 walkthrough## 人工檢查 區塊,更新而非重複新增;既有無 marker items 不強制 retrofit(依 Default Kind Derivation Rule 處理)/review-archive 遷移到 docs/manual-review-archive.md| Skill | 用途 |
|---|---|
/review-screenshot | 對 todo 項目逐一截圖附註,產出視覺驗收報告 |
/review-archive | 將已完成的檢查項目遷移歸檔 |
spectra list firstspectra CLI is not available, report the error and stop