{"data":{"slug":"discovered-13847c7f0bd8a476955b80fc6fae0ab1242b97903497cfc3","title":"Openspec Update Change","summary":"Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Never edits code.","url":"https:\/\/skillshunter.net\/skills\/discovered-13847c7f0bd8a476955b80fc6fae0ab1242b97903497cfc3","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-13847c7f0bd8a476955b80fc6fae0ab1242b97903497cfc3","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-13847c7f0bd8a476955b80fc6fae0ab1242b97903497cfc3.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-13847c7f0bd8a476955b80fc6fae0ab1242b97903497cfc3\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"If the user names a store (a standalone OpenSpec repo registered on this machine), run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes. Without a store, commands act on the nearest local `openspec\/` root.","instructions":"---\nname: openspec-update-change\ndescription: Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the user wants to revise a change's plan, fold new decisions into it, or reconcile its artifacts after an edit. Never edits code.\nallowed-tools: Bash(openspec:*)\nlicense: MIT\ncompatibility: Requires openspec CLI.\nmetadata:\n  author: openspec\n  version: \"1.0\"\n  generatedBy: \"1.6.0\"\n---\n\nRevise a change's existing planning artifacts and keep them coherent. Never edit code.\n\n**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`). Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec\/` root.\n\n**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.\n\n**Steps**\n\n1. **If no change name provided, prompt for selection**\n\n   Run `openspec list --json` to get available changes sorted by most recently modified. Then use the **AskUserQuestion tool** to let the user select which change to update.\n\n   Present the top 3-4 most recently modified changes as options, showing:\n   - Change name\n   - Schema (from `schema` field if present, otherwise \"spec-driven\")\n   - Status (e.g., \"0\/5 tasks\", \"complete\", \"no tasks\")\n   - How recently it was modified (from `lastModified` field)\n\n   Mark the most recently modified change as \"(Recommended)\" since it's likely what the user wants to update.\n\n   **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.\n\n2. **Get the change's artifacts**\n   ```bash\n   openspec status --change \"<name>\" --json\n   ```\n   Parse the JSON to understand current state. The response includes:\n   - `schemaName`: The workflow schema being used (e.g., \"spec-driven\")\n   - `artifacts`: Array of artifacts with their status (\"done\", \"ready\", \"blocked\")\n   - `isComplete`: Boolean indicating if all artifacts are complete\n   - `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context. Use these instead of assuming repo-local paths.\n\n   The artifact ids and paths come from the active schema - do NOT assume them, and do NOT branch on hardcoded artifact names. Custom schemas must work unchanged.\n\n   The files to edit are `artifactPaths.<id>.existingOutputPaths` - the concrete files that exist on disk, already glob-expanded for glob artifacts (e.g. `specs\/**\/*.md`). Do NOT write to `resolvedOutputPath`: for a glob artifact it is still the glob pattern, not a real file.\n\n3. **Understand the request**\n   - If the user asked for a specific revision (\"the design now uses X\"), that is the starting edit.\n   - If they only said \"update\" \/ \"make this coherent\", treat it as a coherence review: read the existing artifacts and check them against each other for contradictions, gaps, and duplication.\n\n4. **Read and reconcile**\n   - Read the artifact(s) the request touches and the change's other existing artifacts.\n   - Apply the requested edit. Then check every other existing artifact against it - in ANY direction: an edit to a later artifact may require revising an earlier one, not only the other way around. Build order is a useful reading order, not a constraint on which artifacts may be revised.\n   - Note everything that is now inconsistent, missing, or contradictory.\n   - Revise only files that already exist (`existingOutputPaths`). Do NOT create artifacts that don't exist yet, and do NOT invent new files under a glob artifact - note them and point the user to `\/opsx:continue` to create them.\n   - If the change is already coherent, say so and make no edits.\n\n5. **Confirm and apply, one artifact at a time**\n   - Show each proposed revision and why. Write only after the user confirms.\n   - If the user rejects a revision, do not write it - leave that artifact unchanged.\n   - When a substantial rewrite is needed, get that artifact's rules and template first:\n     ```bash\n     openspec instructions <artifact-id> --change \"<name>\" --json\n     ```\n\n6. **Point to the next step (guidance only - NEVER act on it)**\n   - Artifacts still missing -> suggest `\/opsx:continue` to create them.\n   - Change already implemented (tasks checked off \/ already applied) -> the code may no longer match the revised plan; suggest `\/opsx:apply` to carry the delta into code.\n   - Everything done and implemented -> suggest `\/opsx:archive`.\n\n**Output**\n\nAfter each invocation, show:\n- Which artifacts were revised (and which proposed revisions were rejected)\n- Anything deferred to `\/opsx:continue` (not-yet-created artifacts or files)\n- Where the change stands and the recommended next command\n\n**Guardrails**\n- Planning artifacts only - NEVER edit implementation code. If the revised plan implies code changes, stop and point to `\/opsx:apply`.\n- Use the artifact ids and paths reported by `openspec status`; never branch on hardcoded artifact names.\n- Edit only the concrete files in `existingOutputPaths`; never write to a glob `resolvedOutputPath`.\n- Do not advance the build frontier: no new artifacts, no new files under glob artifacts - that is `\/opsx:continue`'s job.\n- Confirm every edit with the user before writing.\n- If the request changes the change's *intent* rather than refining it, recommend starting fresh with `\/opsx:new` (the \"Update vs. Start Fresh\" heuristic).\n","use_cases":["Revising a change's plan","Folding new decisions into an existing change","Reconciling planning artifacts after an edit"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/damacus\/skills\/blob\/5706f70c0058822adf29da9bd7620c7ea780b9d6\/skills\/workflow\/openspec-update-change\/SKILL.md","source_commit":"5706f70c0058822adf29da9bd7620c7ea780b9d6","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T08:55:07.000000Z","updated_at":"2026-12-02T09:15:01.000000Z","seo_title":"Update OpenSpec Change Planning Artifacts","seo_description":"Revise an OpenSpec change's planning artifacts while ensuring coherence. This skill is used when revising a change's plan, folding new decisions into it, or reconciling\u5b83\u7684","seo_keywords":["OpenSpec","change planning","update change","planning artifacts","openspec CLI"]}}