Skip to content

Commit d97d7e2

Browse files
clay-goodclaude
andauthored
feat(skills)!: install skills only, in one shared .agents/skills folder (#2223)
* fix(update): upgrade a project from any earlier release in one run `openspec update` only treated a file as safe to remove when it matched what the current release writes, so untouched output from any older release looked like a user edit: old copies stayed behind, and pre-1.0 cleanup needed --force. It now recognizes the files every release from 0.12 onward generated, from fingerprints recorded by scripts/capture-released-fingerprints.mjs, and removes them when they are no longer needed: old copies in former tool roots (including tools that share .agents with another), files at paths no tool reads any more, and legacy command files and OpenSpec blocks, without --force when everything is recognized. Edited files are kept and reported; linked paths and consent-gated roots are never touched. A new CI job upgrades projects made by 0.23, 1.0, 1.2, 1.10 and 1.16 straight to this build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): sweep old output only when its tool has a replacement An independent review reproduced three ways the first commit's sweep deleted working command files: after legacy cleanup was declined or skipped, for a commands-only Antigravity project that gets no replacement, and under .windsurf after the user declined its move. The sweep now removes a leftover only when every tool owning its top-level folder has current OpenSpec output in the project, leaves a former root alone while the root migration still has files to move there, and does nothing in a run where legacy cleanup was declined or skipped. Legacy cleanup without --force leaves shared home-folder prompts for --force, and judges an OpenSpec block by the same own-line marker rules removal uses, so it checks exactly the span it deletes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): never clean up unasked after a failed setup or for home-folder prompts Hardening from a full release matrix, an independent review and CodeRabbit: - When a tool fails to set up, an unasked cleanup removes nothing old, and the sweep skips that run; with --force or a yes, only that tool's files are kept. - Codex prompts in the home folder no longer set Codex up in other projects or trigger the unasked cleanup; a terminal still asks about them as before. - A commands-only tool whose files sit only in its former folder (Antigravity in .agent/) is now detected and moved instead of "no configured tools". - The 0.13-0.15 Cline and Qwen command files are recognized by exact name. - One failed removal no longer stops the sweep; read the checked file through one handle (CodeQL race alert). - Release fixtures keep LF on Windows; capture --only merges with what is already recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): set up every detected tool when cleaning up without asking - The unasked cleanup no longer offers the tool picker: unticking a tool there would remove its old files with nothing to replace them. - The shared-folder pass (old Codex/Antigravity copies) now skips, like the sweep, after a declined cleanup or a failed tool. - The link-path sweep test uses a junction on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(update): record 1.16.1 in the released fingerprints 1.16.1 generates no new files, so only the release list changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): keep moving shared-folder copies after a skipped cleanup A skipped legacy cleanup no longer stops dropping old copies the shared folder already holds, so edited ones are still reported. The home-folder test now starts from this build's own project. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(openspec): propose one shared copy of every skill in .agents/skills Change share-skills-in-agents-folder: one real copy in .agents/skills, per-skill links for the 14 tools that don't read it, one wording, a tool list instead of a single owner, and a skills-only move for existing projects. Part of #2022. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(skills): add shared-folder paths and skill links The 14 linked tools, path helpers for the shared .agents/skills folder, and a relative per-skill link with a plain-copy fallback that update's write seam and dry-run plan can make. Nothing calls them yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(skills): write one shared copy of every skill to .agents/skills Every tool's project skills are now written once, to .agents/skills, and linked into the own folder of the 14 tools that don't read it. - One wording: skills name other workflows by skill name, right in every tool. Command files and the hints init prints keep each tool's syntax. - .agents/skills/.openspec-target lists every tool set up in the project (it named one owner); old one-id files still read. The owner arbitration is gone, so Codex, Antigravity, Amp and the agents target simply share. - Detection uses the list, links, commands and old copies; .agents/skills alone is no longer evidence of any one tool. - init and update write the copy once for the union of workflows, then links, then move old per-tool copies: untouched ones go (or become a link), edited ones stay and are reported, and a user's other files in a skill folder are kept. - Dry runs plan links like the real run and read through planned ones. - A version is not read from a kept copy when the tool uses no skills, so keeping an edit never makes every update re-run. Part of #2022. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(skills): show where skills go and how to link any other tool - docs-lab: a "Where skills go" layout, every row of the matrix on the shared folder (with the 14 linked tools), a "Link another tool" guide for macOS/Linux and Windows, and per-tool notes without per-tool folders or owners. Adds the missing Rovo Dev CLI row. - init's summary names where things are: "6 skills in .agents/skills/ (linked from .claude/skills/)" and the commands' own folders. - update no longer labels a tool's skills as differing before it is listed: until then its skills sit in its own folder and are moved. - The release upgrade test checks each linked tool reaches the shared copy, and that a failed setup changes nothing that was there before. Part of #2022. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): never touch the user's own skills in .agents/skills, and drop deleted tools From an independent review of this branch: - A project from before 2.0 never wrote to .agents. An openspec-* skill already there (npx skills, or hand-written) is the user's: kept, reported, and recorded as "keep <skill>" in .openspec-target so later runs leave it alone. Version and drift checks skip it, so keeping it never makes update run forever. - A deselected shared skill loses only its SKILL.md; other files in its folder stay. - A tool OpenSpec gave files of its own (commands or links) is listed with "own-files" and stays set up only while some remain: deleting its folder removes it, as in 1.x. A skills-only tool has only the list, so switching its delivery to add commands keeps it. Detection no longer depends on the current delivery setting. - A plain copy made where a link can't be (Windows) is recognized against the shared copy's text before this run too, so a profile change or new wording turns it back into a link instead of "your own changes". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(skills): explain removing a tool and kept skills in .openspec-target Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(changeset): mark one shared skills folder as a major change Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): keep command files the user edited when moving to skills Switching `delivery` to `skills` unlinked every generated command file without looking at it, so a hand-edited command was discarded silently. Cleanup now compares each file against what this CLI would generate and deletes only what matches, normalizing a BOM and CRLF so a Windows checkout is not read as an edit. Content depends on which workflows were installed when a file was written, so three candidate sets are compared: the workflows whose command files are on disk, the set this run uses, and the full set. A file that still differs is left in place and named, as is one that cannot be read or deleted. `init` and `update` had separate copies of the delete loop; both now call one shared `reconcileCommandFiles`. Part of #2022 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(update): report unreadable command files apart from edits Two review findings on the cleanup: - `resolveProjectArtifactPath` throws on a command path that is a dangling symlink or one escaping the project. It ran outside the per-file guard, so one such entry failed the tool's whole update and left its other command files unreconciled. The entry is now left untouched, never read or deleted through, and cleanup continues. - A file that could not be read or deleted was reported as "does not match generated output", though no mismatch was found. Those now go to a separate `unchecked` list with their own message, since the fix for an access problem differs from the fix for an edit. Part of #2022 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): stop kept command files from re-syncing on every update Under skills-only delivery the drift check counted any command file on disk, so a file cleanup kept on purpose (an edit, or a file an older OpenSpec version wrote) made every later update re-sync and print the kept list again. Drift now counts only files whose content matches generated output, using the same check cleanup uses to decide what to delete. The kept-files headline now says such a file may come from an older OpenSpec version, since command files carry no version and a template change makes an untouched file stop matching. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): plan command-file cleanup in --dry-run instead of deleting reconcileCommandFiles and classifyCommandFiles now read through the update's file view and delete through its recorder, so `openspec update --dry-run` lists the generated command files a real update removes, keeps edited ones out of the plan, and writes nothing. Without this, the rebase onto #2109 broke the existing skills-only dry-run test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): remove command files an earlier release wrote, when switching to skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(hermes): tell users to trust the repo so Hermes loads the linked skills Hermes v2026.6.5 and later load a trusted project's .hermes/skills, so the setup note now leads with `hermes skills trust` and keeps external_dirs for older versions. Folds in the Hermes half of #2092. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(update): announce that generated command files are deprecated Generated command files are moving to deprecation in favor of skills, and users need to hear it from the tool before the next major changes the default. `openspec update` now ends with a four-line notice whenever it still writes command files for the project: what is changing, how to switch now, how to keep commands, and where the plan lives. The notice is shown on the up-to-date path too, which returns early and is what most routine runs hit. It stays silent once delivery is `skills`, and for projects whose tools get no command files at all. It is worded "by default" so it is true both for users on the implicit default and for users who set `delivery` explicitly, whose setting the next major keeps. The delivery guide and the `delivery` reference entry carry the same message, and a docs-claims test pins them to the CLI notice so the two cannot drift. Part of #2022 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(update): describe when the deprecation notice shows accurately The notice shows whenever delivery gives a configured tool command files, including up-to-date runs that write nothing. The docs callout, changeset and comments said it showed on runs that write command files. Part of #2022 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): only advise switching where it changes something The notice fired for any tool that gets command files, and told its users to switch to skills-only delivery. For a tool that keeps its commands under every delivery, because nothing it runs loads skills, that advice would point at a switch that cannot help and suggests they lose their only working surface. The notice now counts only tools that switching would change: ones that get command files now and would not under `skills`. On today's tools every adapter-backed tool qualifies, so behavior is unchanged; it becomes the right condition as soon as a tool keeps commands regardless. Part of #2022 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: give the deprecation notice tests their own anchor in update.test.ts Each of the four #2022 PRs added its tests before the same describe, so merging them in sequence conflicted. No test changes. Part of #2022 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(update): keep the command deprecation notice out of --dry-run output The notice printed through console.log, so a dry run (which prints only its plan) showed it too. It now goes through the update's log, like other progress output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(update): say command files go away in 2.0, with no option to keep them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(changeset): shorten the release notes for this release Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(repo): fold the generated fingerprint list and release fixtures in diffs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(skills): give v1.17.0's old-folder tests a real 2.0 project Since the shared folder, a tool that reads only .agents/skills is known to be set up by its line in .agents/skills/.openspec-target, and a former-root copy counts as untouched only when a release wrote it. The tests merged in from v1.17.0 built their old folders from this build's own output and had no tool list; they now list the tool and use files release 1.16.0 wrote. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(skills): install skills only; remove the command files 1.x generated OpenSpec 2.0 writes no command files for any tool or delivery setting. The switch is one place, command-surface.ts; every tool now gets skills, and init and update remove the command files earlier versions generated while keeping and listing any the user edited. Skills always name other workflows as skills, never /opsx: commands. - A commands-only 1.x project is no longer reported up to date: it gets its skills and its generated commands removed. - delivery is retired: still read and accepted by config set (which notes that it changes nothing), default skills; the profile picker asks only about workflows. The 1.x deprecation notice is gone. - Folders emptied by removing commands or a tool's old skills folder are pruned, never above the project. - Tests converted to 2.0 behavior; the docs-claims test now pins the 2.0 docs to the CLI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: explain 2.0's skills-only install, with an upgrade guide Adds docs-lab/help/upgrade-to-2.md (what changes, how to upgrade, the old-command to skill table, edited files, Windows links, staying on 1.x), published on the site under Start. Supported tools, setup, profiles, CLI, config.json, glossary, README and install.md now describe skills only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(spec): record skills-only 2.0 in the change and the release notes The change now covers both halves of 2.0: one shared skills folder, and no command files (removed requirements for slash-command generation and updates, a retired delivery setting). The major changeset leads with what users do: run openspec update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(update): prove a commands-only 1.x project moves to skills with its edit kept Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(skills): delete the code that wrote command files With commands gone in 2.0, the three delivery helpers were constant and the code behind them unreachable: command writing in init, update and the legacy upgrade, skill removal for commands-only delivery, deselected-command removal, the commands-only hints and corrections. Deleted, with each call site inlined. The only output change is the no-workflows label, now 'Removed: N skill directories'. Equivalence: the same test results, the upgrade matrix (326/326 from every release) and the real-release upgrade test (17/17) before and after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(tools)!: retire Amazon Q Developer Amazon Q can't load skills, so skills-only 2.0 has nothing to give it, and AWS is retiring it in favor of Kiro. It leaves the tool list: init no longer offers it, and --tools amazon-q stops with a message naming Kiro. In a project set up for it, init and update remove the prompts and skill copies earlier releases wrote in .amazonq/ (only exact release output), keep and list anything edited, leave the user's other files, never follow a link, and say why. --dry-run plans the same removals. RETIRED_TOOLS in config.ts holds the tool, its folder and its successor, so a later retirement is one entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: run every test with a throwaway home A test that forgot to isolate HOME could write to the developer's real home: config-profile's in-process update refreshed ~/.minimax/skills. Point HOME, USERPROFILE, XDG_CONFIG_HOME, XDG_DATA_HOME and CODEX_HOME at one temporary folder for the whole run, removed at teardown. Tests that need their own home still set it. config-profile now also isolates HOME itself, and its list file matches what 2.0 writes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): never lose or write through what the user made in 2.0 An adversarial review of the 2.0 upgrade found setups where update could delete, overwrite or never settle. Each now keeps the user's files: - A tool's skills folder linked to .agents/skills, or .agents/skills linked to a tool folder, no longer has the shared skills deleted. - A link the user put at .agents/skills/openspec-* is never written through; it is kept and recorded. - An openspec-* skill that predates the list is the user's even when it mentions another skill; a tool is inferred from an unlisted folder only when its skills are released text. - Links git checked out as text files, and a missing .agents/, count the tool as set up, and update repairs them. - Update settles when every skill is the user's own. - OS junk (.DS_Store, Thumbs.db, ._*) no longer makes a copy look edited; a fallback copy holds only SKILL.md. - Link text goes through .agents as named, not its real path. - Global Codex prompts are removed only when they match released text, so an edited one survives --force. - A skill the profile drops is kept when edited (judged against the text for the set installed before, not the file's own text). - Profile migration records core for the core set and no delivery. The retired-tool error now ends with the full command, like the cleanup message. Tests use real released text (new fixtures) instead of placeholders, so they prove the released-output rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: name skills, not commands, everywhere 2.0 speaks The welcome screen, init summary, getting-started hints, dry-run text, config list and skill templates still mentioned /opsx commands or delivery. They now name skills. The init summary counts skills once per folder (MiniMax's ~/.minimax/skills included). Docs: the upgrade guide covers kept skill folders, Windows links and pinning 1.x with every installer; supported tools documents the .openspec-target lines; stale "skills and commands" wording is gone from setup, installation, schemas, glossary, overview and message map. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): keep the user's skills through profile changes and odd layouts A second adversarial review found more ways 2.0 could touch what the user owns: - A tool folder linked to .agents/skills in other letter case was not seen as the shared folder, and update replaced every shared skill with a link to itself. Folders are now compared by file identity. - A file where a shared skill's folder goes (a link git checked out as text) was deleted when its workflow was dropped, and made every tool fail when it was wanted. It is now kept as the user's. - Dropping a workflow judged OpenSpec's own skill against too few renderings, so an untouched skill could be kept forever as the user's. A skill's text varies only with the workflows its conditionals name, so update now checks every rendering (292 texts in all, about 11 ms). - A tool's links to skills kept as the user's are no longer removed when the profile drops them. - Edited MiniMax skills in ~/.minimax/skills, and the user's files beside them, are kept when their workflow is dropped (1.x deleted the whole folder). - Profile drift ignores kept skills, so `config profile` stops asking for an update that has nothing to do. - Skills kept in .agents/skills get their own message instead of advice to compare them with .agents/skills. The upgrade guide now states that update --force on a pre-1.0 project removes its legacy files after warning, as 1.x does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): keep MiniMax skills and deleted kept skills safe A third adversarial review, aimed at the previous fixes, found: - Deleting a skill kept as the user's left update "up to date" with a broken link, instead of installing OpenSpec's again. Kept skills are now skipped only while they exist. - MiniMax's ~/.minimax/skills: a kept edited skill was overwritten when its workflow came back, made every update run again, and a link pointing outside the folder failed the tool on every run (1.x also wrote through a link at a wanted skill). Now a link or a file at a skill's spot is never written through or failed on, an edited SKILL.md is saved as SKILL.md.bak before it is refreshed (in init and update), and drift ignores what is the user's. - The deselect count no longer includes folders it left alone. - Folder identity falls back to comparing real paths on file systems that report no file ids. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): settle with the user's MiniMax links, and never back up through one A fourth review round found no data loss, but: - A link the user put at a MiniMax skill OpenSpec still installs made every update run again: its text has no version and differs from OpenSpec's. Version and content checks now skip such links, as the writes already do. - The SKILL.md.bak backup could be written through a dangling link of that name (update) or fail the tool (init). A dangling link now counts as taken, so the backup goes to SKILL.md.bak1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): tidy what update says about kept skills and delivery From a final regression pass, which found no lost files and nothing unsettled on the everyday paths: - A skill kept as the user's no longer counts as an extra workflow (the note repeated on every update), and the note is pluralized. - The profile migration never writes `delivery`; a value the user set stays. - Pre-1.0 cleanup says folders were replaced by skills, not "skills and commands". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(experimental): expect skills only from the deprecated init alias Two tests still expected Cursor command files and a .devin/ line from `openspec experimental`. 2.0 writes the shared skills and no commands; they now check that. These failed in CI on every platform. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(upgrade): follow the docs-lab style guide Label the terminal surface, use bold numbered steps like the Uninstalling exemplar, put update's effects on term bullets, use verb headings, an npm fence for the pin, and add the MiniMax SKILL.md.bak fact. The README notes the page is published under Start ahead of the rest of Help. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): recover empty skill folders and match the dry run on disk A cold review of the whole PR and a live pass on untried project shapes (monorepos, subfolders, linked roots, worktrees, clones, read-only folders, killed runs, CI, unicode paths) found: - An empty folder at a skill's spot (left by an interrupted or failed run, or by deleting SKILL.md) counted as the user's, so Claude lost that skill for good. It is now a free spot and gets the link. - A dangling link at a MiniMax skill made update fail the tool every run; it is the user's and is kept, as init already did. - The dry run didn't see empty subfolders, so it planned to replace a skill folder the real run keeps. It now lists them as disk does. - A tool that reads .agents/skills failed when its old skills folder linked out of the project; nothing is needed there, so it's skipped. - A fallback copy equal to the shared copy (where links can't be made) is kept, instead of being recopied on every run with a dry run that promised a link. - A kept skill whose link dangles no longer reads as drift. The upgrade guide notes that git stash can't hold the upgrade, so commit first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): settle with an old tool folder linked outside, respect kept skills From review round 7 of the previous fix: - A tool that reads .agents/skills, whose old skills folder links out of the project and still holds 1.x copies, now settles: drift skips that folder as the install does, and the folder is reported (the tool may load those copies twice) instead of silently left. - A fallback copy equal to OpenSpec's text is kept only when the shared skill is OpenSpec's; when the user replaced it with their own, the tool's spot is linked to it as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(skills): check the kept MiniMax link without its Windows text On Windows a junction's readlink text differs from the path it was made with; assert the link is still there instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): clearer report for folders linked outside, and stale copies refresh From review round 8, which found no lost files and nothing unsettled: - An old tool skills folder linked outside the project gets its own message (left alone, may be loaded twice, delete by hand) instead of "kept with your own changes". - With a tool folder linked outside, only command files that exist are reported as left in place, not every possible name. - A fallback copy at an older OpenSpec text now counts as drift, so a plain update refreshes it, as --force already did. Drift judges spots against the same texts the install does (renderings cached). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): settle with an old copy of a skill kept as the user's The final review round found that an old tool folder holding an exact copy of a skill the user keeps in .agents/skills made every update run again: the drift check counted the kept skill's shared text as OpenSpec's, while the install (rightly) did not. Drift now leaves the kept skill's text out, as the install does. Nothing was ever written; this only stops the repeated run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(skills): stop re-checking the shared folder for every tool The Windows test job ran 15 minutes against main's 5-9 and was cancelled at its limit. Profiling showed the time in one path: every configured-tool check (about 50 per run) re-inferred the tool list from .agents/skills when no list file existed, running a realpath path check on all 12 skill files each time, even when the folder was absent. It now returns early when the folder is missing and checks only files that exist. Skill renderings are also cached per process. update-dry-run.property.test.ts: 12.0s -> 5.4s locally (main: 5.2s). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: say pre-1.0 cleanup only asks when init is interactive - setup.md said init asks before removing pre-1.0 leftovers; with --tools or in a non-interactive run it removes them without asking, as install.md already says. - The change now updates cli-artifact-workflow's output and tool-flag requirements for skills only (they still described command files and a "Commands skipped" message). - The failed-setup upgrade test also asserts nothing new appears outside .agents/skills. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(init): report and clean up tools already set up, not just the ones selected `init --tools cursor` refreshes the shared skills for every tool already set up (Claude, for example), but then reported folder failures and removed generated command files only for the selected tools. A failure in Claude's skills folder was silent, and Claude's generated commands stayed until the next update. Both are now handled for every tool the install touched, edited command files still kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(setup): name the marker blocks pre-1.0 cleanup removes Pre-1.0 cleanup also removes OpenSpec marker blocks from files like CLAUDE.md and AGENTS.md, edits inside them included, so setup.md no longer says init changes nothing else and tells you to back those up. The release upgrade snapshot now records links (by target, never followed), so a link made anywhere fails the "nothing new" checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(init): keep the commands of a set-up tool whose folder failed The previous commit had init remove the generated command files of tools already set up but not selected. When such a tool's skills folder failed, its commands were still removed, leaving it with neither commands nor skills; update keeps them in that case. init now skips cleanup for a failed tool, as update does, and the failure names it "(already set up here)" so it's clear why it was involved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: correct four claims and tighten wording for 2.0 A final pass over every page this PR touches, against the source: - cli.md's update example ended with an IDE-restart line that no longer exists; it now gives the real line and when it appears. - The upgrade guide said update always asks before removing pre-1.0 files; it removes untouched ones without asking, asks for the rest, and leaves them alone in a non-interactive run. - The upgrade guide's "outside the project" list missed the old Codex prompts update removes (with --force or after you confirm). - install.md said every tool reads .agents/skills; MiniMax Code uses ~/.minimax/skills. Wording: semicolon splices split, filler words dropped, "commit first" moved above the steps, a duplicate Amp section removed, Hermes named as in the tool list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: final pre-release review fixes for 2.0 From the release-gate rounds (a live upgrade pass over 1.6–1.17 and a cold review of the whole diff), which found no lost files: - `init --tools none` touches no tool already set up again, as on 1.x; the previous commit had it migrate them and remove their commands. - An edited Codex prompt in ~/.codex/prompts is now listed when update removes the untouched ones; it was kept but never mentioned. - The Amazon Q notice no longer tells you to set up Kiro when Kiro is set up, and isn't repeated on every update when only edited files remain. - Saving the global config never adds the retired `delivery` key the user didn't set (`config set profile custom` used to write it). - init says when it replaced old skill copies, as update does. - The MiniMax kept-folder advice is true for a dropped workflow too. - Comments that still described delivery or command writing are fixed, and a docblock moved to the function it describes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(skills): say when an edit in an installed skill is replaced Review found the upgrade guide promised that files you edited are "kept and listed, never removed". That is false for a skill OpenSpec installs in .agents/skills: update refreshes it in place, as every 1.x update did, and an edit inside it is replaced with no copy. Reproduced from 1.16.0: the edit vanished with no notice. The refresh is unchanged. What changes: - Docs: the guide's opening, a warning callout, the "What update does" list and a new "Skills you customized" section now say which edits are kept (old command files, old per-tool skill copies) and which are replaced (skills OpenSpec installs), and where to keep lasting customizations. The changeset drops its blanket claim. - CLI: init and update name each skill whose edit they replaced. 59 upgrades of untouched projects across releases print no notice. - A test pins the guide's quoted notice to the CLI's text. Also from the review: `update --force` kept an edited Codex prompt in ~/.codex/prompts without listing it when no untouched prompt was left. Edited prompts were never part of detection, so nothing ran. They are now reported on every --force run, once. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(update): warn in the dry run before replacing an edited skill Re-checking the review fix: a real update names each skill whose edit it replaced, but `update --dry-run`, the one chance to save the text first, said nothing. The plan now carries an `edited-skills` note naming those files, and the upgrade guide and CLI reference say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: name the --force and MiniMax exceptions - setup.md said only --tools and non-interactive runs skip the pre-1.0 cleanup prompt; --force does too (init.ts: `this.force || !canPrompt`). - setup.md, the CLI reference and the changeset said every skill goes to .agents/skills; MiniMax Code gets its own copy in ~/.minimax/skills. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: run the 2.0 upgrade guide's docs test in the docs job Main's docs job (#2237) lists the tests that read the docs. This branch removed test/delivery-deprecation-docs-claims.test.ts and added test/upgrade-to-2-docs-claims.test.ts, so the list named a missing file and test/ci-docs-only.test.ts failed in the merge queue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f636b47 commit d97d7e2

