Repository navigation
Commit d97d7e2
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
- .changeset
- .github/workflows
- docs-lab
- customize
- help
- reference
- configuration
- start
- skills
- openspec-apply-change
- openspec-archive-change
- openspec-bulk-archive-change
- openspec-continue-change
- openspec-explore
- openspec-ff-change
- openspec-new-change
- openspec-onboard
- openspec-propose
- openspec-sync-specs
- openspec-update-change
- openspec-verify-change
- src
- commands
- core
- templates/workflows
- ui
- utils
- test
- cli-e2e
- commands
- core
- templates
- fixtures/released-output
- v1.10.0-amazonq
- prompts
- skills/openspec-explore
- v1.16.0-claude-skills
- openspec-apply-change
- openspec-archive-change
- openspec-bulk-archive-change
- openspec-continue-change
- openspec-explore
- openspec-ff-change
- openspec-new-change
- openspec-onboard
- openspec-propose
- openspec-sync-specs
- openspec-update-change
- openspec-verify-change
- v1.6.0-codex-prompts
- v1.9.0-agents-skills/openspec-propose
- v1.9.0-codex-agents-skills/openspec-propose
- helpers
- ui
- utils
- website
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
| 145 | + | |
| 146 | + | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 47 | + | |
75 | 48 | | |
76 | 49 | | |
77 | 50 | | |
| |||
81 | 54 | | |
82 | 55 | | |
83 | 56 | | |
84 | | - | |
| 57 | + | |
85 | 58 | | |
86 | 59 | | |
87 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
0 commit comments