OpenSpec-practise

Commands Exit, Skills Take the Stage: OpenSpec 2.1.0 Workflow Practice

OpenSpec has entered the 2.x era: v1.16.1 and v1.17.0 were transitions, and v2.0.0 is the project’s first breaking major release — slash command files are gone entirely and skills now install to .agents/skills/; v2.1.0 adds global skill installation. The workflows themselves (Explore → Propose → Apply → Archive) have not changed. What changed is where skills live and how you invoke them.

This article records the full cross-major-version upgrade: previewing a 25-file migration with --dry-run, the symlink restructuring of .claude/, and payment-implementation — the first practice on the 2.x skill workflow, closing the last “complete spec, zero code” gap among the seven capabilities.

1. What Changed Across Four Releases

1.1 v1.16.1: Stricter Delta Validation

1.2 v1.17.0: The Migration Notice

1.3 v2.0.0: Commands Exit, Skills Unify

1.4 v2.1.0: Global Skills

2. Upgrade Steps and Migration Notes

npm install -g @fission-ai/openspec@2.1.0
openspec --version        # 2.1.0
openspec update --dry-run

The dry-run listed the change plan for 25 files at once — the 2.0 migration in full:

25 file(s) would change:
  add     .agents/skills/.openspec-target  (openspec)
  add     .agents/skills/openspec-apply-change/SKILL.md  (openspec)
  ... (7 skill files moving into .agents/skills/)
  delete  .claude/commands/opsx/apply.md  (claude)
  ... (6 command files deleted)
  add     .claude/skills/openspec-apply-change  (claude)
  delete  .claude/skills/openspec-apply-change/SKILL.md  (claude)
  ... (6 real skill files become links)

After --force, every .claude/skills/openspec-* entry became a relative symlink:

.claude/skills/openspec-propose -> ../../.agents/skills/openspec-propose

Two details worth recording:

Post-upgrade regressions all passed: validate --specs --strict 7/7, findings clean, validate --archived 7/7, Node 18/18, Python 7/7. The local Node v26 ≥ 22.20, so the npm install is unaffected by the new floor.

3. The Practice Change: payment-implementation

3.1 Why Payment

In the v1.16.0 article’s open observations, payment was “the largest spec-code gap”: 2 requirements and 4 scenarios with zero implementation since the v1-MVP archive. There is a subtler point: the PAID status exists in both implementations’ type definitions (a JSDoc union and a Pydantic Literal), yet no code ever moved an order into it — the types were promising a transition that did not exist. Implementing payment closes the order lifecycle’s “create → pay” loop.

And since 2.x kept the workflows but changed every entry point, a real practice was the right way to verify the new flow.

3.2 Propose: Skills Instead of Slash Commands

Invoking the openspec-propose skill (replacing the old /opsx:propose) felt identical to 1.x: openspec context --json to confirm the root → openspec new change → artifacts generated in the dependency order from status --json. The change is only at the entry — the command files are gone, the skill remains, and a natural-language “propose payment-implementation” triggers the same flow.

The payment spec already defines all four scenarios, so the change declares skip_specs: true for pure implementation alignment. Five design decisions:

3.3 Apply: ~20 Lines per Implementation

Node: OrderService.payOrder(orderId) + a POST /api/payments/:orderId route + a NOT_FOUND → 404 mapping in the catch block. Python: pay_order(order_id) (returns None on a miss; the route maps to 404) + POST /api/payments/{id}. Tests on both sides cover three paths: pay → PAID, idempotent repeat 200, missing order 404. The Python test uses a dedicated user_payment to isolate the module-level shared state.

3.4 Scenario-by-Scenario Cross-Check

Spec scenario Node Python
Pay existing order: 200 + PAID payOrder writes PAID and saves pay_order same
Pay missing order: 404 + NOT_FOUND throws NOT_FOUND → 404 {code} None → 404 {detail}
Valid transition: only PENDING_PAYMENT → PAID only that branch writes status same
Repeat payment: idempotent success, no double charge PAID returned as-is with 200 same

3.5 Results

Check Result
openspec validate payment-implementation --type change valid (INFO: skip_specs)
openspec validate --specs --strict 7/7
Node npm test 22/22 (18 + 3 unit + 1 integration)
Python pytest 8/8

4. Takeaways and Open Observations

4.1 “Commands Exit” Is Deduplication, Not a Feature Regression

The /opsx:* commands and the skills were the same instructions exposed twice. 2.0 cut the commands and kept the skills; the entry point moved from slashes to skill names or natural language — which is more natural for AI agents anyway. For this repository the direct consequence is documentation: the workflow tables in the READMEs and CLAUDE.md now describe skills instead of commands, while the /opsx: wording in historical articles stays as-is by convention (they record how things actually worked at the time).

4.2 dry-run Pays Off Most in Big Migrations

A 25-file migration plan in one listing, with add/delete and the owning tool in plain sight. For a cross-major-version upgrade, dry-run first is the line between “trusting the tool” and “inspecting the tool.” The symlink layout also deserves attention: on Windows without developer mode / symlink privileges, .claude/skills/ may not work after a clone — a CI setup can avoid this with --scope project and real directories.

4.3 All Seven Capabilities Are Now Closed

With payment implemented, the spec-code gaps of all seven main capabilities are closed: cart, catalog, order, payment, product-query, domain-model, and error-handling all have dual-implementation coverage. The only debt left on the books is the error-response structure difference — Node {code, message} versus Python {detail} — a natural candidate for the next cross-implementation change.

4.4 Open Observations


This article is based on the payment-implementation practice in the OpenSpec Practise repository (2026-11-18); full artifacts live under openspec/changes/archive/2026-11-18-payment-implementation/.