143 files changed

Lines changed: 11935 additions & 4533 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@fission-ai/openspec": major
3+
---
4+
5+
OpenSpec 2.0 installs skills only, in one shared folder. Run `openspec update` in each project to move it over. Old command files and old skill copies you edited are kept. An edit inside a skill OpenSpec installs in `.agents/skills/` is replaced, as in 1.x, so save those first. See [Upgrade to 2.0](https://openspec.dev/docs/upgrade-to-2).
6+
7+
- **Skills only.** OpenSpec no longer writes `/opsx:*` command files. Each command has a skill with the same instructions. For example, `/opsx:propose` becomes `openspec-propose`, which you invoke as `/openspec-propose` (`$openspec-propose` in Codex). `openspec update` removes the command files earlier versions generated, and keeps and lists any you edited.
8+
- **One shared copy.** Skills are written once, to `.agents/skills/`, instead of a copy per tool. Claude Code, Continue, ForgeCode, Kiro, CodeBuddy, EasyCode, iFlow, CodeArts, Lingma, GigaCode, Veai, Rovo Dev, Code Studio and Hermes Agent get a link to each skill in their own `skills/` folder (a plain copy where a link can't be made). MiniMax Code is the exception: its skills go to `~/.minimax/skills/`. Old per-tool copies are removed, or kept and reported if you edited them.
9+
- **`delivery` is retired.** It is still accepted, so older configs and scripts keep working, but it no longer changes anything.
10+
- **Amazon Q Developer is retired.** It can't load skills. `openspec update` removes the files OpenSpec wrote in `.amazonq/` (keeping any you edited), and `--tools amazon-q` now points you to Kiro.
11+
- **Windows.** To check out committed links, run `git config --global core.symlinks true` (or clone with `git clone -c core.symlinks=true <url>`) and enable Developer Mode so links can be created. Otherwise each link checks out as a small text file, which `openspec update` replaces with a plain copy of the skill.

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
run: >-
184184
pnpm exec vitest run
185185
test/apply-docs-claims.test.ts
186-
test/delivery-deprecation-docs-claims.test.ts
186+
test/upgrade-to-2-docs-claims.test.ts
187187
test/explore-docs-claims.test.ts
188188
test/init-store-docs-claims.test.ts
189189
test/setup-docs-claims.test.ts

‎README.md‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,36 @@ Our philosophy:
3737
Follow <a href="https://x.com/0xTab">@0xTab on X</a> for updates · Join the <a href="https://discord.gg/YctCnvvshC">OpenSpec Discord</a> for help and questions.
3838
</p>
3939

40-
<!-- TODO: Add GIF demo of /opsx:propose → /opsx:archive workflow -->
40+
<!-- TODO: Add GIF demo of /openspec-propose → /openspec-archive-change workflow -->
4141

4242
## See it in action
4343

4444
```text
45-
You: /opsx:explore
45+
You: /openspec-explore
4646
AI: What would you like to explore?
4747
You: I want dark mode but I'm not sure how to do it cleanly.
4848
AI: Let me look at your styling setup...
4949
Cleanest path here: CSS variables + a small theme context,
5050
with system-preference detection. No new dependencies. Scope it?
5151
You: Yes, let's do it.
5252
53-
You: /opsx:propose add-dark-mode
53+
You: /openspec-propose add-dark-mode
5454
AI: Created openspec/changes/add-dark-mode/
5555
✓ proposal.md — why we're doing this, what's changing
5656
✓ specs/ — requirements and scenarios
5757
✓ design.md — technical approach
5858
✓ tasks.md — implementation checklist
5959
Ready for implementation!
6060
61-
You: /opsx:apply
61+
You: /openspec-apply-change
6262
AI: Implementing tasks...
6363
✓ 1.1 Add theme context provider
6464
✓ 1.2 Create toggle component
6565
✓ 2.1 Add CSS variables
6666
✓ 2.2 Wire up localStorage
6767
All tasks complete!
6868
69-
You: /opsx:archive
69+
You: /openspec-archive-change
7070
AI: Archived to openspec/changes/archive/2025-01-23-add-dark-mode/
7171
Specs updated. Ready for the next feature.
7272
```
@@ -142,12 +142,12 @@ openspec init
142142
143143
Now talk to your AI:
144144

145-
- **Not sure what to build yet?** Start with `/opsx:explore`, a no-stakes thinking partner that reads your code, weighs options, and shapes a plan before any code gets written. ([Quickstart](https://openspec.dev/docs/quickstart))
146-
- **Already know what you want?** Go straight to `/opsx:propose <what-you-want-to-build>`.
145+
- **Not sure what to build yet?** Start with `/openspec-explore`, a no-stakes thinking partner that reads your code, weighs options, and shapes a plan before any code gets written. ([Quickstart](https://openspec.dev/docs/quickstart))
146+
- **Already know what you want?** Go straight to `/openspec-propose <what-you-want-to-build>`.
147147

148-
Both are in the default profile. If you want the expanded workflow (`/opsx:new`, `/opsx:continue`, `/opsx:ff`, `/opsx:verify`, `/opsx:bulk-archive`, `/opsx:onboard`), select it with `openspec config profile` and apply with `openspec update`.
148+
Both are in the default profile. If you want the expanded workflow (`openspec-new-change`, `openspec-continue-change`, `openspec-ff-change`, `openspec-verify-change`, `openspec-bulk-archive-change`, `openspec-onboard`), select it with `openspec config profile` and apply with `openspec update`.
149149

150-
`/opsx:propose` is the canonical name; your tool may spell it `/opsx-propose` (Cursor, GitHub Copilot), `@opsx-propose` (Amazon Q) or `$openspec-propose` (Codex). `openspec init` prints the right form for the tools you picked — see [Supported Tools](https://openspec.dev/docs/supported-tools).
150+
These are skills. Most tools invoke them as `/openspec-propose` and Codex as `$openspec-propose`, or you can ask for the work in plain words. `openspec init` prints the right form for the tools you picked — see [Supported Tools](https://openspec.dev/docs/supported-tools). Coming from 1.x and its `/opsx:*` commands? See [Upgrade to 2.0](https://openspec.dev/docs/upgrade-to-2).
151151

152152
> [!NOTE]
153153
> Not sure if your tool is supported? [View the full list](https://openspec.dev/docs/supported-tools) – we support 30+ tools and growing.
@@ -180,7 +180,7 @@ AI coding assistants are powerful but unpredictable when requirements live only
180180
- **Agree before you build** — human and AI align on specs before code gets written
181181
- **Stay organized** — each change gets its own folder with proposal, specs, design, and tasks
182182
- **Work fluidly** — update any artifact anytime, no rigid phase gates
183-
- **Use your tools** — works with 30+ AI assistants via slash commands
183+
- **Use your tools** — works with 30+ AI assistants via skills
184184

185185
### How we compare
186186

@@ -208,7 +208,7 @@ brew upgrade openspec
208208

209209
**Refresh agent instructions**
210210

211-
Run this inside each project to regenerate AI guidance and ensure the latest slash commands are active:
211+
Run this inside each project to regenerate AI guidance and refresh the installed skills:
212212

213213
```bash
214214
openspec update

‎docs-lab/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ the page or rewriting the goal in both places, never letting them drift.
115115
| Page | Goal |
116116
|---|---|
117117
| [Overview](customize/overview.md) | Your options for customizing OpenSpec. |
118-
| [Profiles](customize/profiles.md) | Choose which workflows are installed, and whether they install as skills, commands, or both. |
118+
| [Profiles](customize/profiles.md) | Choose which workflows are installed. |
119119
| [Project configuration](customize/project-config.md) | Make the workflows plan changes the way you want with a few lines in config.yaml. |
120120
| [Schemas](customize/schemas.md) | Change what OpenSpec produces: the artifacts, their order, and their templates. |
121121

@@ -153,6 +153,7 @@ the page or rewriting the goal in both places, never letting them drift.
153153
|---|---|
154154
| [FAQ](help/faq.md) | Short answers to the questions that don't need a page. |
155155
| [Troubleshooting](help/troubleshooting.md) | When OpenSpec doesn't do what you expected: symptoms and their fixes. |
156+
| [Upgrade to 2.0](help/upgrade-to-2.md) (published now, under Start, ahead of the rest of Help) | What changes in 2.0, and how to move a project over. |
156157

157158
### Legacy: land the old workflow safely (held back from the site until drafted, see Open TODOs)
158159

‎docs-lab/customize/overview.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ OpenSpec supports multiple customization options. This page shows what each one
88

99
| Option | What it changes | Use it when |
1010
|---|---|---|
11-
| [Profiles](profiles.md) | Which workflows are installed, and whether as skills, commands, or both | You want additional workflows and working patterns, or to remove workflows you don't need |
11+
| [Profiles](profiles.md) | Which workflows are installed | You want additional workflows and working patterns, or to remove workflows you don't need |
1212
| [Project configuration](project-config.md) | The instructions injected into every workflow run: context, rules, and operation guidance (`config.yaml`) | You want changes planned your way, like tasks always including Playwright tests |
1313
| [Schemas](schemas.md) | What OpenSpec produces: the artifacts, their order, and their templates | Changes should produce different planning files, sections, or formats |
1414

‎docs-lab/customize/profiles.md‎

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Profiles
22

3-
> Choose which workflows are installed, and whether they install as skills, commands, or both.
3+
> Choose which workflows are installed.
44
5-
A profile is your preference for which OpenSpec workflows (the [skills and commands](../start/setup.md#the-workflow-files-skills-and-commands) in your AI tool) are installed across your machine. The default profile is `core`. Include or exclude workflows and your selection is saved as the `custom` profile.
5+
A profile is your preference for which OpenSpec workflows (the [skills](../start/setup.md#the-workflow-files-skills) in your AI tool) are installed across your machine. The default profile is `core`. Include or exclude workflows and your selection is saved as the `custom` profile.
66

77
## The core set
88

@@ -38,40 +38,13 @@ To change the set, run the interactive picker:
3838
openspec config profile
3939
```
4040

41-
The picker asks what to configure ([delivery](#delivery-skills-commands-or-both), workflows, or both), then lists all twelve workflows as checkboxes, with the installed ones checked. Any selection that isn't exactly the core six is saved as the `custom` profile, so you can also uncheck core workflows you don't use.
41+
The picker lists all twelve workflows as checkboxes, with the installed ones checked. Any selection that isn't exactly the core six is saved as the `custom` profile, so you can also uncheck core workflows you don't use.
4242

43-
## Delivery: skills, commands, or both
43+
## Delivery (retired in 2.0)
4444

45-
Delivery is a profile setting that lets you choose to have only skills or only commands installed. The default is `both`. [Set up your project](../start/setup.md#the-workflow-files-skills-and-commands) explains the two forms and why both exist. The field's exact contract is in [CLI settings (config.json)](../reference/configuration/config-json.md#delivery).
45+
OpenSpec 2.0 installs skills only, so the `delivery` setting no longer changes anything. An existing value is kept. `openspec config set delivery <value>` still saves the value, and prints a note that it has no effect.
4646

47-
> [!IMPORTANT]
48-
> Command files are deprecated and go away in OpenSpec 2.0, whatever your delivery setting. Your OpenSpec skills stay and do the same work: ask for the work, or invoke the skill by name (`/openspec-propose` instead of `/opsx:propose` in Claude Code). Until then, `openspec update` reminds you on every run while a configured tool gets command files.
49-
>
50-
> To switch now, set `delivery` to `skills` and run `openspec update`. It removes only the command files OpenSpec generated; any you edited are kept and listed, so you can move what you need into a skill. The setting applies to every project on your machine, so run `openspec update` in each one. The plan is tracked in [#2022](https://github.com/Fission-AI/OpenSpec/issues/2022).
51-
52-
Two ways to change it:
53-
54-
**Interactively**: run `openspec config profile` and choose "Delivery only". Here's switching to skills only:
55-
56-
```
57-
Current profile settings
58-
Delivery: both
59-
60-
? What do you want to configure? Delivery only
61-
? Delivery mode (how workflows are installed): Skills only
62-
63-
Config changes:
64-
delivery: both -> skills
65-
? Apply changes to this project now? (Y/n) y
66-
```
67-
68-
**Directly**: one command, no prompts:
69-
70-
```bash
71-
openspec config set delivery skills # or: both, commands
72-
```
73-
74-
Delivery never changes the profile name. `core` and `custom` describe the workflow set only, and switching back to `core` keeps your delivery setting.
47+
In 1.x, delivery chose between skills, commands, or both. [Upgrade to 2.0](../help/upgrade-to-2.md) covers what happens to command files.
7548

7649
## Switching profiles
7750

@@ -81,7 +54,7 @@ Switching is two steps: change the profile on your machine, then update each pro
8154

8255
```bash
8356
openspec config profile # interactive
84-
openspec config profile core # reset to the core six (keeps delivery)
57+
openspec config profile core # reset to the core six
8558
```
8659

8760
2. Run the update in each project you work in:

‎docs-lab/customize/schemas.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Validate after every hand-edit. A broken schema otherwise surfaces in the middle
151151

152152
## A fork is a snapshot
153153

154-
`openspec update` refreshes the installed skills and commands, and it never touches `openspec/schemas/`. Your fork keeps working exactly as you left it, which also means it stops receiving improvements when the built-in schema evolves. To pick those up later, fork the built-in again under a new name and port the differences across.
154+
`openspec update` refreshes the installed skills, and it never touches `openspec/schemas/`. Your fork keeps working exactly as you left it, which also means it stops receiving improvements when the built-in schema evolves. To pick those up later, fork the built-in again under a new name and port the differences across.
155155

156156
## Sharing schemas
157157

‎docs-lab/help/faq.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ once the prose lands. -->
1818
If it has a row in the [support matrix](../reference/supported-tools.md), yes.
1919
Pick its id at init. If it isn't listed but reads the shared `.agents/skills/`
2020
folder, pick **Other / Universal** (`--tools agents`), covered by the support
21-
matrix's Other / Universal section. If neither, request it in the
22-
[OpenSpec repo](https://github.com/Fission-AI/OpenSpec/issues).
21+
matrix's Other / Universal section. If it reads only its own folder, point that
22+
folder at `.agents/skills/` with one link
23+
([Link another tool](../reference/supported-tools.md#link-another-tool)).
2324

2425
## Where did the old /openspec:* commands go?

0 commit comments

Comments
 (0)