Apache-2.0updated 7d ago
Work through a change's task checklist against real code, one task at a time, checking each off only once it is actually done.
¿Qué puedes hacer con Openspec Apply Change?
name: openspec-apply-change description: >- Implements the pending tasks of an OpenSpec change against its proposal, specs, and design, looping until done or blocked. Use for "implement this change", "start/continue implementing", "work through the tasks", or "keep going on ". Can be invoked any time tasks exist, before or after other artifacts are finished, and interleaved with artifact updates — it is not phase-locked to a single point in the change's lifecycle. compatibility: "Requires the openspec CLI on PATH."
Implement OpenSpec change tasks
Work through a change's task checklist against real code, one task at a time, checking each off only once it is actually done.
Steps
-
Select the change. Use a given name; otherwise infer from context, or auto-select if only one active change exists. If ambiguous, run
openspec list --jsonand let the user choose. Always announce which change is in use. -
Check status:
openspec status --change "<name>" --json— readschemaNameand which artifact holds the tasks. -
Get apply instructions:
openspec instructions apply --change "<name>" --jsonReturns
contextFiles(artifact ID -> file paths), task progress, the task list with status, and a dynamic instruction. Ifstate: "blocked"(missing artifacts), suggest/openspec-continue-change. Ifstate: "all_done", congratulate and suggest/openspec-archive-change. -
Read every file listed under
contextFilesbefore starting — forrhdh-spec-driventhat is proposal, specs, design, and tasks. -
Choose an execution mode for this run, per
/rhdh-spec-driven-schema'sschema.yamlapply block: direct mode for mechanical, low-risk work; team mode (implementer + independent verifier subagents) for semantically complex, ADR-bound, or broad cross-layer work. Announce the choice and rationale before making changes; do not silently switch mid-run. -
Work through pending tasks until done or blocked: show which task is active, make minimal focused changes, flip
- [ ]to- [x]immediately on completion, continue to the next task. Pause on an unclear task, a design issue surfaced by implementation, an error, or user interruption. -
Journal as you go, invoking
/openspec-journal:mode.chosenonce at start,task.start/task.completeper task (or per assigned range in team mode),verifier.resultper verdict in team mode,task.blockedon pause,decisionfor load-bearing calls,handoffas the last line before stopping and the first line on resume. Also keep the default turn bookending (turn.start/turn.end) described there. -
On completion or pause, show status: tasks completed this session, overall progress (N/M), and either a suggestion to archive or an explanation of the pause with options.
Output
During implementation, show each task starting and completing. On completion, show final progress and readiness to archive. On pause, show the issue, 2-3 options, and "Other approach", then wait.
Guardrails
- Always read context files before starting.
- Keep changes minimal and scoped to each task.
- Pause on errors, blockers, or unclear requirements — never guess.
- Use
contextFilesfrom the CLI output; never assume file names. - If implementation reveals a design issue, pause and suggest an artifact update rather than silently diverging from the design.
Completion
Complete when every task attempted this session is either checked off with matching code changes, or explicitly reported as paused with the reason and options — never left silently half-done — and the apply-phase journal events for the session were written.
Instalación
Añade Openspec Apply Change a tu cliente. Elige el que uses.
npx skills add redhat-developer/rhdh-skillsInstalls every skill in the repository, then prompts for which to keep.
/plugin marketplace add redhat-developer/rhdh-skillsAdds the repository as a plugin marketplace; install individual plugins with `/plugin install`.
git clone https://github.com/redhat-developer/rhdh-skills
cp -r skills/refinement/openspec-apply-change ~/.claude/skills/A skill is a plain directory. Copy it into `.claude/skills/` in a project or in your home directory.
Puntuación
76 / 100
Buena