Skip to content

build(openspec): move OpenSpec to 2.0.0 and its skill layout #5078

Description

@dan-petty

Problem or Motivation

OpenSpec 2.0.0 was released on 2026-11-11. The baseline (#5065) takes 1.17.0, the newest 1.x. Renovate (#4893) will offer 2.0.0, and it needs project work. A trial on 2026-11-12 (isolated profile, update --dry-run, then update --force, on a copy of the committed skills) found:

  • Skills install once in .agents/skills/. Tools that do not read that folder (Claude Code) get directory symlinks. 17 file changes: .claude/skills/openspec-{apply-change,explore,propose,update-change} become symlinks to ../../.agents/skills/<name>; .kilocode/skills/openspec-*/SKILL.md are deleted (the .kilocode tree is gone); .agents/skills/.openspec-target changes from agents to three lines agents, claude own-files, kilocode; .agents/skills/openspec-propose/SKILL.md changes 8 lines and openspec-apply-change/SKILL.md 10 lines (not only generatedBy).
  • Effect on the gate (src/devops_cli/openspec/skills.py, gate.py; constants.CONST_OPENSPEC_GENERATED_GLOBS): missing_skill_trees fails the .kilocode/skills/openspec-*/**/* glob; skill_drift copies files as regular files, so the copy differs from the symlinked regeneration; the globs and the scratch copy must handle links. Git must commit the symlinks. ADR 0010, the openspec specs that name the skill trees, tests/support/fakes/openspec.py and the recorded runs change too. Also confirm that Kilo Code reads .agents/skills/ before the .kilocode tree goes (change 2333 added it).
  • The /opsx:* slash commands are removed. No direct effect: delivery=skills already writes no command files.
  • The delivery setting is no longer needed. config set delivery skills still exits 0 on 2.0.0, so CONST_OPENSPEC_ISOLATED_SETTINGS keeps working, but it should drop the setting.
  • openspec update removes files of older versions and overwrites edits in .agents/skills/ (it reported the committed apply-change and update-change skills as edited).
  • Amazon Q Developer support is removed. No effect.
  • Fix: openspec instructions apply no longer cuts off multi-line tasks in tasks.md.

Upgrade guide: https://openspec.dev/docs/upgrade-to-2. Release: https://github.com/Fission-AI/OpenSpec/releases/tag/v2.0.0

Research of 2026-11-12 (research-openspec, breaking."2.0.0").

Proposed Solution & Architectural Design

  • Pin 2.0.0 in tools.lock and src/devops_cli/tools_lock/openspec/ (npm lockfile by the runbook in the tools.lock header).
  • Change the gate (skills.py, gate.py, CONST_OPENSPEC_GENERATED_GLOBS) for the shared .agents/skills/ layout and its symlinks; drop the delivery setting.
  • Keep the edited skills: move the project edits out of the generated files, or record why update may overwrite them.
  • Confirm that Kilo Code reads .agents/skills/.
  • Update ADR 0010, the specs that name the skill trees, the OpenSpec fake and the recorded runs (recorded inside pytest).

Done when devops openspec check passes with 2.0.0 and the skills are committed in the 2.0.0 layout.

Target Subsystem

SDLC, Git & PR Governance

Existing Tool Considered

OpenSpec itself (openspec update). The work is the project's gate code around it.

Source: #4893

Alternatives check of 2026-11-15: in-use.
The repository already uses this tool.
Tool: Fission-AI/OpenSpec (https://github.com/Fission-AI/OpenSpec), MIT, last activity 2026-11-14, maintained.

Proposed design

Problem statement

OpenSpec 2.0.0 (released 2026-11-11) installs the skills once in .agents/skills/ and links them into the folders of tools that need their own path, removes the per-tool copies and the /opsx:* commands, and retires the delivery setting. The project gate, the OpenSpec fake and the recorded runs still assume the 1.x per-tool copies. The change pins 2.0.0 and makes the gate, the tests, the documents and the committed skills match the shared layout; it keeps Kilo Code's .kilocode/skills path as a directory link because no source confirms that Kilo Code reads the shared folder, and it keeps project instructions out of the generated skills.

Acceptance criteria

Requirement: Pinned version

tools.lock and src/devops_cli/tools_lock/openspec/package.json SHALL pin OpenSpec 2.0.0, with a lockfile entry that holds its integrity hash.

Scenario: Pinned entry

  • WHEN a test reads the [npm.openspec] version, the package.json dependency and the lockfile entry
  • THEN the lock and the manifest give 2.0.0 and the lockfile gives the package's integrity hash.

Requirement: Shared target file

The committed .agents/skills/.openspec-target SHALL hold the three lines agents, claude own-files and kilocode.

Scenario: Target file

  • WHEN a test reads the committed .agents/skills/.openspec-target
  • THEN it holds exactly those three lines.

Requirement: Generated globs

CONST_OPENSPEC_GENERATED_GLOBS SHALL name .agents/skills/openspec-*/**/*, .agents/skills/.openspec-target, .claude/skills/openspec-* and .kilocode/skills/openspec-*.

Scenario: Glob list

  • WHEN a test reads the constant
  • THEN it holds those four patterns and no .kilocode/skills/openspec-*/**/* file pattern.

Requirement: Present skill tree

missing_skill_trees MUST count a directory link as a present skill tree.

Scenario: Linked tree

  • WHEN a tree holds .claude/skills/openspec-apply-change and .kilocode/skills/openspec-apply-change as links to .agents/skills/openspec-apply-change
  • THEN missing_skill_trees returns no pattern.

Requirement: Drift copy of links

skill_drift SHALL recreate each committed directory link as a link in its scratch copy and compare its target.

Scenario: No false drift

  • WHEN the committed skills hold the .claude and .kilocode directory links and the regeneration keeps them
  • THEN skill_drift returns no message for either link.

Requirement: Committed links

Git MUST hold each .claude/skills/openspec-* and .kilocode/skills/openspec-* entry as a symbolic link.

Scenario: Index mode

  • WHEN a test reads the mode and blob of .claude/skills/openspec-apply-change and .kilocode/skills/openspec-apply-change in the index
  • THEN each mode is 120000 and each blob holds ../../.agents/skills/openspec-apply-change.

Requirement: Kilo Code path

The regeneration SHALL recreate .kilocode/skills/openspec-* as directory links after openspec update --force.

Scenario: Kilo Code link

  • WHEN devops openspec regenerate runs on a tree where the update removed .kilocode/skills
  • THEN .kilocode/skills/openspec-apply-change is a link to ../../.agents/skills/openspec-apply-change.

Requirement: Gate result

devops openspec check SHALL pass on a tree in the 2.0.0 layout.

Scenario: Clean checkout

  • WHEN the check runs on a tree in the 2.0.0 layout
  • THEN it exits 0 and reports no missing skill tree and no skill drift.

Requirement: Isolated settings

CONST_OPENSPEC_ISOLATED_SETTINGS MUST NOT hold the delivery setting.

Scenario: Isolated profile

  • WHEN the code sets the isolated profile and runs a regeneration
  • THEN it makes no config set delivery call and the regeneration still succeeds.

Requirement: Unedited generated skills

The project SHALL keep no project-specific edit inside a skill file that openspec update writes.

Scenario: Regeneration

  • WHEN openspec update --force runs under the isolated profile on the committed tree
  • THEN each .agents/skills/openspec-*/SKILL.md holds generatedBy: "2.0.0" and skill_drift reports no difference.

Requirement: Fake layout

The OpenSpec fake SHALL write the 2.0.0 layout for update --force.

Scenario: Fake update

  • WHEN a test runs openspec update --force through the fake
  • THEN the fake writes .agents/skills/ with the three-line .openspec-target, creates the .claude links and removes .kilocode/skills.

Requirement: Recorded runs

The recorded runs SHALL hold the answers of OpenSpec 2.0.0.

Scenario: Record version

  • WHEN a test reads the version of the record
  • THEN it gives 2.0.0 and each command that the gate and devops openspec archive run has an entry.

Requirement: Documents

ADR 0010 and each spec that names a skill tree SHALL name the shared .agents/skills/ layout and the .claude and .kilocode links.

Scenario: Document text

  • WHEN a test searches the ADR and the OpenSpec specs
  • THEN each names .agents/skills/ and none names .kilocode/skills/openspec-* as a tool-written copy tree.

Existing Tool Considered

OpenSpec 2.0.0 (https://github.com/Fission-AI/OpenSpec, MIT, last activity 2026-11-14, maintained) is in use and performs the layout move itself: one skill copy in .agents/skills/, directory links for tools that need their own folder, removal of the per-tool copies and the /opsx:* commands, and retirement of delivery. It lacks the project's gate rewrite: missing_skill_trees and skill_drift in skills.py must count and copy directory links, and CONST_OPENSPEC_GENERATED_GLOBS must name the link entries. It removes .kilocode/skills/ and creates no link for Kilo Code, and no source confirms that Kilo Code reads .agents/skills/, so the project recreates that link after each update. It offers no way to keep edits inside the skills it installs, so the project keeps its instructions in openspec/config.yaml and in differently named skills. The project's own artifacts still need the manual change: ADR 0010, the specs that name the skill trees, tests/support/fakes/openspec.py, the recorded runs and the tools.lock pin.

Key questions

  • Which release moves the skills to the shared .agents/skills/ layout, and on what date?: OpenSpec 2.0.0, released on 2026-11-11 (the release page timestamps it 11 Nov 22:41), installs one skill copy in .agents/skills/, links it into the folders of tools that need their own path, removes the /opsx:* commands and retires the delivery setting. The upgrade guide states the same move and the removal of the per-tool copies. [sources: https://github.com/Fission-AI/OpenSpec/releases/tag/v2.0.0, https://openspec.dev/docs/upgrade-to-2]
  • How does the gate treat a directory link under .claude/skills/?: It counts the link itself as a present skill tree: missing_skill_trees tests is_symlink() or exists() on the matched entry, because is_file() is false for a link to a directory and the ** pattern does not descend through the link into the shared tree. generated_files records a link as its target, so the drift check compares the link too. (best practice) [sources: src/devops_cli/openspec/skills.py:51, src/devops_cli/openspec/skills.py:57, src/devops_cli/config/constants.py:5559]
    • Chosen: Follow each link and count it as present. The tool writes the link, so the gate must check what the tool writes.
    • Rejected: Replace the links with regular copies. openspec update writes the links again, so the gate fails on the next regeneration.
    • Rejected: Leave .claude out of the globs. Claude Code reads that folder, so a deleted link would go unseen.
  • How does the scratch copy of skill_drift reproduce a committed directory link?: It recreates each committed link with os.symlink and the same target before the regeneration, and copies each regular file as a file. generated_files returns a link as its target and a file as its bytes, so a wrong target is drift and a link written as a regular file is not a false difference. (best practice) [sources: src/devops_cli/openspec/skills.py:61, src/devops_cli/openspec/skills.py:69, src/devops_cli/openspec/skills.py:25]
    • Chosen: Recreate each link as a link. The scratch tree then holds the same entries as the committed tree, so the drift result is true.
    • Rejected: Write the target of each link as a regular file. This is the current code. The regeneration writes a link and the copy holds a file, so every link reports drift.
    • Rejected: Skip the linked trees in the copy. A skill that the copy leaves out reads as unexpected and reports drift.
  • Where do the project instructions that would otherwise be edited into a generated skill go?: They stay in openspec/config.yaml under context and rules, which every skill reads through openspec instructions, and in project skills with a different name such as .agents/skills/devops-openspec-new/, which update never touches. The generated skills keep only the tool's text; the 1.17.0 files differ from 2.0.0 only in the tool's own wording and generatedBy, so the bump replaces them and loses no project edit. (best practice) [sources: docs/adr/0010-openspec-is-the-spec-and-change-proposal-layer.md:152, openspec/config.yaml:3, openspec/config.yaml:9, https://openspec.dev/docs/upgrade-to-2]
    • Chosen: Keep the instructions in openspec/config.yaml and a differently named skill. update never writes those, so a regeneration cannot lose the instruction.
    • Rejected: Reapply the edits after each update. Each run needs a manual step, and the gate reports drift until a person does it.
    • Rejected: Keep the edits and accept the overwrite. update replaces a built-in skill folder whole and keeps no copy, so the next run removes the edit.
  • Which patterns does CONST_OPENSPEC_GENERATED_GLOBS hold for the shared layout?: It holds .agents/skills/openspec-*/**/*, .agents/skills/.openspec-target, .claude/skills/openspec-* and .kilocode/skills/openspec-*. The .claude and .kilocode patterns match directory links, not files, so no .kilocode/skills/openspec-*/**/* file pattern stays. (best practice) [sources: src/devops_cli/config/constants.py:5559, src/devops_cli/openspec/skills.py:29, https://openspec.dev/docs/upgrade-to-2]
    • Chosen: Name the shared tree, the target file and both link folders. These are the entries that 2.0.0 writes and that the project keeps for Kilo Code.
    • Rejected: Keep the .kilocode/skills/openspec-*/**/* file pattern. 2.0.0 removes those files and the project keeps a link there, so missing_skill_trees fails on a tree that is gone on purpose.
    • Rejected: Drop the .kilocode pattern. ADR 0010 records that Kilo Code reads .kilocode/skills, so a deleted link would go unseen.
  • How does Kilo Code keep its skills when 2.0.0 removes the per-tool copies?: No source confirms that Kilo Code reads .agents/skills/: ADR 0010 records that it reads .kilocode/skills, and the change that added that tree records that the Kilo Code documents name .kilocode/skills and not .agents/skills. The project therefore keeps the path and makes .kilocode/skills/openspec-* directory links to ../../.agents/skills/<name> after each openspec update --force, which is the documented way to point a tool that reads only its own folder at the shared copy. (best practice) [sources: docs/adr/0010-openspec-is-the-spec-and-change-proposal-layer.md:36, openspec/changes/archive/2026-10-27-2333-kilo-openspec-skills/proposal.md:25, https://openspec.dev/docs/upgrade-to-2]
    • Chosen: Link Kilo Code's own folder to the shared copy. ADR 0010 records that Kilo Code reads .kilocode/skills, no source says it reads .agents/skills/, and the upgrade guide documents a link for a tool that reads only its own folder.
    • Rejected: Drop the .kilocode tree and rely on native .agents/skills/ support. No source confirms it, and a wrong guess leaves Kilo Code with no skill.
    • Rejected: Keep copies in .kilocode/skills. openspec update removes the per-tool copies, and a copy would drift from the shared tree.
    • Rejected: Wait for the Kilo Code documents before upgrading. This blocks a released upgrade and loses the skill meanwhile; the link works whether or not Kilo Code also reads the shared folder.
  • Does CONST_OPENSPEC_ISOLATED_SETTINGS keep the delivery setting?: No. 2.0.0 retires the setting (everything is skills), and the CLI still accepts config set delivery skills with exit 0, so removing the call from the isolated profile breaks no run. (best practice) [sources: src/devops_cli/config/constants.py:5551, src/devops_cli/openspec/tool.py:42, https://openspec.dev/docs/upgrade-to-2, https://github.com/Fission-AI/OpenSpec/releases/tag/v2.0.0]
    • Chosen: Drop the setting from the isolated settings. 2.0.0 retires the setting and writes no command files, so the call has no effect.
    • Rejected: Keep the setting. It sets a value that the tool no longer reads, and a later release may refuse it.
  • Which delivery names in the code are not the OpenSpec setting?: The webhook delivery names at src/devops_cli/server/routes/webhooks.py:296, :644 and :647. The change leaves them alone. [sources: src/devops_cli/server/routes/webhooks.py:296, src/devops_cli/server/routes/webhooks.py:644, src/devops_cli/server/routes/webhooks.py:647]
  • What does the OpenSpec fake change for 2.0.0?: _update writes the .agents/skills/ files, writes the three-line .openspec-target, creates the .claude directory links and removes .kilocode/skills with the other old per-tool copies. regenerate_skills recreates the .kilocode links after the update. The recorded runs are made again against 2.0.0, whose version the record holds. [sources: tests/support/fakes/openspec.py:162, tests/support/fakes/openspec.py:181, tests/support/openspec_recording.py:59, tests/fixtures/openspec_runs/recorded_runs.json]
  • Does this item still depend on build(deps): take every safe version update before Renovate #5065?: No. build(deps): take every safe version update before Renovate #5065's change is archived in this tree and the pin it delivered is 1.17.0 in tools.lock and package.json, with generatedBy: "1.17.0" in the committed skills, so the baseline is already in place. [sources: openspec/changes/archive/2026-11-12-5065-take-every-safe-version-update-before/proposal.md, src/devops_cli/tools_lock/tools.lock:598, src/devops_cli/tools_lock/openspec/package.json:3, .agents/skills/openspec-apply-change/SKILL.md:10]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/infra
    scope/openspec
    status/new
    value/medium
    effort/high
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 12, 2026
  5. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: OpenSpec 2.0.0, the tool the issue already pins and ADR 0010 chose, performs the layout move itself: one skill copy in .agents/skills/ with directory links for tools such as Claude Code, removal of the per-tool copies and the /opsx:* command files, and retirement of delivery. It does not cover the project's own gate: the globs and the drift copy in skills.py/gate.py must handle symlinks, and the edits inside generated skills are overwritten by update.

    The repository already uses this tool.

    Tool: Fission-AI/OpenSpec (https://github.com/Fission-AI/OpenSpec)

    • License: MIT
    • Last activity: 2026-11-14
    • Maintained: yes

    Covers:

    • Installs skills once in .agents/skills/ and creates directory links in a tool's own folder, such as .claude/skills/
    • Removes the old per-tool skill copies and the /opsx:* command files
    • Retires the delivery setting (the CLI still accepts it)
    • openspec update --dry-run names the generated skills whose edits it will replace
    • openspec update changes only files inside the project and never follows links out of it

    Lacks:

    • The project's gate code (skills.py, gate.py, CONST_OPENSPEC_GENERATED_GLOBS) must be rewritten for the shared layout: missing_skill_trees fails the .kilocode/skills/openspec-*/**/* glob and skill_drift copies files as regular files
    • No support for keeping edits inside the skills OpenSpec installs; update overwrites them and keeps no copy, so the project's apply-change and update-change edits must move out
    • The project's own artifacts (ADR 0010, the specs that name the skill trees, tests/support/fakes/openspec.py, recorded runs, tools.lock pin) still need the manual change
    • It does not confirm for the project that Kilo Code reads .agents/skills/ before the .kilocode tree goes

    Tools considered:

    Searches run:

    • OpenSpec 2.0.0 release shared .agents/skills layout, results: 5
    • openspec.dev docs upgrade-to-2, results: 5
    • OpenSpec upgrade to 2.0.0 skills directory symlinks, results: 5
    • "OpenSpec" npm package 2.0.0 changelog breaking changes, results: 5

    Sources:

    Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.

  6. added
    status/ready
    and removed
    status/new
    on Nov 17, 2026
  7. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at e04435a (see proposed design in issue body).

  8. dan-petty commented on Nov 17, 2026

    @dan-petty
    OwnerAuthor

    Owner, 2026-11-17: "implement openspec update so that we get the update when it is available and are using the latest standard for project documentation".

    This adds to the scope of this item:

    #6206 repeated this item and is closed as a duplicate.

  9. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 17, 2026
  10. removed
    status/in-review
    on Nov 17, 2026
  11. added a commit that references this issue on Nov 17, 2026
  12. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-17 20:02 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highpriority/p2-mediumscope/openspecsource/agenttype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions