一键导入
openspec-bulk-apply-change
Use when multiple active OpenSpec changes should be applied concurrently in isolated worktrees with delegated verification and no merge.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when multiple active OpenSpec changes should be applied concurrently in isolated worktrees with delegated verification and no merge.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when authoring or reviewing specs, requirements, design docs, ADRs, tasks, glossary entries, domain terms, technical terms, or wording consistency across artifacts
Use when rules or instructions mention "adversarial-authoring", "adversarial authoring", "must use adversarial-authoring skill", "model council", "cross-model review", or "mixture of models"; coordinates adversarial authoring and review subagents and records council notes.
Use when documenting, drafting, reviewing, or updating architectural decisions, ADRs, decision logs, tradeoffs, rationale, consequences, alternatives, or architecture decision history.
Use when explaining existing code architecture, visualizing a new system before detailed design, mapping software boundaries, or creating C4-style diagrams in ASCII or Mermaid.
Use when drafting, reviewing, or improving Gherkin, Cucumber scenarios, BDD acceptance criteria, feature examples, Scenario Outlines, Backgrounds, Rules, Doc Strings, Data Tables, tags, or Gherkin embedded in Markdown.
Use when running OpenSpec propose, continue, apply, verify, archive, or worktree workflows where proposal artifacts, branches, merges, or archive timing affect git history.
| name | openspec-bulk-apply-change |
| description | Use when multiple active OpenSpec changes should be applied concurrently in isolated worktrees with delegated verification and no merge. |
| license | MIT |
| compatibility | Requires git, OpenSpec CLI, and OpenCode subagents. |
| metadata | {"author":"openspec","version":"1.0","generatedBy":"1.3.1"} |
Apply multiple active OpenSpec changes by creating isolated worktrees, dispatching delegated apply flows in parallel subagents, running verification in each flow, and reporting back without merging or archiving.
REQUIRED SUB-SKILL: Use openspec-git-discipline before any apply or worktree workflow.
/opsx-bulk-apply was invoked without an explicit single-change targetDo not use bulk mode when only one candidate change remains. Stop and tell the user to use /opsx-apply <change> instead.
Get candidate changes
Run:
openspec list --json
/opsx-apply <change>.Run git discipline checks
For each candidate change, verify apply is allowed before creating worktrees:
git status --short.openspec/changes/<change>/ has no uncommitted proposal files.main before applying from any branch or worktree.If any candidate fails the gate, exclude it from execution and report the reason. If fewer than 2 executable candidates remain, stop and report that bulk apply is not appropriate.
Collect change context
For each executable candidate change:
openspec status --change "<name>" --json
openspec instructions apply --change "<name>" --json
Then:
contextFiles.Create isolated worktrees
For each executable candidate change:
.worktrees/<change> unless the user specified another root.Dispatch subagents in parallel
For each executable candidate change:
Subagent prompt requirements:
openspec-git-discipline before applying./opsx-apply <change>./opsx-verify <change> after apply work is complete.Collect and normalize reports
For each executed change, capture:
complete, paused, or failedready, warnings, critical, or failedReport back without merging
Present a final bulk-apply report:
/opsx-verify result per changeEnd with: "No merge or archive was performed. Explicit user approval is required before any merge or archive."
| Situation | Action |
|---|---|
| 2+ active candidates | Bulk apply in isolated worktrees |
| Explicit list of 2+ changes | Bulk apply only those changes |
| 1 candidate | Stop and use /opsx-apply <change> |
Proposal not on main | Exclude or stop before apply |
| Blocked or all-done change | Skip execution and report status |
| Subagent finishes apply | Require /opsx-verify <change> before review-ready |
| User asks to merge/archive | Stop and require explicit follow-up approval |
| Mistake | Fix |
|---|---|
| Asking user to pick one change for a bulk request | Keep all executable candidates when 2+ remain |
| Running apply in the parent workspace | Dispatch one subagent per worktree |
| Processing changes sequentially | Dispatch independent apply flows in parallel |
| Reporting ready after apply only | Require /opsx-verify <change> first |
| Treating verify as permission to merge | Report only; merge needs explicit approval |
| Archiving after verify | Never archive during bulk apply |
.worktrees/ as the default worktree root unless the user specifies another location./opsx-verify in every delegated apply flow before reporting a change as review-ready.main.