openspec-executing-plans
Use when an OpenSpec change already has one or more Superpowers plan files and implementation should proceed while syncing completed work back to tasks.md.
- License 许可
- MIT
- 最近更新
- 2026-09-09
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- openspec-executing-plans
- license
- MIT
- metadata
- { "author": "dyx", "version": "1.0.1" }
- description
- Use when an OpenSpec change already has one or more Superpowers plan files and implementation should proceed while syncing completed work back to tasks.md.
- compatibility
- Requires openspec CLI and Superpowers skills (subagent-driven-development or executing-plans).
03 SKILL.md 正文
Execute Superpowers implementation plans for an OpenSpec change, then sync completed tasks back to tasks.md.
Input: Optionally specify a change name (e.g., /opsx:executing-plans add-auth). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
Steps
-
Select the change
If a name is provided, use it. Otherwise:
- Infer from conversation context if the user mentioned a change
- Auto-select if only one active change exists
- If ambiguous, run
openspec list --jsonto get available changes and prompt the user to select
Always announce: "Using change: <name>" and how to override.
-
Check status and load artifacts
openspec status --change '<name>' --jsonRead the change status and locate the tasks file.
-
Detect plan files
Look for Superpowers plan files in
docs/superpowers/plans/. Match files where the change name appears as an exact segment in the filename:*-<change-name>.mdor*-<change-name>-tasks-*.md. Do not match partial prefixes (e.g., changeauthmust not matchauth-v2). -
Decision tree
Plan exists? ├─ YES + Superpowers available → Step 5 (execute) ├─ YES + Superpowers unavailable → STOP: suggest installing Superpowers, or use /opsx:apply for direct implementation ├─ NO + Superpowers available → Ask user: create plan first? │ ├─ Yes → Run /opsx:write-plan logic, then return to Step 3 │ └─ No → STOP: suggest running /opsx:write-plan └─ NO + Superpowers unavailable → STOP: suggest installing Superpowers, or use /opsx:apply for direct implementationSuperpowers detection: Attempt to invoke the Superpowers skill. If the call fails with "skill not found" or similar, treat as unavailable. For other errors (network, timeout, parameter errors), report the actual error to the user instead of silently treating as unavailable.
-
Execute plans via Superpowers
For each plan file (in order if multiple):
- Offer execution choice to user (ask once if multiple plans, with an "apply to all" option):
Plan: <filename> Tasks: N Execution options: 1. Subagent-Driven (recommended) — fresh subagent per task, review between tasks 2. Inline Execution — batch execution with checkpoints Which approach? (applies to all remaining plans if multiple) - Subagent-Driven: invoke
superpowers:subagent-driven-developmentwith the plan file - Inline Execution: invoke
superpowers:executing-planswith the plan file
If the skill call fails (Superpowers not installed): stop and display:
"Superpowers skill not available. Please install Superpowers, or use
/opsx:applyfor direct implementation without plans." - Offer execution choice to user (ask once if multiple plans, with an "apply to all" option):
-
Sync OpenSpec tasks.md
After execution completes (or partially completes):
a. Parse all plan files for this change. For each
<!-- openspec-task: LABEL -->annotation followed by a### Task N:section, record:- The OpenSpec task label (LABEL)
- Whether all steps in that plan task are checked (
[x])
b. Aggregate across files: Group plan tasks by OpenSpec label. A label is "fully complete" only when all plan tasks with that label are checked
[x]across all plan files.c. Update tasks.md: For each fully complete label, find the matching line in tasks.md by exact label match (e.g.,
- [ ] 1.1— label followed by a space, not prefix matching, so1.1does not match1.10) and change- [ ]to- [x].d. Report sync results:
## Task Sync Results Synced to tasks.md: - [x] 1.1 Create index.html - [x] 1.2 Write CSS Still in progress: - [ ] 2.1 Implement data model (3/5 plan tasks complete) Overall: 2/3 OpenSpec tasks completePartial completion: If only some plan tasks under a label are complete, do NOT mark the OpenSpec task as done. Report the partial progress.
-
Show final status
Display:
- Tasks synced this session
- Overall OpenSpec progress
- If all done: suggest
/opsx:verifythen/opsx:archive - If partially done: suggest continuing with
/opsx:executing-plans
Guardrails
- Change names must match
[A-Za-z0-9_-]+— reject any name with spaces, quotes, or special characters before substituting into shell commands - Superpowers is a hard dependency for execution — offer
/opsx:applyas the non-Superpowers alternative - Always sync tasks.md after execution, even if execution was partial
- Never mark an OpenSpec task complete unless ALL corresponding plan tasks are complete
- Do not modify any existing OpenSpec command files or Superpowers files
- Defer to Superpowers skills for git workflow conventions (worktree management, branch lifecycle)
04 同仓库更多 Skills
openspec-write-plan
Use when an OpenSpec change has proposal, design, and tasks artifacts ready and a Superpowers implementation plan needs to be created before execution.
openspec-verify-change
Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.
openspec-sync-specs
Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.
openspec-propose
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
openspec-onboard
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
openspec-new-change
Start a new OpenSpec change using the experimental artifact workflow. Use when the user wants to create a new feature, fix, or modification with a structured step-by-step approach.